C++ (Coding) Quiz
C++ language fundamentals — memory management, templates, and the performance-oriented features developers rely on.
This category currently has 101 questions in the SERVBG quiz bank. Below are a few sample questions — the full interactive quiz shuffles through the whole set with instant scoring.
Sample questions
Which header declares std::vector?
- <list>
- <vector>
- <stl>
- <container>
- <array>
Which keyword (C++11+) lets the compiler deduce a variable's type?
- decl
- typeof
- auto
- var
- let
Which header declares std::unique_ptr?
- <smart_ptr>
- <utility>
- <memory>
- <new>
- <pointer>
Which factory function constructs a unique_ptr?
- std::ptr::unique<T>()
- std::make_unique<T>(args...)
- std::unique_ptr<T>(args...)
- std::alloc_unique<T>()
- std::new_unique<T>()
Which factory function constructs a shared_ptr (C++11+)?
- std::ptr::shared<T>()
- std::make_shared<T>(args...)
- std::new_shared<T>()
- shared_alloc<T>()
- std::shared_ptr::create<T>()
Related categories
Python (Coding)
Python syntax, standard-library usage, and the language idioms that come up in day-to-day scripting and application work.
JavaScript (Coding)
Core JavaScript language behavior, async patterns, and the quirks that trip up both beginners and experienced developers.
Linux
Linux command-line usage, file permissions, process management, and the everyday admin tasks every sysadmin and developer needs.
Security
General information security concepts — threats, defenses, and the fundamentals every IT professional should know.
Hardware
Computer hardware components, how they interact, and the troubleshooting knowledge behind keeping systems running.