(A) only class
(B) only objects
(C) both class and objects
(D) none of given options
Tag: Introduction to Programming
If we want to use stream insertion and extraction operators with __ then we have to overload these operators.
(A) int, float, double
(B) objects of class
(C) int, float, object
(D) int, char, float
The endl and flush are __.
(A) Functions
(B) Operators
(C) Manipulators
(D) Objects
To perform manipulation with input/output, we have to include __ header file.
(A) iostream.h
(B) stdlib.h
(C) iomanip.h
(D) fstream.h
Like member functions, __ can also access the private data members of a class.
(A) Non-member functions
(B) Friend functions
(C) Any function outside class
(D) None of the given options
The prototype of friend functions must be written __ the class and its definition must be written __.
(A) inside, inside the class
(B) inside, outside the class
(C) outside, inside the class
(D) outside, outside the class
Which of the following is the correct C++ syntax to allocate space dynamically for an array of 10 int?
(A) new int(10)
(B) new int[10]
(C) int new(10)
(D) int new[10]
Loader loads the executable code from hard disk to main memory?
(A) True
(B) False
(C) Both
(D) None