This C++ Online Test
Separates Good From Bad Hires

Check our public questions below

Solve questions to get feedback or
take a practice test and get a free certificate.

Screen with work-sample questions

Work-samples are the best predictor of work performance. 8,000+ companies use TestDome premium questions.

About the test

The C++ online test assesses candidates' knowledge of programming in the C++ language and their ability to leverage commonly used parts of the C++ Standard Library.

It's an ideal test for pre-employment screening. A good C++ developer needs to be able not only to solve problems using C++ but also recognize when to leverage the functionality provided by the Standard Library to write robust and maintainable code.

This online test requires candidates to solve coding problems in C++ and find and fix bugs in a C++ program.

Sample public questions

10 min

Implement the unique_names method. When passed two vectors of names, it will return a vector containing the names that appear in either or both vectors. The returned vector should have no duplicates.

For example, calling unique_names(std::vector<std::string>{"Ava", "Emma", "Olivia"}, std::vector<std::string>{"Olivia", "Sophia", "Emma"}) should return a vector containing Ava, Emma, Olivia, and Sophia in any order.

10 min

Implement the function findRoots to find the roots of the quadratic equation: ax2 + bx + c = 0. If the equation has only one solution, the function should return that solution as both elements of the pair. The equation will always have at least one solution.

The roots of the quadratic equation can be found with the following formula: A quadratic equation.

For example, the roots of the equation 2x2 + 10x + 8 = 0 are -1 and -4.

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the C++ test with public questions.

Take a Certification Test

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

39 more premium C++ questions

Non Zero, Document Store, Babushka Doll, Out of Range, Max Sum, Shipping, Limits, Archive, Veterinarian, Hobbies, Node, Paragraph, Platformer, Ship, Unique Numbers, Username, Weighted Average, Window Manager, Book Sale, Friend, Function Cache, Stories, Moving Total, Increment, Paper Strip, Crop Ratio, Battery, Stack to Vector, Internal Nodes, Fire Dragon, Kilometer Converter, String Occurrence, Worker, Unique Product, Segment, Tiles, Read Write Execute, Date Transform, Chain Link.

Skills and topics tested

  • C++
  • Bug Fixing
  • Language
  • Memory Management
  • Exceptions
  • Algorithmic Thinking
  • Arithmetic
  • Conditional Statements
  • Destructors
  • Queue
  • Iteration
  • Map
  • Vector
  • Recursion
  • Tree
  • Regex
  • Strings
  • Data Structures
  • Linked List
  • Unordered Map
  • Sorting
  • Graphs
  • Hash and Equals
  • Dynamic Programming
  • Unordered Set
  • Arrays
  • Pointers
  • Integer Division
  • Complexity
  • Stack
  • Higher Order Function
  • Interfaces
  • OOP
  • Inheritance
  • Method Overriding
  • Stream

For job roles

  • Back-End Developer
  • C++ Developer

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

Multi-skills Test

Mix questions for different skills or even custom questions in one test. See an example.

How TestDome works


Choose a pre-made test
or create a custom test


Invite candidates via
email, URL or your ATS


Candidates take
a test remotely


Sort candidates and
get individual reports

Want to know more?

Not exactly what you're looking for?

Related C++ Programming Tests: