Worksheet 1 Python - Basic Grade 7
Arithmetic Operators, Assignment Operators, Input/Output & String
Concatenation
Name:
CS:
Date:
Section A: Multiple Choice Questions (MCQ)
1. Which operator is used for addition in Python?
a. *
b. +
c. /
d. –
2. Which operator is used to assign a value to a variable?
a. +
b. –
c. =
d. /
3. What will be the output of the following code?
a = 10
b=5
print(a + b)
a. 15
b. 10
c. 5
d. Error
4. Which function is used to take input from the user?
a. print()
b. input()
c. read()
d. enter()
5. What will be the output of the following code?
name = "Ali"
print("Hello " + name)
a. Hello
b. Ali
c. Error
d. Hello Ali
6. To convert user input into an integer we use _______.
a. input()
b. int()
c. str()
d. print()
7. Joining two strings together is called __________.
a. String addition
b. String concatenation
c. String function
Created by: Aafreen Khan 2025-26 Page 1 of 4
Worksheet 1 Python - Basic Grade 7
d. String
8. The function used to display output on the screen is __________.
a. int()
b. enter()
c. display()
d. print()
Section B: Write the Python Code
1. Write a program to store two numbers (10 and 5) in variables and print their sum.
2. Write a program to take a number from the user and print its double.
3. Write a program to take the user's name as input and print "Hello <name>".
4. Write a program that takes two numbers from the user and prints their
multiplication.
5. Write a program to store your name and age in variables and print them in one
sentence.
Created by: Aafreen Khan 2025-26 Page 2 of 4
Worksheet 1 Python - Basic Grade 7
6. Write a program that asks the user to enter a number and then halves the number.
Display the updated value.
7. Write a program that asks the user to enter the total number of minutes and
converts it into hours and remaining minutes.
8. Write a program that asks the user to enter the side of a square and calculates its
area.
9. Write a program that asks the user to enter two numbers and displays the
remaining value left after dividing the first number by the second number.
10. Write a program that asks the user to enter two numbers and displays how
many times the second number completely fits into the first number.
Created by: Aafreen Khan 2025-26 Page 3 of 4
Worksheet 1 Python - Basic Grade 7
11. Write a program that asks the user to enter two numbers and displays the
result when the first number is divided by the second number.
12. Write a program that asks the user to enter a number and then calculates its
cube. Display the result.
13. Write a program that asks the user to enter a number and then triples its
value. Display the final result.
14. Write a program that asks the user to enter a number and then reduces the
number by 7. Display the updated value.
Write a program that asks the user to enter a number and then increases the
number by 12. Display the new value.
Created by: Aafreen Khan 2025-26 Page 4 of 4