Test C++ - Fundamentals

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

My Results

Test details

Beginner
August 2024
10 minutes
4/5(10)

This test tackles a large part of the C++ programmation. It has been thought for juniors developers, but it still can be used for confirmed developers too, in order to brush up on it. Most of the questions are asked through examples. The themes you may find are the following :

  • How to display and get values;
  • Control structures;
  • Functions;
  • Array, Vector and String;
  • Pointers and memory leaks.
    You may find also themes of Object-Oriented Programing in C++, such as :
  • Declarations (classes, attributes, methods);
  • Constructors and destructors;
  • Operators overloading;
  • Inheritance;
  • Polymorphism.
This test consists of 20 questions randomly selected from a database of 41 questions in C++.Discover all our interview questions and answers here
1.
developer avatar
Astrid Beyer
2777 points
2.
developer avatar
perso
2590 points
3.
developer avatar
To
2561 points
4.
developer avatar
frederic
2544 points
5.
developer avatar
Arnaud
2527 points

Test author : Samuel Bacon

My name is Samuel Bacon, and I am studying in my final year at the Grenoble INP Ensimag engineering school. I specialize in mathematical modeling, image and simulation. As such, I regularly use programming languages such as C/C++, python or java. I have already had the opportunity for all these languages to accomplish different projects which helped me in writing these tests. The design of these MCQs allowed me to synthesize and consolidate my mastery of OOP and C++. During this last year of study I also chose a biomedical option to address themes in this sector that I appreciate.
You can find out more about my background on my LinkedIn page.

Contributors3
developer avatar
developer avatar
developer avatar

Sample question

Which statement(s) is (are) true ?

class A {
protected:
    int x;
public:
    A(int x) : x(x) {}
};

class B : public A {
private:
    int y;
public:
    B(int x, int y) : x(x), y(y) {}
};
See 41 test questions.Participate in test improvement

Developers ratings

developer avatar
Enzo
09/10/2024
questions piège, trop peu de temps pour réfléchir
developer avatar
Emile Elric
27/07/2024
developer avatar
Jean-Dominique Orvoen
11/05/2024
très bon test pour se préparer
developer avatar
Fafun
28/02/2024
Bon test avec des niveaux de difficultés variés
developer avatar
Sid Ali ZITOUNI TERKI
26/01/2024