Menu

Selection - Code Quiz

1. What is printed when this code runs?

age = 45 if age > 40: print("Over 40") print("Thank you")
Nothing is printed
Thank you
Over 40
Over 40 Thank you

2. What is printed when this code runs?

score = 55 if score >= 70: print("Distinction") elif score >= 50: print("Merit") elif score >= 30: print("Pass") else: print("Fail")
Distinction
Fail
Pass
Merit

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic