C++ (Coding) Quiz
C++ fundamentals: memory management, templates, and the performance features it's known for.
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?
- <vector>
- <array>
- <list>
- <stl>
- <container>
Which keyword (C++11+) lets the compiler deduce a variable's type?
- decl
- auto
- typeof
- let
- var
Which header declares std::unique_ptr?
- <utility>
- <new>
- <smart_ptr>
- <pointer>
- <memory>
Which factory function constructs a unique_ptr?
- std::new_unique<T>()
- std::ptr::unique<T>()
- std::make_unique<T>(args...)
- std::unique_ptr<T>(args...)
- std::alloc_unique<T>()
Which factory function constructs a shared_ptr (C++11+)?
- std::ptr::shared<T>()
- std::shared_ptr::create<T>()
- shared_alloc<T>()
- std::make_shared<T>(args...)
- std::new_shared<T>()
Related categories
Python (Coding)
Python syntax and standard-library usage, from quick scripts to full applications.
JavaScript (Coding)
Core JavaScript behavior and async patterns, including the quirks that trip up beginners and veterans alike.
Linux
Linux command-line usage, file permissions, process management. The daily admin tasks.
Security
General information security concepts: common threats and standard defenses.
Hardware
Hardware components, how they interact, and basic troubleshooting to keep systems running.