

MCQOPTIONS
Saved Bookmarks
This section includes 3 Mcqs, each offering curated multiple-choice questions to sharpen your Object Oriented Programming Using C++ knowledge and support exam preparation. Choose a topic below to get started.
1. |
Which constructor among the following will be called if a call is made like className(5, a );? |
A. | className(int x=5,char c= a ); |
B. | int className(int x, char c, char d); |
C. | className(int x, char c, int y); |
D. | char className(char c,int x); |
Answer» B. int className(int x, char c, char d); | |
2. |
How many parameters must be passed if only the following prototype is given to a constructor?
|
A. | 1 |
B. | 2 |
C. | 3 |
D. | Compile time error |
Answer» C. 3 | |
3. |
The Constructors with all the default arguments are similar as default constructors. |
A. | True |
B. | False |
Answer» B. False | |