Question 1
What is the purpose of conditional statement in python?
Question 2
Which keyword is used to execute a block of code repeatedly in python?
Question 3
How do you specify multiple conditions in an if statement in python?
Question 4
What is the purpose of the elif statement in python?
Question 5
What will be the output of the following code?
X=5
if x>10:
print(x is greater than than 10)
else:
print(x is less than or equal to 10)
Question 6
Which operator is used for equality comparison in python?
Question 7
What will be the output of the following code?
X=7
if x> 5:
print (x is greater than 5)
else:
print (x is less than 5)
Question 8
What is the purpose of the else statement in python?
Question 9
Which keyword is used to start an if statement in python?
Question 10
What is the correct syntax for an if statement with a single condition in python?