Used for hiring

C++ Developers
Software Developers

Skills required

Core C++ skills

Sound knowledge of object-oriented programming (OOP)

Good understanding of data structures and algorithm

C++ Developer Assessment

A C++ developer has to work on both mobile and desktop applications and should also be capable of handling algorithmic complexities. In addition, a C++ developer needs to optimize the codeblocks regularly so that they are compatible on a platform.

You can check the skills listed below in a candidate while you hire for a C++ developer

  • Proficiency in C++ 
  • Experience with algorithms and data structures
  • Sound knowledge of  data encapsulation and OOP concepts
  • Good understanding of TCP/IP protocols

How this test helps with hiring C++ candidates

Steps to assess C++ Developers
Create a test
Create a test
Add questions to assess C++ skills
Add questions to assess C++ skills
Send invites to candidates
Send invites to candidates
Evaluate the report
Evaluate the report
Assess C++ developers for free   
Common types of assessments used by our top customers

1 Programming question on algorithms

10 MCQs
on basic programming skills

10 MCQs
on C++

1 programming question on data structures

Sample questions

The following C++ code throws an error when executed. What is the cause of this error:

class TestHack
{
public:
int *ptr;
TestHack(int i)
{
ptr = new int(i);
}

~TestHack()
{
delete ptr;
}
void Result()
{
cout << “The value is ” << *ptr;
}
};

void Hack(TestHack x)
{
cout << “Say i am in Hack ” << endl;
}

int main()
{
TestHack t1 = 10;
Hack(t1);
t1.Result();
}

  • Memory leak
  • Dangling pointers Correct Answer
  • Incorrect declarations
  • None of these

What is the output of the following C++ code:

#include<iostream>
using namespace std;

class Test1{
int i;
static int j;
};

int Test1::j;

int main(){
cout << sizeof(Test1) << endl;
return 0;
}

  • 8
  • 4Correct Answer
  • 16
  • 32

What is the output of the following C++ code:

#include<iostream>
using namespace std;

class A{
public:
A(){
cout << “1”;
}
virtual ~A(){
cout << “2”;
}
};

class B:public A{
public:
B(){
cout << “3”;
}
~B(){
cout << “4”;
}
};

int main(){
A* obj;
obj = new B;
delete obj;
obj = new A;
delete obj;
return 0;
}

  • 13212
  • 134212Correct Answer
  • 31412
  • 132412

Want us to help you create a C++ Developer Assessment?

Top customers using HackerEarth to hire developers

Barclays Logo
General Electrics Logo
Government of Canada Logo
Nokia Logo
Northern Trust Logo
Thoughtworks Logo
UBS Logo
Walmart Logo