Skip to content

Quiz · C++

C++ Basics Quiz: Syntax, Types & Operators

A C++ quiz for beginners: cout and cin, references, bool and auto, std::string, range-based for loops, static_cast and const, with every answer explained.

Questions
15
Difficulty
Easy
Time
~8min
Per question
15sec

What it covers

C++

A topic in Programming & Coding.

C++ quizzes on references, strings and streams, predicting C++ code output, and OOP with classes, virtual functions, templates and the STL.

Before you start

How it works

  1. 1

    The clock

    You have 15 seconds for each question. When time runs out, the question counts as wrong.

  2. 2

    Your answer

    Your first choice is the one that counts. It is checked straight away, with an explanation where there is one.

  3. 3

    The score

    At the end you see your score and can go back through every question and its answer.

  4. 4

    The XP

    XP scales with your score. Replays earn XP only when you beat your previous best.

From players

Ratings

Play next

All of C++

Programming & Coding · C++

C++ Code Output Quiz: Predict the Result

C++ output questions: predict what each program prints, from vectors, maps and references to destructor order, overloads, lambdas and virtual calls.

Medium difficulty15 questions~10 min
+120 XPPlay

Programming & Coding · C++

C++ OOP Quiz: Classes, Inheritance & STL

A C++ OOP and STL quiz: destructors, abstract classes, templates, containers and their complexity, RAII, smart pointers and operator overloading.

Hard difficulty15 questions~12 min
+150 XPPlay