C++ Intermediate Quiz
Explore STL, templates, operator overloading, inheritance, and memory management
Start the quizSample questions from this quiz
A preview of the style and depth. Try each one, then reveal the answer — or skip straight to the timed quiz.
1. What is STL?
- Template library
- Standard Template Library with containers, algorithms, iterators
- Standard library
- Container library
Show answer
Answer: Standard Template Library with containers, algorithms, iterators. STL (Standard Template Library) provides containers (vector, map, set), algorithms (sort, find), and iterators. Built on templates for type safety and efficiency.
2. What is a template?
- Abstract type
- Generic type
- Blueprint for generic programming
- Type parameter
Show answer
Answer: Blueprint for generic programming. Templates enable generic programming. Define functions/classes that work with any type. Compiler generates type-specific code. Two types: function templates and class templates.
3. What is vector?
- List structure
- Dynamic list
- Dynamic array that grows/shrinks automatically
- Array container
Show answer
Answer: Dynamic array that grows/shrinks automatically. vector is a dynamic array that automatically grows/shrinks. Contiguous memory. Random access. Use push_back(), pop_back(), size(). Include <vector>.
Frequently asked questions
How many questions are in this C++ quiz?+
30 questions, with a 60-minute time limit. Every question includes a written explanation of the correct answer.
Is this C++ quiz free?+
Yes. Every quiz on CodexQuizz is free and needs no account. You only enter a name if you choose to post your score to the leaderboard.
What level is the intermediate quiz aimed at?+
Explore STL, templates, operator overloading, inheritance, and memory management
Can I use this to prepare for a C++ interview?+
Yes. The questions cover the topics that come up in C++ technical screens, and the explanations are written so that a wrong answer still teaches you the underlying concept.
Ready to test your C++?
30 questions, 60 minutes. Free, no sign-up.
Start now