C++ Online Coding Test

  • Junior, senior or expert
  • Question bank or custom questions
  • Updated

A CoderPad C++ coding test is an online test you build in CoderPad Screen with junior, senior or expert questions on smart pointers, templates and move semantics, from the CoderPad question bank or your own. Game, graphics and trading teams get a scored report for each candidate.

What can your C++ coding test cover?

The CoderPad question bank includes C++ questions on memory ownership, templates and modern C++, suited to game, graphics engine, trading and desktop developers. Combine them with your own questions to build the test your role needs. Modern C++ frees memory automatically with smart pointers and RAII, while older C-style code manages memory by hand and leaks more easily.

C++ skills to assess
  • Memory ownership with RAII and smart pointers (unique_ptr, shared_ptr)
  • Standard Template Library (STL) containers and algorithms
  • Templates and generic code
  • Move semantics and the Rule of Five
  • Virtual functions and polymorphism
Jobs using C++
  • Game developer
  • Graphics engine developer
  • Trading systems developer
  • Desktop application developer
Question typesMultiple choice, coding exercises
LevelsJunior, Senior, Expert
QuestionsFrom the CoderPad question bank, your own questions, or both
Test lengthSet by the questions you choose

Sign up free to explore the question bank and try the candidate experience

Sample C++ coding question: Search a sorted array of up to a million integers

Implement a C++ method that returns true if the integer k is in a sorted array, and false if it isn't. The array is in ascending order, holds up to 1 million integers, and is never NULL. The method should use as little CPU time as possible. For example, searching {-9, 14, 37, 102} for 102 returns true and searching for 36 returns false.

bool Answer::exists(int ints[], int size, int k)

What a good solution shows

  • Uses binary search, or std::binary_search from the C++ standard library, instead of checking every item.
  • Handles an empty array and values outside the array's range without reading past either end.
  • Keeps the work at about 20 comparisons for a million items.

Preview a sample coding test report

How is a C++ coding test scored?

CoderPad Screen auto-grades each candidate's answers and gives you a scored report. The report shows each candidate's strengths and weaknesses and compares their skills with others who took similar assessments.

Code playback shows how each candidate thinks:

  • See how they approach a problem and build their solution.
  • Note areas to explore further in later interviews.
  • Spot questionable or concerning behavior.
Code playback replays how a candidate wrote their answer.

How CoderPad prevents cheating in C++ tests

Code playback shows how a C++ answer was built, including any code pasted in at once. To confirm they understand it, add a video follow-up question that asks them to explain their solution and the main decisions behind it.

  • Code playback

    See how candidates wrote their code or text.

  • Plagiarism detection

    Flags when a previous candidate's exact code is reused.

  • Copy/paste tracking

    Shows when code may have come from elsewhere.

  • AI follow-up questions

    Check candidates understand their code.

How building a C++ coding test works

  1. Build the test

    Pick C++ questions from the CoderPad question bank, write your own, or combine both.

  2. Invite candidates

    Send each candidate a link to the test by email.

  3. Candidates take the test

    They code in the browser, with nothing to install.

  4. Review results

    Read the scored report and watch the code playback.

Create and send coding assessments in 60 seconds, even if you're not techy. Choose the level and the number of questions, and add your own coding exercises whenever you need them.

How do you test C++ skills before hiring?

Use three checks: a C++ coding test, a review of engine or game code, and a live question on move semantics. A C++ resume doesn't show whether the developer writes modern C++ or still manages memory by hand.

Questions to ask and signals to look for at each step:

  • Portfolio

    Ask for game projects in Unreal Engine or a custom engine. They show C++ written under real performance limits.

  • Code on GitHub

    Look for CMake builds, C++17 or C++20 features, and tests written with Catch2 or GoogleTest.

  • Coding test level

    Use the senior level for most game and desktop roles and the expert level for trading and engine work.

  • Live interview

    Ask a senior question from CoderPad's C++ interview questions, such as when a move constructor runs.

How should you screen C++ candidates?

  • For game studio roles, send the C++ test right after the resume screen. For senior engine and trading roles, send it after a first call.
  • Use fewer questions for junior game roles and more for senior engine and trading roles.
  • Mention the C++ test in the job ad and say it mixes multiple-choice questions with coding tasks.

We had no unified approach or tool to assess technical ability. Today, CoderPad Screen enables us to test against a wide selection of languages and is continually updated.

CoderPad code interview all

Trusted by 4,000+ customers worldwide

Security and compliance

  • SSO / SAML

    Okta, Azure AD, Google and other SAML 2.0 providers, on the Enterprise plan.

  • SOC 2 Type 2

    SOC 2 Type 2 report available.

  • GDPR compliant

    GDPR and CCPA compliant.

Read about CoderPad security

Hire C++ developers with CoderPad

Request a demo