CPP Online Assessment Test

Topics covered

Classes in C++, Types of Constructor, Types of Deconstructor,Types of Iterators and Objects, OOPs concept

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

CPP Online Test has been designed and developed to evaluate the CPP language skills of software engineer as per Industry Standards.
CPP Test helps Recruiters & Hiring Managers to assess the understanding of CPP language of a software engineer.

CPP is a middle-level language which runs on a variety of platforms such as Windows, Mac OS and various versions of UNIX. Software Programmer should have good hands on basic programming languages used in Information Technology. Every language used in IT has its own basic form of structure which Software Engineer should understand. 

CPP assessment test contains meaningful questions on:
 

  • Classes in C++ 

  • Types of Constructor

  • Types of Deconstructor

  • Types of Iterators and Objects 

  • OOPs concept
     

CPP Test is designed by our subject matter experts to gauge understanding about CPP language of candidates to hire as a software engineer. 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 pre-employment test is useful for hiring:
  • Entry Level Software Engineer
  • CPP Developer

Test details:

CPP Online Test enables employers and recruiters to identify & hire software engineer 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.

The test may contain MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, Whiteboard Questions, Audio / Video Questions, True or False.
 
Test Duration: 20 minutes

20 Application Questions

The CPP skills test contains a combination of application and theory questions that help you to evaluate the practical skills of candidates.

C++ Language Test

Question #1 of 3

The given code snippet compiles even when an integer is passed as an argument in func function, however, expected argument is of data type A. It's an example of conversion constructor, which makes code prone to error.

class A 
{
    public: 
          int i;
          A(int k) { i = k;}
          int getA() { return i;}        
};
void func(A a)
{
    int i = a.getA();
}
int main ()

    func(7); 
}

What keyword should be placed before the constructor to avoid the above error?

    • explicit

    • implicit

    • static

    • Both 1 & 3

    • Both 1 & 2

Question #2 of 3

Would the destructor be called in this code snippet? If yes, then due to which vector?

#include
#include
using namespace std;
 
class a
{
    public :
        ~a()
        {
            cout << "destroy";
        }
};
int main()
{
   vector *v1  = new vector;
   vector *v2  = new vector;
   return 0;
}

    • v1

    • v2

    • v1 and v2

    • no destructor call.

Question #3 of 3

Given below are few statements in the context of C++ program implementation:
1) In a class implementation, one should always overload new and delete operators.
2) One should always surround code which has a potential of throwing an exception with a try-catch block.
3) It is recommended to not modularize the program.

If b = number of statements indicating good practice and a = number of statements indicating bad practice, choose the correct relation between them.

    • b = 2a

    • a = b

    • a = 2b

    • a * 0 = b

SAMPLE REPORT
Candidate Name: David Messi Test Date: 28-May-2014
Test Name: C++ Language Test Test Start Time: 13.30

Score: 18 Out Of 20

Percentage: 90

Result: PASS

passing score image
SECTION PERFORMANCE
Section Name FAIL PASS
C++
Score: 18/20
STRENGTH AND WEAKNESS
Strength C++
Weakness -
* Note: If score <= 40 then its a Weakness. If score >= 80 then its a Strength.
ONLINE PROCTORING
0%
10 20 30 40 50 60 70 80 90 100%
Tolerable Limit Not acceptable
Window Violation: 0 | Time Violation: 0 secs
CANDIDATE DETAILS
Gender : Male Phone Number : +1-541-754-3010
Total Experience (Years) : 3 Total Experience (Months) : 5
Skill Set : C++ Current Employer : Interview Mocha
Current Job Title : Solution Architect Current Salary : 600.00
Expected Salary : 1000000.00 Current Location : Chicago

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.

SIGN UP FOR FREE

Schedule a Demo

How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • hexaware
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.

SIGN UP FOR FREE

Schedule a Demo