PGCP-ACCMCE (CCE Modules Exam)•20 Questions
C++ Programming Practice MCQs
Topic Covered in this Question Set
C++ Program Structure, Translation and Language Fundamentals
Click on an option to check your answer immediately. Full solution & explanation provided for every question.
Interactive Practice Mode
C++ Programming Free MCQs
Select an option to test your knowledge with real exam questions and instant explanations.
Total20
Correct0
Wrong0
Progress: 0 of 20 answered0% Accuracy
Q3 of 20
Which build phase connects a call in main.o to the function's definition in math.o?
Q6 of 20
After #include <iostream>, with no using declaration or directive, which statement compiles?
Q10 of 20
What does this code print? int count = 1; int Count = 2; std::cout << count + Count;
Q12 of 20
main.cpp includes circle.hpp, which declares double area(double), and calls area(2.0). The build command is g++ -std=c++17 main.cpp -o app, so circle.cpp (which defines area) is not compiled. What happens?
Q15 of 20
Which C++17 feature lets auto [key, value] = entry; unpack a std::pair into two named variables?
Q16 of 20
Inside a function template, which C++17 construct tests a compile-time condition that depends on the template parameter and discards the unselected branch for that instantiation?
Q18 of 20
Why does a header wrap its contents in #ifndef / #define / #endif guards?
Q19 of 20
Control reaches the closing brace of main without a return statement. What happens?
Need to review the concepts?
Read Free Study Notes →Read C++ Programming Study Notes
Review complete topic notes, syntax guides, code examples, and summary tables.