Grade VII • Computer Science

Python Worksheet

Operators • Types of Operators • Control Statements • Conditional Statements

Maximum Marks: 20

Student Information

Name:
Class & Section:
Roll No.:
Date:

General Instructions

  1. Read each question carefully before answering.
  2. Attempt all questions.
  3. Write Python keywords and operators correctly.
  4. For programming questions, maintain proper indentation.
  5. Use examples wherever required.
  6. The worksheet carries a total of 20 marks.

Topics Covered

  • Operators
  • Types of Operators
  • Control Statements
  • Conditional Statements

Section A – Objective Type Questions 5 Marks

1. Multiple Choice Questions

Questions 1–2: 1 × 2 = 2 Marks

1. Which operator is used for exponentiation in Python?

  • ☐ a) ^
  • ☐ b) **
  • ☐ c) //
  • ☐ d) %

2. Which conditional statement is used when a program needs to test more than one condition in sequence?

  • ☐ a) if
  • ☐ b) if-else
  • ☐ c) if-elif-else
  • ☐ d) print

2. Fill in the Blanks

Questions 3–4: 1 × 2 = 2 Marks

3. The operator is used to find the remainder after division in Python.

4. The statement is used to execute a block of code when a condition is true.

3. True / False

Questions 5a–5b: 0.5 × 2 = 1 Mark

5a. The comparison operator == checks whether two values are equal.

Answer: ☐ True     ☐ False

5b. The if statement executes its block regardless of whether its condition is true or false.

Answer: ☐ True     ☐ False

Section A Total: 5 Marks

Section B – Short Answer Type Questions 6 Marks

Questions 6–8: 2 × 3 = 6 Marks

6. What is an operator in Python? Name any four types of operators.

7. Differentiate between the /, // and % operators in Python with suitable examples.

8. What are control statements? Explain the purpose of conditional statements in a Python program.

Section B Total: 6 Marks

Section C – Long Answer Type Questions 9 Marks

Questions 9–11: 3 × 3 = 9 Marks

9. Explain the different types of operators in Python. Describe any three types with suitable examples.

10. Explain the if, if-else and if-elif-else conditional statements in Python. Give a suitable example of each.

11. Write a Python program that accepts a number from the user and determines whether the number is positive, negative or zero. Explain how conditional statements are used in your program.

Section C Total: 9 Marks

Rough Work / Program Development

Use this space to plan or trace your Python programs before writing the final answer.

Assessment Blueprint

Section Question Type Question Numbers Marks per Question Total Marks
A MCQ 1–2 1 × 2 2
A Fill in the Blanks 3–4 1 × 2 2
A True / False 5a–5b 0.5 × 2 1
B Short Answer 6–8 2 × 3 6
C Long Answer 9–11 3 × 3 9
Grand Total 20

Python Reminders

  • Arithmetic operators: +, -, *, /, //, %, **
  • Comparison operators: ==, !=, >, <, >=, <=
  • Logical operators: and, or, not
  • Assignment operators: =, +=, -=, *=, etc.
  • Conditional statements: if, if-else, if-elif-else
  • Python uses indentation to define blocks of code.

Self-Check

Before submitting your worksheet:

  • Have you attempted all 11 questions?
  • Have you written Python operators correctly?
  • Have you distinguished = from ==?
  • Have you used proper indentation in your programs?
  • Have you checked your conditional statements?
  • Have you explained your answers with suitable examples?