Syntax and Logical Errors - Quiz
1. A line of code reads print('Hello with a missing closing bracket and quote. What type of error is this?
A logic error
A syntax error
No error at all, the line will run correctly
A runtime error
2. A program divides the number of cakes by the number of people. It is run with 20 cakes and 0 people. Which type of error occurs?
No error, the program outputs zero
A logic error
A syntax error
A runtime error
Log in or sign-up to access the quiz
Don't have a login?
You can still revise this topic