Test C++

Test C++ with answers to assess your knowledge and prepare for job interviews. Assess your technical level in 20 minutes.

Validate and promote your skills
Private results unless you share them
Compare your results to the developers average

Test details

Intermediate
September 2025
37 minutes
4.3/5(16)

The C ++ MCQ will allow you to test your general knowledge, from beginner to more advanced level!
Specifically, it highlights your level of proficiency in the following areas: coding concepts, such as command line arguments, pointers, and memory management. So we will see:

  • Pointers (char pointers, pointer arithmetic)
  • Memory allocations / deallocation
  • Classes - constructors, object creation, deletion, initialization list
  • Concepts OOPs - Inheritance / Polymorphism
This test consists of 20 questions randomly selected from a database of 36 questions in C++.Discover all our interview questions and answers here
⚠️ Ranking results of all timemay not be relevant because the test has not been taken enough times yet.

Test author : Abha Agrawa

I have been programming in C ++ for 9 years now. I mobilize my expertise in the creation of software solutions for the financial industry. Working with WeLoveDevs on this questionnaire was an exciting opportunity mixing IT development and recruiting experience simultaneously!

Contributors8
developer avatar
developer avatar
developer avatar
developer avatar
developer avatar
developer avatar
developer avatar
developer avatar
Participate in test improvement

Sample question

Consider a class MyType which defines a public function isType() as:

       	int isType (MyType& obj)
       	{
     	          	return (&obj == this) ? 1 : 0;
       	}

What is the output of the following? Object ‘obj’ of MyType is allocated statically and a pointer variable ‘objptr’ of type MyType is declared.

        	objptr = &obj;
 
        	if ( objptr->isType(obj) )
	                	std::cout << "&obj and invoking object match!!!" << std::endl;
        	else
	                	std::cout << "&obj and invoking object do not match!!!" << std::endl;
See 36 test questions.

Developers ratings

developer avatar
Luc
25/09/2025
Trop de questions de C avec des exemples de code que l'on ne veut pas voir dans du code C++ moderne et maintenable.
developer avatar
15/09/2025
developer avatar
Toufik
08/09/2025
developer avatar
10/07/2025
developer avatar
12/06/2025