Which of the following is NOT a keyword used in C++ exception handling?
Fundamentals of Object-Oriented Programming - C++ - Exception Handling

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Quizizz Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
try
error
throw
catch
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the try block example, what is the initial value of the age variable?
19
14
16
18
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the age is less than 18 in the try block example?
Nothing happens
The program terminates
An exception is thrown
Access is granted
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the catch block do when an exception is thrown?
Ignores the exception
Prints an error message
Terminates the program
Retries the try block
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What message is displayed if the age is 19 in the try block example?
Error: Invalid age
You are too young
You're old enough and have been granted access
Access denied
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What can the throw keyword be used for besides throwing an age error?
Restarting the program
Logging errors
Ignoring exceptions
Outputting a reference number
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What syntax can be used in the catch block to handle any type of exception?
No dots
Four dots
Three dots
Two dots
Similar Resources on Quizizz
6 questions
Java Programming for Complete Beginners - Java 16 - Step 10 - Throwing a Checked Exception - Throws in Method Signature

Interactive video
•
University
6 questions
Complete Java SE 8 Developer Bootcamp - Unchecked (Runtime) vs. Checked Exceptions

Interactive video
•
University
8 questions
Complete Java SE 8 Developer Bootcamp - Catching Exceptions

Interactive video
•
University
3 questions
Complete Java SE 8 Developer Bootcamp - Finally Block

Interactive video
•
University
2 questions
Complete Modern C++ - Exception Handling - Part IV (Nested Exceptions)

Interactive video
•
University
8 questions
Complete Modern C++ - Exception Handling - Part IV (Nested Exceptions)

Interactive video
•
University
6 questions
Java 11 Programming for Beginners 4.4: Error Handling in Java 11

Interactive video
•
University
6 questions
Hands-on .NET Minimal API for Web Developers - Step 14: Handle Exceptions

Interactive video
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade