C++ Online Test

20 questions total, 60 minutes maximum, for mid-level programmers

With this C++ online test, you can easily assess the skills of prospective candidates before ever inviting them to an interview.

The programming test is designed to appraise a candidate's C++ skills across a wide spectrum. This C++ quiz consists of 20 questions compiled by a team of experts in the C++ programming language and is guaranteed to provide an accurate picture of a programmer's abilities.

Taking advantage of this practice test is a surefire way to easily and efficiently identify candidates with the highest aptitude for C++ programming.

Programming test includes:

C++ - 20 Questions

  • Fundamentals: References & Pointers, Const Correctness, Explicit
  • Standard Library
  • Class Design, Overloading
  • Virtual Functions, Polymorphism, Inheritance
  • Memory Management, Exception Safety
  • Miscellaneous: Perfect Forwarding, Auto, Flow Control, Macros

Sample C++ Test Question

What is the output of the following C++ code?

Sample C++ Question


Answer 1
Answer 2
Answer 3
Answer 4

The correct answer is 1.

C++ Interview Questions

So, good news: you've got some promising candidates who've passed the online test and are ready for a live interview.

Do you want to ask some programming questions personally?

That's where our set of ready-made C++ interview questions and answers comes in. With our questions, assembled by a team of C++ experts, you'll be able to interview candidates like a pro and pick the best ones for the job!

Be sure to read our blog article, 10 Proven C++ Programming Questions to Ask on Interview.

Sample C++ Test Report

This sample C++ test report shows what employers/recruiters receive via email after a candidate completes one of our coding tests. It includes an overall score and a detailed breakdown by specific knowledge areas, providing a clear view of a candidate's coding skills.

Reports are provided in PDF format, making them easy to read, share and print.

C++ Coding Test Report

Download Sample Report

Custom Branding

Do you want the C++ coding test to match your own branding?

No problem! Use your company's domain and logo without any mention of Tests4Geeks.

Your applicants will think these programming assessment tests are all yours!


"They totally blow away the competition as far as a better product value."

Maurice H. on Capterra.com


1. Does every candidate have to answer the same questions?

Yes. C++ test consists of the same questions for every candidate.

In order to properly compare candidates, they need to answer questions of the same difficulty level, and different questions always mean different difficulty levels.

However, the order of questions and answers is randomized for each applicant.

2. How should I interpret the exam scores?

First of all, you need to keep in mind one very important thing:

The purpose of this C++ online test is not to help you find the best developers.

Its purpose is to help you avoid the worst ones.

For example, you have 5 candidates who get scores of 35, 45, 60, 65, and 80, based on a maximum possible score of 100.

We would recommend you invite the last three (those scoring 60, 65, and 80) to a live interview, not just the one who scored an 80/100.

3. Coding Test vs. Quiz

The test is presented in a multiple-choice, or quiz, format, rather than requiring test takers to write code.

If we used a coding test instead, we would have to check all answers manually, which would obviously be impossible.

4. What skill level is the test for?

The test is primarily created for mid-level developers.

5. What about junior and senior level developers?

The test can also be used to test junior programmers, but you should reduce your acceptance score drastically to compensate.

Likewise, you can use it to test senior C++ developers as well, with an increased acceptance score.

Some will argue that it's pointless to judge senior developers based on a test meant for mid-level developers. This is generally true if you're looking for specific skills in a candidate rather than a broad base of expertise.

But at the same time, anyone can claim to be a senior developer on their resume. If you're concerned that candidates might be overstating their knowledge and accomplishments, this C++ skills test is a good way to determine which ones can actually deliver what they promise.

Made by Professionals

Read how we create our tests...

Other C/C++ Tests

Other Programming Tests