
Fundamentals of Object-Oriented Programming - C++ - Exception Handling
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
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
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
6 questions
Robotic Process Automation - UiPath RPA Developer Masterclass - Introduction
Interactive video
•
University
6 questions
Complete SAS Programming Guide - Learn SAS and Become a Data Ninja - Automatic Variables
Interactive video
•
University
6 questions
Apple Orders M. Night Shyamalan's Psychological Thriller | THR News
Interactive video
•
University
6 questions
API Testing with Postman - Capture API Requests with the Postman Proxy
Interactive video
•
University
6 questions
Refactoring the Project
Interactive video
•
University
8 questions
Serving Products – Back-end Routes
Interactive video
•
University
8 questions
R Programming for Statistics and Data Science - If, Else, Else If Statements in R
Interactive video
•
University
8 questions
Chatbots for Beginners: A Complete Guide to Build Chatbots - Chatbot Development with AWS Lex and AWS Lambda: Build and
Interactive video
•
University
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University