

MCQOPTIONS
Saved Bookmarks
This section includes 9 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. |
What can be passed by non-type template parameters during compile time? |
A. | Int |
B. | Float |
C. | Constant expression |
D. | None of the above |
E. | |
Answer» D. None of the above | |
2. |
|
A. | 1 |
B. | 2 |
C. | 4 |
D. | No memory needed |
Answer» D. No memory needed | |
3. |
|
A. | 17.5 Hi to all |
B. | 17.5 |
C. | Hi to all |
D. | None of the above |
Answer» B. 17.5 | |
4. |
|
A. | Compiler Error |
B. | 1 |
C. | 2 |
D. | 1024 |
Answer» E. | |
5. |
|
A. | Compile Error |
B. | 10 |
C. | 20 |
D. | 15 |
Answer» B. 10 | |
6. |
|
A. | Compiler Error: template parameters cannot have default values |
B. | 12 6 |
C. | 12 3 |
D. | 6 3 |
Answer» C. 12 3 | |
7. |
|
A. | Compiler Error: There can not be more than one template arguments. |
B. | 6 12 |
C. | 8 8 |
D. | 2 8 |
Answer» E. | |
8. |
|
A. | Compiler Error in last cout statement as call to maximum is ambiguous |
B. | Compiler Error in all cout statements as data type is not specified |
C. | 7 7.0 7.0 |
D. | None of the above |
Answer» B. Compiler Error in all cout statements as data type is not specified | |
9. |
|
A. | 2.1 |
B. | 3.1 |
C. | 4.1 |
D. | 2.1 3.1 4.1 |
Answer» E. | |