Call
whatsapp
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
9447387064 | 9847003556
0471-2335855 | 8089080088 | 0471-2334855
Cisco Training in Trivandrum, Trinity Technologies

No.1 Training Institute in Kerala

C++ - QUESTIONS : PART 6

Evaluate !(1 && !(0 || 1)).

True

 False

Unevaluatable
SHOW ANSWER

In CPP, cin and cout are the predefined stream __________ .

Operator 

 Functions 

 Objects 

 Data types
SHOW ANSWER

Object oriented programming employs_________ programming approach.

top-down 

top-down 

 bottom-up

 all of these.
SHOW ANSWER

Object based language differs from object oriented language as it does not support features _____ .

1. Encapsulation 
2. Inheritance 
3. Dynamic Binding 
4. Abstraction
5. Polymorphism

only 3 ,4 

 only 1,3,5

 2,4,5 

 Only 2,3 
SHOW ANSWER

In CPP, dynamic memory allocation is done using ______________ operator.

calloc() 

 malloc()

 allocate 

 New 
SHOW ANSWER

 Can we allocate memory for the objects dynamically in CPP?

Yes

No
SHOW ANSWER

Which of the following manipulator is used for the representing octal equivalent of a given decimal number?

oct 

 setbase(8) 

 tobase(8) 

 both a and b 

 all a, b, c
SHOW ANSWER

Which of the following is not a casting operator in CPP?

explicit_cast 

 static_cast 

dynamic_cast 

 reinterpret_cas
SHOW ANSWER

___________ header file is used for manipulators.

< iomanipulator.h> 

 < stdiomanip.h> 

 < stdmanip.h> 

< iomanip.h> 
SHOW ANSWER

____________ refers to the act of representing only essential features without including the background details.

Data Hiding

 Data Encapsulation 

Data Abstraction

 All of these
SHOW ANSWER

Runtime polymorphism is achieved only when a virtual function is accessed through a pointer to the base class.

True

 False
SHOW ANSWER

Assigning one or more function body to the same name is called ____________ .

Function Overriding 

 Function Overloading 

 Both a and b 

 None of the above
SHOW ANSWER

Function overloading can also be achieved if two or more functions differ only in their return types.

True

 False
SHOW ANSWER

__________________ is the OOP feature and mechanism that binds together code and the data it manipulates, and keep both safe from outside world.

Data Binding 

 Data Encapsulation 

 Data Storing 

 Data Abstraction
SHOW ANSWER

.Which of the followings is/are not keyword/s in CPP?
1. asm
2. boolean
3. mutable
4. export
5. constant_cast

Only 5 

 Only 1 and 4 

 Only 1,2 and 5 

 Only 2 and 5 
SHOW ANSWER

Which of the following are member dereferencing operators in CPP?
1. *
2. ::
3. ->* 
4. ::*
5. -> 

Only 1, 3, 4 

 Only 1 and 5 

 Only 3 and 4 

 Only 3,4,5
SHOW ANSWER

Only functions of the class can access the data of the class and they(functions) provides the interface between data, objects and the program. This kind isolation of the data from direct access by the program is called _______________ .

Data Abstraction 

 Data Hiding

 Data Binding 

 Data Encapsulation
SHOW ANSWER

Logical expressions produce ____________ type results.

explicit 

 garbage 

 bool 

static
SHOW ANSWER
BACK | NEXT
TRINITY SOFTWARE SOLUTIONS,IInd floor, Radheyam Towers, Gandhari Amman Kovil Road, Pulimood, Trivandrum - 1
0471-2334855 | 2335855 | 9447387064 | 9847003556 info@trinitytechnology.in