by BlastRoom
Students tell syntax, runtime and logic errors apart, read Python error messages, trace code line by line and fix common bugs.
#computing#ict#cambridge_computing#cambridge_computing_stage_7
20 questions
One question set, multiple game modes. Tap any game to see it in action. Not sure which to pick?
What is a runtime error?
Which type of error does Python NOT show an error message for?
What type of error does print(10 / 0) cause?
A program has a syntax error on line 10. What happens when you run it?
A program has a runtime error on line 10. What happens when you run it?
An error says NameError: name 'scor' is not defined. What is the most likely cause?
score = 0 is on line 1 and print(Score) is on line 2. What happens?
What does the line number in a Python error message tell you?
Your program shows an error message. What is the best first step?
A program uses int(input("Age? ")). It crashes only when a user types twelve as a word. Which type of error is this?
The line after if x > 5: is not indented. What happens?
What is tracing a program?
What is a trace table used for?
x = 2, then x = x * 3, then x = x - 1. What is x at the end?
a = 4, then b = a, then a = 7. What does print(b) show?
average = a + b / 2 gives wrong answers. Which line fixes it?
A program should print Pass for marks of 50 or more, but it uses if marks > 50:. Which test mark shows the bug?
total = price + qty should work out the cost of qty items. What is wrong?
Why might a programmer add extra print() lines while debugging?
Why might a programmer put # at the start of a line while debugging?
Outrun the horde and crack the passcode.
Pick a tile, answer, hit bonuses and steals.
Impact of Technology
20 questions
Network Hardware
20 questions
Physical Computing and Sensors
20 questions
Python Basics
20 questions
Python Selection
20 questions
Python Strings and Input
20 questions
Software Development
20 questions
Spreadsheet Modelling
20 questions
Copyright and Online Content
20 questions
AI and Robotics
20 questions