Explore topic-wise MCQs in Technical MCQs.

This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

1.

How many parameter does the throw expression has, in c++?

A. 1
B. 2
C. 3
D. 4
E.
Answer» B. 2
2.

How to handle exception in constructor, in c++?

A. We have to return an exception
B. We have to throw an exception
C. Both A and B
D. None of the above
Answer» C. Both A and B
3.

Which operator in c++ programming language , is used by catch-all handler?

A. Ellipses operator
B. Ternary operator
C. String operator
D. Unary operator
Answer» B. Ternary operator
4.

Uncaught exception will call which function?

A. Terminate
B. Catch
C. None of the above
D. Throw
Answer» B. Catch
5.

Catch-all handlers uses which operators in c++?

A. String operators
B. Ternary operators
C. Ellipses operators
D. Unary operators
Answer» D. Unary operators
6.

How many standard exception exist in c++?

A. 9
B. 5
C. 6
D. 7
Answer» C. 6
7.

What should be included in try block in c++ programming language?

A. Static value
B. Dynamic allocation
C. None of the above
D. Const value
Answer» C. None of the above
8.

What is a count of standard exception?

A. 9
B. 5
C. 6
D. 7
Answer» B. 5
9.

What is the basic of grouping standard exception classes,in c++?

A. Catch
B. None of these
C. Error
D. Namespace std
Answer» E.
10.

Which of the following is true about exception handling in C++? i) There is a standard exception class like Exception class in Java. ii) All exceptions are unchecked in C++, i.e., compiler doesn't check if the exceptions are caught or not. iii) In C++, a function can specify the list of exceptions that it can throw using comma separated list like following.

A. Only i,iii
B. Only i,ii
C. Only ii,iii
D. All of the above
Answer» C. Only ii,iii