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 34

Which header file is we were used in File handling

iostream

fstream

ofstream

ifstream
SHOW ANSWER

Which of the following is CPP style type-casting?

per = total/(float)m
 per = total/float(m)
per = (float)total/m
None of these
SHOW ANSWER

 ……………… must be either non-static member function or friend functions.

member functions
Operator functions
 non-static functions
 friend functions
SHOW ANSWER

The compiler does not support automatic type conversions for the ………….. data type. 

basic
 user defined
class
 automatic
SHOW ANSWER

The conversion from a class to any other type or any other class should make use of a ………….. in the source class. 

casting operator
 constructor
not applicable
operator function
SHOW ANSWER

To perform the conversion from any other data type or class to a class type, a ………….. should be used in the destination class.

casting operator
constructor
not applicable
operator function
SHOW ANSWER

The general form of an overloaded casting operator function usually referred to as a …………….. 

casting function
operator function
conversion function
overloaded function
SHOW ANSWER

In the case of …………….. function, arguments may be passed either by value or by reference. 

private
friend 
member
public
SHOW ANSWER

What is the return type of the conversion operator?

void
int
float
no return type
SHOW ANSWER

Why we use the “dynamic_cast” type conversion?

result of the type conversion is a valid
to be used in low memory
result of the type conversion is an invalid
none of the mentioned
SHOW ANSWER

How are types therein user-defined conversion?

 1
2
3
4
SHOW ANSWER

Pick out the correct syntax of operator conversion.

operator float()const
operator float()
operator const
none of the mentioned
SHOW ANSWER

What is size of int datatype in cpp?

2 Bytes
4 Bytes
1 Byte
Depends on Compiler
SHOW ANSWER

While overloading binary operators using member function, it requires ___ argument/s.

Zero
 One
 Two 
Three
SHOW ANSWER

In case of operator overloading, operator function must be ______ . 
1. Static member functions
2. Non- static member functions
3. Friend Functions

Only 2
Only 1, 3
Only 2 , 3
All 1 , 2, 3
SHOW ANSWER

When overloading unary operators using Friend function,it requires_____ argument/s.

Zero
 One 
Two 
None of these.
SHOW ANSWER

An operator function is created using _____________ keyword.

iterator 
allocator 
constructor
operator 
SHOW ANSWER

In case of binary operator overloading with member function, which of following statement should be taken into consideration?

Right hand operand must be object.
 Left hand operand must be object.
Both the operands must be objects.
All of these should be considered.
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