(A) any where
(B) in start
(C) at the end
(D) none of the given options.
Category: Introduction to Programming Mcqs
Introduction to Programming Mcqs for Screening tests, Interviews, Viva and Other competitive exams. Programming Mcqs section will help users to prepare mcqs of programming languages for various exams. Aspirants of Lecturer Computer Science, SST Computer Science, Subject Specialist Computer Science, Data Entry operator, Computer Programmer, Computer Operator, Software engineer and all other Competitive Exams can prepare their computer programming portion from here.
When an object of a class is defined inside an other class then,?
(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
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