#include <quiz> int main() { Quiz quiz::modern_cpp(); return quiz.master(); }
Modern C++ Quiz
Test your knowledge of modern C++ features from C++11 to C++20. True/false, multiple choice, and matching questions await.
// Select Your Challenge
C++11
Move semantics, lambdas, smart pointers, auto, variadic templates, and more.
Move Semantics Lambda Expressions Smart Pointers auto keyword Range-based for loops
C++14
Generic lambdas, return type deduction, variable templates, and relaxed constexpr.
Generic Lambdas decltype(auto) Binary Literals std::make_unique
C++17
Structured bindings, if constexpr, std::optional, std::variant, and filesystem.
Structured Bindings if constexpr std::optional std::filesystem Fold Expressions
C++20
Concepts, coroutines, ranges, modules, three-way comparison, and more.
Concepts Coroutines Ranges std::span Three-way Comparison
// Your Progress
constexpr Stats progress = {
.questions_answered = 0,
.correct_answers = 0,
.accuracy = 0.0%
};
// Question Types
true_false.hpp
✓ ✗
True / False
Verify your understanding of C++ concepts and behaviors.
multiple_choice.hpp
A B C D
Multiple Choice
Test your knowledge of syntax, features, and best practices.
matching.hpp
↔
Matching
Connect features with their descriptions or code examples.