by BlastRoom
Practice tracing Python branches and reading indentation correctly.
#computer_science

30 questions
One question set, multiple game modes. Tap any game to see it in action. Not sure which to pick?
Answer to place stones and capture territory.
Outrun the snow together.
Earn blasts, then hunt the other team.
Answer to earn energy, then climb.

The class blasts through walls together.
Bid on mystery lots. Most money wins.
Sell tours. Nice, standard, or a total scam.
Answer, restock, and serve the rush.
More correct answers pulls the rope your way.
Answer, then shoot down the alien wave.
Answer, then tap to leap the frozen ridge.
What does this Python program display? score = 72 if score >= 90: print("Excellent") elif score >= 80: print("Good") elif score >= 70: print("Fair") else: print("Poor")
What does this Python program display? temperature = 0 if temperature > 20: print("Warm") elif temperature >= 0: print("Cool") else: print("Freezing")
What does this Python program display? level = 2 if level == 1: print("Beginner") elif level == 2: print("Intermediate") else: print("Advanced")
What does this Python program display? color = "yellow" if color == "red": print("Stop") elif color == "yellow": print("Wait") else: print("Go")
What does this Python program display? n = 15 if n % 5 == 0: print("Five") elif n % 3 == 0: print("Three") else: print("Other")
What does this Python program display? points = 90 if points >= 90: print("Gold") elif points >= 80: print("Silver") else: print("Bronze")
What does this Python program display? day = "Sat" if day == "Sun": print("Rest") elif day == "Sat": print("Weekend") else: print("School")
What does this Python program display? balance = 0 if balance > 0: print("Credit") elif balance == 0: print("No money") else: print("Overdrawn")
In this Python program, which value of n makes it display "large"? if n < 0: print("negative") elif n < 10: print("small") else: print("large")
Which score makes this program display "Pass"? if score >= 90: print("Honors") elif score >= 70: print("Pass") else: print("Retry")
Which value of number makes this program display "odd large"? if number % 2 == 0: print("even") elif number > 10: print("odd large") else: print("odd small")
Which value of temperature makes this program display "freezing"? if temperature < 0: print("freezing") elif temperature <= 10: print("cold") else: print("mild")
Which value of code makes this program display "guest"? if code == "blue": print("accepted") elif code == "green": print("guest") else: print("denied")
Which value of n makes this program display "multiple of 3"? if n % 2 == 0: print("even") elif n % 3 == 0: print("multiple of 3") else: print("other")
What does this Python program display? x = 4 if x > 5: print("big") print("done")
What does this Python program display? ready = False if ready: print("Begin") print("End")
What does this Python program display? temperature = 25 if temperature > 30: print("Hot") print("Recorded")
What does this Python program display? n = 2 if n % 2 == 0: print("Even") print("Checked")
What does this Python program display? logged_in = False if logged_in: print("Welcome") print("Show menu")
What does this Python program display? n = 8 if n > 5: print("First") if n % 2 == 0: print("Second") else: print("Third")
What does this Python program display? temperature = 18 if temperature < 20: print("Cool") if temperature < 10: print("Cold") else: print("Warm")
What does this Python program display? x = 0 if x == 0: print("Zero") if x >= 0: print("Nonnegative") else: print("Negative")
What does this Python program display? age = 15 if age >= 13: print("Teen") if age >= 16: print("Can drive") else: print("Wait")
What does this Python program display? word = "hi" if len(word) == 2: print("Short") if word.startswith("h"): print("Begins H") else: print("Does not begin H")
A student may join the club only if they are in grade 9 or higher and have permission. Which Python condition states this rule?
A greenhouse alert should run when temperature is from 10 through 25 degrees Celsius, including both endpoints. Which Python condition states this rule?
A door unlocks only when a visitor has a ticket and a valid ID. Which Python condition states this rule?
A store gives a discount when a customer is a member or spends at least $50. Which Python condition states this rule?
A program should print "adult" for ages 18 and older. Which Python condition states this rule?
A program should print "has items" whenever count is not zero. Which Python condition states this rule?
Crack the passcode before the zombies get in.
Answer, then swat bugs for bonus points.
Race through questions at your own speed.
Same question on every screen. Fastest wins.

Pick a tile, answer, hit bonuses and steals.
Python Functions
25 questions