


Test How Well You Really Know C++
C++ rewards precise knowledge and punishes guesses. Why does -1 < 1u evaluate to false? Why does a virtual call made from a constructor ignore the override? Why does std::move on a const string copy it, and why can a vector copy its elements instead of moving them when it grows? When is a reference to a temporary still valid, and when does it dangle? These practice tests check how well you can predict what a real compiler does with short C++ programs.
What this practice test course offers:
Topics covered:
Who should take this course?
If you are new to C++, start with a fundamentals course and come back here to test yourself.
How to use the tests: take one test at a time, then read every explanation, including the ones for questions you answered correctly. Retake a test a few days later to check that the rules have stuck.
This course is independent and is not affiliated with or endorsed by ISO, the C++ Standards Committee (WG21), the Standard C++ Foundation or the GNU Project.