COMPUTER_VII_dec_assignment
COMPUTER_VII_dec_assignment
ALBANS SCHOOL
Sector – 15, Faridabad
Session: 2024-25
Class: VII Subject: Computer
Q2. State whether the following statement are ‘True’ or ‘False’. If False, write the correct answer.
1
a) Which is not the conditional statement in Python?
(i) If statement (ii) if-----elif-----else
(iii) looping statement (iv) nested if statement
b) Find the errors in syntax and make it corrected.
Age=20
if (Age >= 18)
print(“You can vote”)
else
print(“You cannot vote”)
c) What is the output of the code given below.
A= 20
B=30
print(a+B)
(i) A (ii) 30
(iii) error message (iv) 50