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
Add questions to assess C++ skills
Send invites to candidates
Evaluate the report
Common types of assessments used by our top customers
1 Programming question on algorithms
on basic programming skills
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