Python Final Exam - ODL December2023
Python Final Exam - ODL December2023
INSTRUCTIONS
INFORMATION
● The total mark for this paper is 50.
● The number of marks for each question or part question is shown in brackets [ ].
SECTION (A)
20 marks, Answer all
programming?
A. True B. False
A. Quotient B. Divisor
a=7
if a>4: print("Greater")
A. Greater B. 7 C. 4 D. Lesser
SECTION B
Answer All Questions.
1. Write A beginning Python line comment. [6 Marks]
2. What is a Python paragraph comment used? [6 Marks]
3. Write any Two valid identifiers. [6 Marks]
4. What will be displayed by the following code? [6 Marks]
x=1
x=2*x+1
print(x)
x, y = 1, 2
print(y, x)
5. What is the result of 45 / 4? [6 Marks]