Adaptive Practice

Option - Computation

10 questions • Earn up to 110 XP • First attempt — go for 100%!

0
XP
0
Correct
x1
Combo
Question 1 of 10 ⏱ 0:30
Easy
In Python, which of the following is the correct syntax for an if-else statement?
Easy
What will be the output of the following Python code? x = 10 if x > 5: print('Greater') elif x == 5: print('Equal') else: print('Smaller')
Medium
Which of the following statements about nested if statements is TRUE?
Easy
In a flowchart representing a decision, what shape is typically used to represent a condition or decision point?
Medium
Consider the following code snippet: if (a > b): if (a > c): print('a is largest') else: print('c is largest') else: print('b is largest') What is the output if a=5, b=10, c=7?
Medium
Which of the following is NOT a valid way to write an if condition in Python?
Hard
In the context of decision-making in programming, what does the term 'short-circuit evaluation' mean?
Hard
How many possible paths are there in a program segment with two nested if statements without else blocks?
Hard
Which of the following is the correct truth table for the expression: if (A and not B)?
Medium
In an Indian bank's ATM software, which decision structure is most appropriate to handle multiple transaction types like 'Withdraw', 'Deposit', 'Balance Enquiry'?

Loading...

Hey! 🔥 Your 7-day streak is at risk. Complete one quick quest today?

Streak broken? No worries. Recover with bonus XP by completing a quest now.