CBSE Class 7 Computer Science Question Paper Set 06 with Solutions

Download CBSE Class 7 Computer Science Question Papers

Access comprehensive previous year question papers for Class 7 Computer Science using the CBSE Class 7 Computer Science Question Paper Set 06 with Solutions. Designed to align with the 2026-27 CBSE academic guidelines, these solved papers help students assess their exam readiness and understand official marking schemes.

Access CBSE Question Papers and Solutions

Access the complete question paper PDF for Class 7 Computer Science below. Regular practice with these targeted exam papers builds familiarity with standard question patterns and helps secure higher marks in final evaluations.

This is a CBSE Class 7 Computer Science annual exam question paper with answers, set for 30 marks in 1 hour 30 minutes and made up of 27 questions in 4 sections. It is based on the current NCERT syllabus and covers hTML basics (images, links, tables and their attributes, lists) and Python basics (operators, control structures, if, if-else and if-elif-else statements, indentation). Attempt it in exam conditions without looking at the answers, then open the answers and teacher's notes below to check your work.

Question Paper

Time Allowed: 1 hour 30 minutes
Maximum Marks: 30

General Instructions

1. All questions are compulsory.
2. The paper has 27 questions and carries 30 marks.
3. Marks for each question are shown against it.
4. Write neat and to-the-point answers; write Python code with proper indentation.

Section A: Multiple Choice Questions

Choose the correct answer. 1 mark each.

Q1. The attribute used to mention the path of the image where it is located is __________. [1 mark]
(a) img
(b) src
(c) ul

View Answer & Explanation

Answer: (b) src. The src (source) attribute of the <img> tag gives the file name and path of the image.

Teacher's Note:
1. img is the tag itself, while src is its attribute.
2. Do not confuse a tag with an attribute.

Q2. Which link is used to link two pages within a website? [1 mark]
(a) External
(b) Internal
(c) E-mail

View Answer & Explanation

Answer: (b) Internal. An internal link connects one page of a website to another page of the same website.

Teacher's Note:
1. An external link goes to a different website.
2. Think of internal as 'inside the same site'.

Q3. ___________ attribute combines two or more cells in a column to make one large cell. [1 mark]
(a) colspan
(b) rowspan
(c) cellpadding

View Answer & Explanation

Answer: (b) rowspan. rowspan merges cells vertically, that is, across rows of the same column.

Teacher's Note:
1. colspan merges cells across columns (horizontally), while rowspan merges them down rows (vertically).
2. Read the question carefully for the direction of merging.

Q4. ___________ operator is used to assign value to variable. [1 mark]
(a) Arithmetic
(b) Logical
(c) Assignment

View Answer & Explanation

Answer: (c) Assignment. The = operator stores a value in a variable, e.g. x = 5.

Teacher's Note:
1. Assignment uses a single =, which is different from == used for comparing.
2. Arithmetic operators calculate and logical operators combine conditions.

Q5. A ____________ control structure shows one or more actions following each other in order. [1 mark]
(a) sequential
(b) procedure
(c) branching

View Answer & Explanation

Answer: (a) sequential. In a sequential structure, statements run one after another in the order they are written.

Teacher's Note:
1. Branching chooses between paths, while sequence has no choice.
2. Most simple programs are mainly sequential.

Q6. Python is ______________. [1 mark]
(a) case sensitive
(b) not case sensitive
(c) inconclusive

View Answer & Explanation

Answer: (a) case sensitive. In Python, Name and name are two different identifiers.

Teacher's Note:
1. print works but Print gives an error in Python.
2. Keep the same capital and small letters when using variable names.

Section B: True or False

State whether the following statements are true or false. 1 mark each.

Q7. We cannot link an image in HTML. [1 mark]

View Answer & Explanation

Answer: False. An image can be added with the <img src="..."> tag, and it can also be made a link by placing it inside an <a> tag.

Teacher's Note:
1. The <img> tag is used to add images.
2. An image placed between <a> and </a> becomes clickable.

Q8. We cannot control the exact size of a table. [1 mark]

View Answer & Explanation

Answer: False. The width and height attributes (in pixels or percent) set the size of a table.

Teacher's Note:
1. Size is set with attributes like width and height.
2. Percent values make the table adjust to the screen.

Q9. The attribute href stands for higher reference. [1 mark]

View Answer & Explanation

Answer: False. href stands for hypertext reference; it holds the address (URL) of the link target.

