Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Online C++ Programming Test- Medium Level

Useful for hiring

  • Junior Level C++ Programmer
  • Senior Level C++ Programmer
  • C++ Software Developer

Start hiring job-fit candidates using this assessment


"Our recruitment team loves Interview Mocha especially for their skill assessments, simulators, and friendly support. Since using Interview Mocha, we interview only relevant candidates, and this has reduced our time to hire. Recruitment is no longer an hassle for us."

Christoph, e-Zest GmbH

You need to scan input two numbers X and Y from the keyboard and print the Count of total palindrome numbers Z between X and (including X and Y).

Example of Palindrome Number
Palindromes: 5, 121, 11, 11411 
Not Palindromes: 122, 10

Input Foramt

Input X number
Input Y number

Output Format

Print Z

Sample Input

10   --  value of X
13   --  value of Y

Sample Output

1   --  value of Z


Test details:

C++ assessment test enables employers and recruiters to identify & hire C++ programmer by evaluating working skills and job readiness. For this reason, the emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

Questions : 2

Duration : 60 minutes

  • C++ Coding : The test contains 2 medium level coding questions to check the programming skills of a candidate.

Test description:

C++ Programming Test helps Hiring Managers & Recruiters to gauge the C++ Programming skills of C++ Programmer. This C++ Programming Test is designed to assess C++ programming skills of a candidate. The best way to evaluate a programmer for a job is to give him a coding test. The candidate has to write a code which uses the concepts of Basic C++ and Error handling to solve the real world problems. If a programmer also writes comments for his code then he is considered a good programmer. This C++ interview test is designed and developed to assess the programming skills of C++ Programmer- As per Industry Standards.
Online C++ programming test contains topics on C++ coding language (medium). This Test for C++ is designed by our subject matter experts to gauge C++ programming knowledge of candidates to hire as C++ programmer. Using powerful reporting, you can have a detailed analysis of the test results to help you make a better hiring decision and predict the candidate’s performance.

This test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates