Python Programming Worksheet

Python • Installing Python • IDLE • Interactive Mode • Variables • Script Mode • Data Types • print() • input()

Student Information

Name:
Roll No.:
Class: VII
Section:
Date:
Teacher: Anant Sir

Worksheet Blueprint

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

Section A — Objective Type Questions

5 Marks
1. MCQ Type: Questions 1–2 | 1 mark each | Total: 2 marks
Q1. Which of the following is used to write and execute Python programs using a graphical interface?
  • ☐ (a) Paint
  • ☐ (b) IDLE
  • ☐ (c) Calculator
  • ☐ (d) File Explorer
Q2. Which of the following is a valid Python variable name?
  • ☐ (a) 2marks
  • ☐ (b) student name
  • ☐ (c) student_name
  • ☐ (d) class
2. Fill in the Blanks: Questions 3–4 | 1 mark each | Total: 2 marks
Q3. The __________ mode of Python allows the programmer to execute one statement at a time and immediately see its result.
Q4. The __________ function is used to accept data from the user through the keyboard.
3. True / False: Questions 5(a)–5(b) | 0.5 mark each | Total: 1 mark
Q5(a). Python variable names are case-sensitive.

Answer: ____________________
Q5(b). The print() function is used to take input from the user.

Answer: ____________________

Section B — Short Answer Type Questions

6 Marks
Questions 6–8 | 2 marks each | Total: 6 marks
Q6. What is Python? Mention any two features of Python.
Q7. Differentiate between Interactive Mode and Script Mode in Python.
Q8. What is a variable in Python? Write any two rules for naming a variable.

Section C — Long Answer Type Questions

9 Marks
Questions 9–11 | 3 marks each | Total: 9 marks
Q9. Explain the main components of IDLE. Describe the role of the Python Shell and the Editor window.
Q10. Explain the different data types introduced in Python. Give suitable examples of integer and string values.
Q11. Explain the purpose and use of the print() and input() functions. Write a Python program that asks the user for their name and age and displays both values.

Topic Coverage

Revision Map
Topic Covered Through
Python Q6
Installing Python Q6 / Revision
Getting Started with Python Q6, Q9
Components of IDLE Q9
Working in Interactive Mode Q5(a), Q7, Q9
Variables in Python Q2, Q4, Q5(a), Q8
Working in Script Mode Q7, Q9
Data Types Q10
Using print() Function Q5(b), Q11
Using input() Function Q4, Q11
Marks Summary:

Section A = 5 marks
Section B = 6 marks
Section C = 9 marks

Maximum Marks = 20