

MCQOPTIONS
Saved Bookmarks
This section includes 4 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. |
The names given to the default arguments are only looked up and ________________ and are bound during declaration. |
A. | Checked for availability |
B. | Checked for random access |
C. | Checked for accessibility |
D. | Checked for feasibility |
Answer» D. Checked for feasibility | |
2. |
Which among the following is a wrong call to the function void test(int x, int y=0, int z=0)? |
A. | test(5,6,7); |
B. | test(5); |
C. | test(); |
D. | test(5,6); |
Answer» D. test(5,6); | |
3. |
What function will be called with the independent syntax test(5,6,7); ? |
A. | void test(int x, int y) |
B. | void test(int x=0, int y, int z) |
C. | int test(int x=0, y=0, z=0) |
D. | void test(int x, int y, int z=0) |
Answer» E. | |
4. |
Which is the correct condition for the default arguments? |
A. | Those must be declared as last arguments in argument list |
B. | Those must be declared first in the argument list |
C. | Those can be defined anywhere in the argument list |
D. | Those are declared inside the function definition |
Answer» B. Those must be declared first in the argument list | |