Python Exam
Python Exam
ATHIRIVER
GRADE 9 CODING TEST 1 PYTHON EXAM
Total Marks: 50
a) High-level language
______________________________________________________________________________
b) Interpreted language
______________________________________________________________________________
c) Variable
______________________________________________________________________________
______________________________________________________________________________
D. Mark Zuckerberg
1|Page
v. Which of these is NOT a reserved word in Python?
A. age B. print C. while D. if
8. Write a Python program that does the following (12 marks – 3 marks each):
______________________________________________________________________________
______________________________________________________________________________
2|Page
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
i. Write a program that asks the user to enter their name and age and displays them.
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
3|Page
ii. Ask the user to enter their age, then write a program that calculates and displays the year
they were born. (Assume the current year is 2025)
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
4|Page