Direction: Choose the correct option
Q1.
Which keyword is used for conditional branching in Python?
Direction: Choose the correct option
Q2.
What is the output of the following code? `if True: print('Yes') else: print('No')`
Direction: Choose the correct option
Q3.
Which of the following is NOT a valid Python condition?
Direction: Choose the correct option
Q4.
What is the result of `if 0: print('True')`?
Direction: Choose the correct option
Q5.
How do you check if a variable `x` is between 5 and 10 (inclusive)?
Direction: Choose the correct option
Q6.
What is the purpose of `elif`?
Direction: Choose the correct option
Q7.
What will `if None:` evaluate to?
Direction: Choose the correct option
Q8.
What does the `pass` statement do in a conditional block?
Direction: Choose the correct option
Q9.
Given `x=10`, what will `if x: print(x) else: print('no')` output?
Direction: Choose the correct option
Q10.
Which of the following is a valid one-line conditional expression (ternary operator)?
