by BlastRoom
Practice tracing Python values, reading input, and converting between types.
#computer_science

40 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 = 4 score = score + 6 score = score * 2 print(score)
Trace the variable in this program. What is printed? word = "go" word = word + "al" word = word * 2 print(word)
What does this program print? count = 12 count = count - 5 count = count + count print(count)
Which value is displayed? price = 3.5 price = price * 2 price = price - 1 print(price)
What does this program display? name = "Ada" name = name + " Lovelace" name = name.upper() print(name)
What is printed by this code? items = 2 items = items * 3 items = items + 1 print(items)
Follow the assignments. What does Python print? message = "hi" message = message * 3 message = message + "!" print(message)
What final value does this program print? level = 1 level = level + 4 level = level * level print(level)
The user types 15 and presses Enter. What does this program display? age = input("How old are you? ") print(type(age))
A user enters 3.14. What does this program display? value = input("Value: ") print(type(value))
The user types True and presses Enter. What type is stored in answer? answer = input("Continue? ") print(type(answer))
The user enters 007. What does Python display? code = input("Code: ") print(type(code))
A user types a single space and presses Enter. What is the type of entry? entry = input("Type something: ") print(type(entry))
The user types -8. What does this program display? number = input("Number: ") print(type(number))
The user enters hello. Which type is printed? text = input("Message: ") print(type(text))
The user types 42. What is the type of points? points = input("Points: ") print(type(points))
What does this Python line display? print(int(7.9))
What value is printed? print(float("12"))
What does this line display? print(str(45))
What does this Python program print? whole = int("-3") print(whole)
What does this program display? height = float("1.75") print(height)
What value does Python print? print(int(-2.6))
What is printed by this code? score = str(9) + "0" print(score)
What does this Python code display? print(float(8))
The user types 4 and presses Enter. What does this program display? number = input("Enter a number: ") print(number * 3)
A user enters 12. What does this program print? value = input("Value: ") print(value + value)
The user types 5. What happens when this code runs? count = input("Count: ") print(count + 2)
The user enters go. What does this program display? command = input("Command: ") print(command * 2)
The user types 3.5. What happens when this code runs? amount = input("Amount: ") print(amount - 1)
A user types 0. What does this program display? flag = input("Flag: ") print(flag * 4)
A program must add 5 to a whole number the user types. Which line correctly reads and converts the value in one step?
A program needs a decimal value entered by the user for this calculation: `area = length * 2.5`. Which assignment reads and converts length in one step?
A program will join a user's score with the text " points" using score + " points". Which line stores the score so that the join works?
A program will calculate `total = tickets * 12`, and the user enters a whole number of tickets. Which line should be used?
The user may enter 1.5 for a temperature, and the program then adds 0.5. Which line is correct?
Which of these is a variable name Python will accept?
Which name is valid for a Python variable?
Which assignment uses a Python variable name that Python accepts?
Which name could be used as a Python variable?
Which line has a variable name that Python will accept?
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 for and while Loops
30 questions