Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is a syntax error? Provide an example.
Think about the rules of writing sentences.
What is a logic error?
Consider the outcome of your calculations.
What type of error occurs due to incorrect syntax?
Think about code that doesn't follow the 'grammar' of programming.
True or False: A runtime error can prevent your program from running.
Consider what happens during execution.
Write a program that calculates the average of 5 numbers, but include a logic error. Identify and correct the logic error.
Check how you're aggregating the numbers.
Create a program that handles division and prevent a runtime error. Explain how you implemented the safety check.
Consider what happens in division where the denominator could cause issues.
5 more questions in this section. Enroll free to practise them all.
Enroll free