Teacher's Note:
1. href is used in the anchor tag <a>.
2. Remember it as hypertext reference.

Q10. The if…else is an extension of the simple if statement. [1 mark]

View Answer & Explanation

Answer: True. if…else adds an else block that runs when the condition is false.

Teacher's Note:
1. Simple if runs code only when the condition is true.
2. if…else gives a second path for the false case.

Q11. We use if-elif-else statement when the multipath decisions are involved. [1 mark]

View Answer & Explanation

Answer: True. if-elif-else tests several conditions one by one and runs the block of the first true one, otherwise the else block.

Teacher's Note:
1. Use it when there are more than two possible outcomes.
2. Only one block of the chain runs.

Q12. Conditional and looping statements are structured using indentation. [1 mark]

View Answer & Explanation

Answer: True. Python uses indentation (spaces at the start of lines) to show which statements belong to a block.

Teacher's Note:
1. Python does not use curly braces for blocks.
2. Wrong indentation causes an IndentationError.

Q13. HTML is case sensitive. [1 mark]

View Answer & Explanation

Answer: False. HTML is not case sensitive; <B> and <b> work the same way.

Teacher's Note:
1. Python is case sensitive, but HTML is not.
2. Writing tags in lower case is still good practice.

Section C: Fill in the Blanks

1 mark each.

Q14. We can use ___________ to add space between the border and the contents of a cell. [1 mark]

View Answer & Explanation

Answer: cellpadding. Cellpadding is the space between a cell's content and its border.

Teacher's Note:
1. Cellspacing is the space between two cells, not inside a cell.
2. Padding means the space inside, next to the content.

Q15. Internal links can use either a ___________ path or an absolute path. [1 mark]

View Answer & Explanation

Answer: relative. A relative path gives the location of the file with respect to the current page.

Teacher's Note:
1. A relative path is short, e.g. pages/about.html.
2. Absolute path gives the complete address of the file.

Q16. Internal links can use either a relative path or an ___________ path. [1 mark]

View Answer & Explanation

Answer: absolute. An absolute path gives the full location or complete address of the file.

Teacher's Note:
1. Absolute means the complete path from the root or the full URL.
2. Relative and absolute are the two types of paths.

Q17. The __________ tag incorporates graphics in the HTML document. [1 mark]

View Answer & Explanation

Answer: <img> (image tag). It is an empty tag that places a picture on the page.

Teacher's Note:
1. It has no closing tag.
2. It must be used with the src attribute.

Q18. An if statement is made up of ___________ keyword, followed by a condition and a colon (:). [1 mark]

View Answer & Explanation

Answer: if. The statement starts with the keyword if.

Teacher's Note:
1. The keyword is written in lower case.
2. Python statements start with keywords like if, elif and else.

Q19. An if statement is made up of the if keyword, followed by a ___________ and a colon (:). [1 mark]

View Answer & Explanation

Answer: condition (a test that is either True or False), for example if age >= 18:

Teacher's Note:
1. The condition is usually a comparison.
2. The block runs only if the condition is True.

Q20. An if statement is made up of the if keyword, followed by a condition and a ___________. [1 mark]

View Answer & Explanation

Answer: colon (:). The colon marks the end of the if line, and the indented block follows it.

Teacher's Note:
1. Forgetting the colon gives a SyntaxError.
2. The lines after the colon must be indented.

Section D: Short Answer Questions

Answer the following.

Q21. Define: Assignment Operator [1 mark]

View Answer & Explanation

Answer: The assignment operator (=) is used to store a value in a variable. Example: x = 10 stores 10 in x.

Teacher's Note:
1. Give a one-line definition with an example.
2. Do not confuse = with ==.

Q22. Define: Logical Operator [1 mark]

View Answer & Explanation

Answer: Logical operators (and, or, not) combine or reverse conditions and give a result of True or False. Example: (a > 5) and (b < 10).

Teacher's Note:
1. Name all three: and, or, not.
2. They are mostly used in if conditions.

Q23. Define: Cell Spanning [1 mark]

View Answer & Explanation

Answer: Cell spanning means merging two or more table cells into one large cell using the colspan attribute (across columns) or the rowspan attribute (across rows).

Teacher's Note:
1. Mention both colspan and rowspan.
2. Spanning merges cells, whereas spacing only adds gaps.

Q24. Define: Cell Spacing [1 mark]

View Answer & Explanation

