N5 CS SDD - Testing and Errors Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Tracy Mutter
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error is shown in the following code snippet? print("Hello World)
Syntax Error
Logic Error
Execution Error
No Error
Answer explanation
Explanation: The code is missing a closing quotation mark, which makes it invalid syntax.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of normal testing? a = 2 b = 3 print(a + b)
a = 2, b = 3
a = 1000, b = 2000
a = -1, b = -1
a = "2", b = "3"
Answer explanation
Explanation: Normal testing uses typical, expected values. Here, adding 2 and 3 is a common, straightforward test.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Identify the type of error in the following code: a = 10 b = 0 print(a / b)
Syntax Error
Logic Error
Execution Error
No Error
Answer explanation
Explanation: Dividing by zero causes a runtime error, which is an execution error.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an example of extreme testing? a = 1000000 b = 1000000 print(a * b)
a = 2, b = 3
a = 1000000, b = 1000000
a = 0, b = 0
a = -1, b = -1
Answer explanation
Explanation: Extreme testing uses values at the upper or lower limits of what the program can handle. Multiplying two very large numbers is an example of this.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of exceptional testing? a = "10" b = 5 print(a - b)
a = 10, b = 5
a = 100, b = 50
a = "10", b = 5
a = 0, b = 0
Answer explanation
Explanation: Exceptional testing involves using unexpected or invalid inputs to see how the program handles them. Subtracting a string from an integer is an example of this.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error is shown in the following code snippet? x = 10 if x > 5 print("x is greater than 5")
Syntax Error
Logic Error
Execution Error
No Error
Answer explanation
Explanation: The code is missing a colon at the end of the if statement, which is required for correct syntax.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error is shown in the following code snippet? a = 3 b = 5 if a > b: print(a) else: print(b)
Syntax Error
Logic Error
Execution Error
No Error
Answer explanation
Explanation: The code correctly compares two numbers and prints the larger one. There are no errors.
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Errors in Python

Quiz
•
9th - 12th Grade
10 questions
Software Design and Development Quick Quiz 2

Quiz
•
11th - 12th Grade
8 questions
Khan Academy - Syntax, runtime, and logic errors

Quiz
•
12th Grade
11 questions
Python Quiz

Quiz
•
12th Grade
10 questions
Programming - Syntax & Logic Errors

Quiz
•
3rd - 12th Grade
15 questions
Program Implementation

Quiz
•
10th - 12th Grade
10 questions
7.9 Identifying and Correcting Errors Cambridge IGCSE 0478

Quiz
•
10th Grade - University
11 questions
AP CSP Vocab Quiz BI 1, 2

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University