(A) File, native data type
(B) Disk, user-define type
(C) Keyboard, variable
(D) File, user-define type
Tag: Introduction to Programming
If overloaded plus operator is implemented as non-member function then which of the following statement will be true for the statement given below? obj3 = obj1 + obj2 ;?
(A) obj2 will be passed as an argument to + operator whereas obj2 will drive the + operator
(B) obj1 will drive the + operator whereas obj2 will be passed as an argument to + operator
(C) Both objects (obj1, obj2) will be passed as arguments to the + operator
(D) Any of the objects (obj1, obj2) can drive the + operator
Friend functions are __ of a class.
(A) Member functions
(B) Public member functions
(C) Private member functions
(D) Non-member functions
For which array, the size of the array should be one more than the number of elements in an array?
(A) int
(B) double
(C) float
(D) char
What does STL stand for?
(A) Source template library
(B) Standard template library
(C) Stream template library
(D) Standard temporary library
Default mechanism of function calling in case of array is __ and in case of variable is __.
(A) Call by value, call by reference
(B) Call by referene, call by reference
(C) Call by reference, call by value
(D) Call by value, call by value
Which of the following is correct way to initialize a variable x of int type with value 10?
(A) int x ; x = 10 ;
(B) int x = 10 ;
(C) int x, x = 10;
(D) x = 10 ;
The second parameter of operator functions for << and >> are objects of the class for which we are overloading these operators?
(A) True
(B) False
(C) Both
(D) None