Identify Syntax & Logic Errors in Testing (OCR GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What do syntax errors do to a program?
What do syntax errors do to a program?
Prevent the program from running
When do syntax errors occur?
When do syntax errors occur?
When programming language rules are broken
Which of these is an example of a syntax error?
Which of these is an example of a syntax error?
Missing brackets or colons
What type of error is a missing closing quotation mark?
What type of error is a missing closing quotation mark?
Syntax error
What do logic errors cause?
What do logic errors cause?
Program runs but produces incorrect results
Why are logic errors harder to detect?
Why are logic errors harder to detect?
They don't stop the program from running
In the calculate_area function, what type of error is using addition instead of multiplication?
In the calculate_area function, what type of error is using addition instead of multiplication?
Logic error
What values do logic gates work with?
What values do logic gates work with?
Binary: 0 (false) or 1 (true)
What is the output of a NOT gate when the input is 0?
What is the output of a NOT gate when the input is 0?
1
What is the output of an AND gate when both inputs are 1?
What is the output of an AND gate when both inputs are 1?
1
What is the output of an OR gate when inputs are 0 and 1?
What is the output of an OR gate when inputs are 0 and 1?
1
For circuit (NOT p) AND q, what is the output when p=0 and q=1?
For circuit (NOT p) AND q, what is the output when p=0 and q=1?
1
