
Unit09-FuncnExcept CodeHSAI
Quiz
•
Computers
•
2nd Grade
•
Practice Problem
•
Hard
MrsT Voci
Used 3+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error is raised when the user enters something that isn't a number?
NameError
TypeError
ValueError
SyntaxError
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error is raised when the user tries to divide by zero?
ZeroDivisionError
TypeError
ValueError
IndexError
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What programming constructs can be used to gracefully handle exceptions?
for loops
try and accept blocks
while loops
if-else statements
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the try block contain in exception handling?
Code that will run before the exception is raised
Code that will run if an exception is raised
Code that will always run
Code that will never run
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using try and accept in exception handling?
To ignore exceptions
To raise more exceptions
To stop the program
To gracefully handle exceptions
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the accept block specify in exception handling?
Type of exception to raise
Type of exception to catch
Type of exception to handle
Type of exception to ignore
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of giving age a default value of -1 in the program?
To calculate the user's age
To stop the program
To handle exceptions
To print the user's name and age
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
6th Grade Media Quiz
Quiz
•
KG - University
18 questions
Keyboard keys and formatting in MS Word
Quiz
•
1st - 2nd Grade
20 questions
Computer Hardware - Input&Output Devices for Situations
Quiz
•
1st - 12th Grade
15 questions
Colossus
Quiz
•
1st - 12th Grade
20 questions
2do. EGB Repaso - Examen QI
Quiz
•
2nd Grade
13 questions
Grade 2 - Week 25 - WWW
Quiz
•
2nd Grade
20 questions
L1 & L2 class 1
Quiz
•
1st - 3rd Grade
15 questions
Introduction to Windows 7
Quiz
•
KG - 2nd Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
14 questions
Contractions
Quiz
•
2nd Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Counting Coins
Quiz
•
2nd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
19 questions
Subject-Verb Agreement
Quiz
•
2nd - 5th Grade
13 questions
Fractions
Quiz
•
1st - 2nd Grade
12 questions
2-Digit Subtraction with Regrouping
Quiz
•
2nd Grade
14 questions
Fractions
Quiz
•
2nd - 3rd Grade