Answer: Cell spacing (the cellspacing attribute) is the space between two adjacent cells of a table.

Teacher's Note:
1. Cellspacing is outside the cells, between them.
2. Cellpadding is inside a cell.

Q25. Differentiate between Bulleted List tag and Numbered List tag. [2 marks]

View Answer & Explanation

Answer: 1. Bulleted list uses the <ul> (unordered list) tag; items are shown with bullet symbols and have no order.
2. Numbered list uses the <ol> (ordered list) tag; items are shown with numbers or letters in sequence.
3. In both, each item is written with the <li> tag.

Teacher's Note:
1. Use ul for bullets and ol for numbers.
2. Give the tag names and a point each on the display.

Q26. What is the purpose of creating a table? What are the various attributes associated with Table tag? [2 marks]

View Answer & Explanation

Answer: Purpose: A table displays data in rows and columns in an organised way, so it is easy to read and compare. It is also used to arrange text and images on a web page.
Attributes of the <table> tag:
1. border: sets the thickness of the table border.
2. width and height: set the size of the table.
3. cellpadding: space between cell content and cell border.
4. cellspacing: space between cells.
5. align and bgcolor: set alignment and background colour.
(colspan and rowspan are attributes of the cell tags <td>/<th> used to merge cells.)

Teacher's Note:
1. Name the purpose first, then list at least four attributes.
2. Remember that the tags <tr>, <th> and <td> make rows, headings and data cells.

Q27. What is if-else statement? Write its syntax.
OR
Write a program to check if a number is even or odd. [2 marks]

View Answer & Explanation

Answer: Option 1: if-else statement
It is a decision-making statement that runs one block of code if the condition is True and another block if the condition is False.
Syntax:
if condition:
    statement(s) # runs when the condition is True
else:
    statement(s) # runs when the condition is False
OR Option 2: Even or odd program
num = int(input("Enter a number: "))
if num % 2 == 0:
    print(num, "is even")
else:
    print(num, "is odd")

Teacher's Note:
1. Attempt only one of the two options; indent the blocks and do not forget the colons.
2. A number is even when the remainder on dividing by 2 is 0, checked with the % operator.

Download CBSE Question Papers: Class 7 Computer Science

Understanding Exam Patterns with CBSE Class 7 Computer Science Question Paper Set 06 with Solutions

Review authentic examination papers for Class 7 Computer Science. Working through the CBSE Class 7 Computer Science Question Paper Set 06 with Solutions allows learners to decode recurring question trends and familiarize themselves with official CBSE evaluation standards.

Why Practice Class 7 Computer Science Question Papers?

Regular simulation of exam environments using past question documents builds crucial pacing abilities and eliminates last-minute test anxiety during Class 7 Computer Science assessments.

Additional Study Resources for Class 7 Computer Science

Pair your past paper revision with our official Class 7 Computer Science sample papers and online practice modules to achieve total curriculum mastery.

FAQs

Where can I download the official PDF for CBSE Class 7 Computer Science Question Paper Set 06 with Solutions?

The CBSE Class 7 Computer Science Question Paper Set 06 with Solutions is available for download on StudiesToday.com. It includes complete set with all sections so that Class 7 students can practice with the exact same paper that came in the CBSE exams.

Are the solutions for CBSE Class 7 Computer Science Question Paper Set 06 with Solutions based on the official CBSE marking scheme?

Yes, the solutions for CBSE Class 7 Computer Science Question Paper Set 06 with Solutions are prepared by subject matter experts as per official marking scheme. Class 7 students will understand the structure of answers and 'step-marks' methodology Computer Science.

How does solving CBSE Class 7 Computer Science Question Paper Set 06 with Solutions help in preparing for the 2026 exams?

Solving previous year papers like CBSE Class 7 Computer Science Question Paper Set 06 with Solutions is important to understand repeat themes and question difficulty levels of Computer Science. It helps Class 7 students to test their time management skills too.

Can I access CBSE Class 7 Computer Science Question Paper Set 06 with Solutions in different languages?

Yes, where applicable, CBSE Class 7 Computer Science Question Paper Set 06 with Solutions is available in both English and Hindi mediums. All students from Class 7 can access Computer Science study material in their preferred language.

Is there a charge to download the CBSE Class 7 Computer Science solved papers?

No, all previous year question papers on StudiesToday, including CBSE Class 7 Computer Science Question Paper Set 06 with Solutions, are provided free of charge in mobile-friendly PDF.