(A) Constructor of enclosing class will be called first
(B) Constructor of inner object will be called first
(C) Constructor and Destructor will be called simultaneously
(D) None of the given options
Tag: Intro to Programming
The return type of the operator function for >> operator is __.
(A) class for which we overload this operator
(B) reference of ostream class (ostream&)
(C) reference of istream class (istream&)
(D) void
With user-defined data type variables (Objects), self assignment can produce __.
(A) Syntax error
(B) Logical error
(C) Link error
(D) Non of the given options
We can also do conditional compilation with preprocessor directives?
(A) True
(B) False
(C) Both
(D) None
The first parameter of overloaded stream insertion operator is __ where second parameter is __.
(A) input stream, object of class
(B) object of class, output stream
(C) output stream, object of class
(D) object of class, input stream
What will be the output of the following statement? cout << setbase(16) << 52 ;?
(A) 52
(B) 34
(C) 61
(D) 74
dec, hex, oct are all __.
(A) Member functions
(B) Objects of input/output streams
(C) Parameterized manipulators
(D) Non-parameterized manipulators
The input/output streams; cin and cout are __.
(A) Operators
(B) Functions
(C) Objects
(D) Structures