Jan 19, 2026

C/C++ MCQ - Check your skill set

C / C++ MCQ Quiz

C / C++ Interview MCQ Test

1. Which keyword prevents a variable from being modified?
2. Which operator is used to allocate memory dynamically in C++?
3. Which feature supports runtime polymorphism?
4. What is sizeof(char)?
5. Which container allows fast random access?
6. What is a dangling pointer?
7. Which function frees memory allocated by malloc?
8. Which keyword is used to inherit a class?
9. Which is NOT a C++ access specifier?
10. What does STL stand for?
11. Which loop executes at least once?
12. Which pointer manages memory automatically?
13. What is RAII?
14. Which keyword avoids compiler optimization?
15. What is the output of sizeof(int)?

No comments:

Post a Comment