
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
Create a free account and access millions of resources
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
20 questions
P2 Fun Typing
Quiz
•
2nd Grade
15 questions
CLASS-2 CH-2
Quiz
•
2nd Grade
20 questions
Review Keyboard & Google Docs
Quiz
•
2nd Grade
20 questions
CLASS 3 L-2 MORE ABOUT MS PAINTS
Quiz
•
1st - 3rd Grade
15 questions
Computer Lab Rules
Quiz
•
KG - 8th Grade
13 questions
Technology Expectations
Quiz
•
2nd - 5th Grade
18 questions
MOUSE-AN INPUT DEVICE
Quiz
•
2nd Grade
20 questions
Excel Spreadsheet Intro
Quiz
•
KG - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
15 questions
Fun Christmas Trivia for Kids
Quiz
•
2nd Grade
26 questions
Christmas Songs
Quiz
•
2nd - 3rd Grade
10 questions
Christmas/Winter
Quiz
•
KG - 2nd Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
2nd Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
1st - 3rd Grade
