Fundamentals of Object-Oriented Programming - C++ - Exception Handling

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a keyword used in C++ exception handling?
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 Wayground
6 questions
Intro To Python Programming - Catching Exceptions

Interactive video
•
KG - University
4 questions
Java Interview Guide : 200+ Interview Questions and Answers - Throwing an Exception

Interactive video
•
University
2 questions
Python Bootcamp in a Day - Python Programming for Beginners - The Finally Block

Interactive video
•
University
6 questions
Java Programming for Complete Beginners - Java 16 - Step 08 - Hierarchy of Errors and Exceptions - Checked and Runtime

Interactive video
•
University
6 questions
Java Programming for Complete Beginners - Java 16 - Step 08 - Hierarchy of Errors and Exceptions - Checked and Runtime

Interactive video
•
University
6 questions
The Ultimate Guide to Python Programming With Python 3.10 - Custom Exception ExitPhonebook()

Interactive video
•
University
2 questions
Fundamentals of Object-Oriented Programming - C++ - Exception Handling

Interactive video
•
University
6 questions
Mockito Tutorial: Learn mocking with 25 Junit Examples - Step 09: Testing Exceptions in JUnit Tests

Interactive video
•
University
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 Information Technology (IT)
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University