0% found this document useful (0 votes)
10 views6 pages

QuestionPaper-7-MsSAnum (1)

This document is a March 2025 assessment for a Grade VII Computer Science class, consisting of various questions related to Python programming. It includes multiple-choice questions, true/false statements, and tasks requiring algorithm creation and code correction. The assessment is designed to evaluate students' understanding of programming concepts and Python syntax.

Uploaded by

sahibzadiannum92
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views6 pages

QuestionPaper-7-MsSAnum (1)

This document is a March 2025 assessment for a Grade VII Computer Science class, consisting of various questions related to Python programming. It includes multiple-choice questions, true/false statements, and tasks requiring algorithm creation and code correction. The assessment is designed to evaluate students' understanding of programming concepts and Python syntax.

Uploaded by

sahibzadiannum92
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

1

March Assessment, 2025


Student Name:

Computer Science March_____, 2025


Grade: VII 40 mins
Section: _____________ ___/
25

INSTRUCTIONS
 Answer all questions.
 Use a black or dark blue pen.
 Write your answer to each question in the space provided.
 Do not use an erasable pen or correction fluid.
 The number of marks for each question or part question is shown in brackets [ ].
_____________________________________________________________________________

Question 1: Circle the correct answer: [__/5]


I. Which of the following is an example of a valid Python variable name?
a) 123Name b) first_name c) name@123 d) first-name

a) 123Name
b) first_name
c) name@123
d) first-name

II. Which Python command is used to display output?


a) display()
b) output()
c) print()
d) show()
2

III. What type of error occurs if a required colon (:) is missing in Python?
a) Logical error
b) Runtime error
c) Syntax error
d) Indentation error

IV. Which of the following is not a Python data type?


a) Integer
b) Float
c) Text
d) String

V. What symbol is used for comments in Python?


a) //
b) /* */
c) #
d) \

Question 2: Write (True) for statement is correct. Also write the correct statements for the
false ones. [__/5]

I. An algorithm is a step-by-step solution to a problem.


Answer: _________________________

Corrected Statement (if false):

_______________________________________________________________________

_______________________________________________________________________

Statement True/False Correction (If Any):


1 An algorithm is a step-by-step solution to a
problem.
3

2 Constants in Python can be changed during


the program’s execution.

II. Constants in Python can be changed during the program's execution.


Answer: _________________________

Corrected Statement (if false):

_______________________________________________________________________

_______________________________________________________________________

III. Operators are used to perform operations on variables and values.

Answer: _________________________

Corrected Statement (if false):

_______________________________________________________________________

_______________________________________________________________________

IV. Comments are ignored by the Python interpreter.


Answer: _________________________

Corrected Statement (if false):

_______________________________________________________________________

_______________________________________________________________________

V. Python commands are case-insensitive.

Answer: _________________________

Corrected Statement (if false):

_______________________________________________________________________

_______________________________________________________________________

Question 3: The table contains 03 terms. Complete the table with the descriptions.
[__/3]
No Term Description
4

.
I.
Programming

II.
Syntax

III.
Operators

Question 4: State the difference between a constant and a variable. [__/2]


Constant Variable

Question 5: State any four rules for naming variables in programming. [__/2]
_____________________________________________________________________________

_____________________________________________________________________________

_____________________________________________________________________________

_____________________________________________________________________________

Question 6: Convert the following program requirements into an algorithm:

I. Ask the user for their name and age.


II. Display the name and age.
III. Multiply the age by 2 and display the result. [__/4]

Answer:

_______________________________________________________________________

_______________________________________________________________________

_______________________________________________________________________
5

_______________________________________________________________________

_______________________________________________________________________

Question 7: Compare and output the following two pieces of code: [__/2]

I. Code 1:

value = (5 * 2) + 4.5
print("Calculated value:")
print(value)

II. Code 2:

value = (5 * 2) + 4.5
print("Calculated value:", value)

Answer:

_______________________________________________________________________

_______________________________________________________________________

_______________________________________________________________________

_______________________________________________________________________

_______________________________________________________________________

_______________________________________________________________________

Question 8: Identify and correct the error in the following code: [__/2]
num1 = 10
num2 = 5
result = Num1 - num2
print("The result is: result)
Answer:

Th____________________________________________________________________

_______________________________________________________________________
6

_______________________________________________________________________

_______________________________________________________________________

_______________________________________________________________________

_______________________________________________________________________

_______________________________________________________________________

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy