Futuresoft Previous Years Solved Sample Placement Papers
-
The conversion from basic data to class type can be done by .......
A: Writing constructor
B: Is not possible
C: overloaded casting operator
D: object of a class
Ans: A -
When a base class pointer points to derived class object?
A: It can access only base class members
B: It can access only derived class members
C: Both base class & derived class members
D: None
Ans: A -
What is meant by multiple inheritance?
A: Deriving a base class from derived class
B: Deriving a derived class from base class
C: Deriving a derived class from more than one base class
D: None of the mentioned
Ans: C -
The signature of a function is its ..... ?
A: Function code
B: Prototype
C: Call
D: Parameter list
Ans: B -
What is true about inline functions ?
A: It's a compulsion on the compiler to make function inline
B: It's a request to the compiler to make the function inline
C: It's the indication to the compiler that the function is recursive
D: It's the indication to the compiler that the function is member function
Ans: B -
Which member function of class cannot modify its objects attributes ?
A: friend functions
B: Private member functions
C: Constant member functions
D: Static member functions
Ans: C -
Which of the following parameter passing mechanism is/are supported by C++ but not in C?
A: Pass by value
B: Pass by reference
C: Pass by value result
D: All of the above
Ans: B -
Which of the following type of function is an ideal candidate for being declared inline ?
A: A function that is small and is not called frequently
B: A function that is small and is called frequently
C: A function that is not small and is not called frequently
D: A function that is not small and is called frequently
Ans: B -
One of the disadvantage of pass by reference is that the called function may inadvertently corrupt the called data. This is avoided by ?
A: passing pointers
B: declaring the formal parameters constant
C: declaring the actual parameters constant
D: all of above
Ans: B