Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Practice Tech Mahindra Essay Topics

SAP Labs Placement Questions & Answers :: SAP Labs

1.83K

Tot. Mock Test: 2


Total Qs: 27+

NA
SHSTTON
19
Solv. Corr.
28
Solv. In. Corr.
47
Attempted
0 M:0 S
Avg. Time

1 / 27

Choose the correct option.

Inheritance is the principle that


Aclasses with the same name must be derived from one another

Bknowledge of a genral category can be applied to more specific objects

CC++ functions may be used only if they have logical predecessors

Done function name may invoke different methods

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: SAP Labs

NA
SHSTTON
37
Solv. Corr.
11
Solv. In. Corr.
48
Attempted
0 M:0 S
Avg. Time

2 / 27

Choose the correct option.

What is the syntax of inheritance of class?


Aclass name

Bclass name : access specifer

Cclass name : access specifer class name

DNone of these

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: SAP Labs

NA
SHSTTON
14
Solv. Corr.
32
Solv. In. Corr.
46
Attempted
0 M:0 S
Avg. Time

3 / 27

Choose the correct option.

What is meant by containership?


Aclass contains objects of other class types as its members

Bclass contains objects of other class types as its objects

Cboth a & b

DNone of these

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: SAP Labs

NA
SHSTTON
10
Solv. Corr.
31
Solv. In. Corr.
41
Attempted
0 M:0 S
Avg. Time

4 / 27

Choose the correct option.

class derived: public base1, public base2 { } is an example of


APolymorphic inheritance

BMultilevel inheritance

CHierarchical inheritance

DMultiple inheritance

Answer: Option B

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: SAP Labs

NA
SHSTTON
10
Solv. Corr.
33
Solv. In. Corr.
43
Attempted
0 M:0 S
Avg. Time

5 / 27

Choose the correct option.

What is the difference between public and private inheritance?


AUnder public inheritance, public and protected members of the base class have their same status in the derived class

BUnder private inheritance, public and protected members of the base class all become private members of the derived class.

CBoth A & B

DNone of these

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: Wipro SAP Labs

NA
SHSTTON
32
Solv. Corr.
20
Solv. In. Corr.
52
Attempted
0 M:0 S
Avg. Time

6 / 27

Choose the correct option.

Syntax for Pure Virtual Function is ______________ .


Avirtual void show()==0

Bvoid virtual show()==0

Cvirtual void show()=0

Dvoid virtual show()=0

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: SAP Labs

NA
SHSTTON
30
Solv. Corr.
12
Solv. In. Corr.
42
Attempted
0 M:0 S
Avg. Time

7 / 27

Choose the correct option.

A virtual function that has no definition within the base class is called____________.


APure virtual function

BPure static function

CPure Const function

DFriend function

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: SAP Labs

NA
SHSTTON
19
Solv. Corr.
13
Solv. In. Corr.
32
Attempted
0 M:0 S
Avg. Time

8 / 27

Choose the correct option.

Which is called on allocating the memory for array of objects?


Adestructor

Bconstructor

Cmethod

DNone of the mentioned

Answer: Option B

Explanation:

When you allocate memory for an array of objects, the default constructor must be called to construct each object. If no default constructor exists, you are stuck needing a list of pointers to objects.

Submit Your Solution

Tags: SAP Labs

NA
SHSTTON
14
Solv. Corr.
16
Solv. In. Corr.
30
Attempted
0 M:0 S
Avg. Time

9 / 27

Choose the correct option.

Can a class have virtual destructor?


AYes

BNo

Answer: Option A

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: SAP Labs

NA
SHSTTON
8
Solv. Corr.
22
Solv. In. Corr.
30
Attempted
0 M:0 S
Avg. Time

10 / 27

Choose the correct option.

If the copy constructor receives its arguments by value, the copy constructor would


Acall one-argument constructor of the class

Bwork without any problem

Ccall itself recursively

Dcall zero-argument constructor

Answer: Option C

Explanation:

Here is no explanation for this answer

Submit Your Solution

Tags: SAP Labs


Here is the list of questions asked in SAP Labs model papers for freshers SAP Labs online test questions. Practice SAP Labs Written Test Papers with Solutions and take Q4Interview SAP Labs Online Test Questions to crack SAP Labs written round test. Overall the level of the SAP Labs Online Assessment Test is moderate. Only those candidates who clear the written exam will qualify for the next round, so practic all the questions here and take all the free tests before going for final selection process of SAP Labs