Bird
0
0

Given this code, what will be printed if score = 70?

hard📝 Application Q9 of 15
Python - Conditional Statements

Given this code, what will be printed if score = 70?

if score > 80:
    print("High")
elif score > 60:
    print("Medium")
elif score > 50:
    print("Low")
else:
    print("Fail")
AHigh
BMedium
CLow
DFail
Step-by-Step Solution
Solution:
  1. Step 1: Check first if condition

    70 > 80? No, skip first block.
  2. Step 2: Check first elif condition

    70 > 60? Yes, print "Medium" and skip rest.
  3. Final Answer:

    Medium -> Option B
  4. Quick Check:

    First true condition runs [OK]
Quick Trick: First true condition in ladder runs, others skipped [OK]
Common Mistakes:
MISTAKES
  • Choosing Low or Fail incorrectly
  • Ignoring elif order
  • Expecting multiple prints

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Python Quizzes