Question 1
What is the correct syntax for an if statement with a single condition in python?
Question 2
What is the purpose of conditional statement in python?
Question 3
Which keyword is used to execute a block of code repeatedly in python?
Question 4
Which keyword is used to start an if statement in python?
Question 5
What is the purpose of the else statement in python?
Question 6
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 7
How do you specify multiple conditions in an if statement in python?
Question 8
Which operator is used for equality comparison in python?
Question 9
What is the purpose of the elif statement in python?
Question 10
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)