Related Questions
What is the correct answer?
4
Which of the following can legitimately be passed to a function?
What is the correct answer?
4
The template function declaration specifies
What is the correct answer?
4
new operator is used
A. To dynamically allocate storage
B. To statically allocate storage
C. To allocate storage for a new variable
D. None of the above are correct
What is the correct answer?
4
The library function exit() causes an exit from
A. The loop in which it occurs
B. The block in which it occurs
C. The function in which it occurs
D. The program in which it occurs
What is the correct answer?
4
The new operator always returns a void pointer.
What is the correct answer?
4
iostream is inheried from istream, ostream and ios class.
What is the correct answer?
4
An object is an allocated space in memory.
What is the correct answer?
4
If class A is friend of class B and if class B is friend of class C, which of the following is true?
A. Class C is friend of class A
B. Class A is friend of class C
C. Class A and Class C do not have any friend relationship
What is the correct answer?
4
In C++, the stream base class is
What is the correct answer?
4
Inline function specifier reduces the overheads associated with a normal function call.
What is the correct answer?
4
Friend function have access to the
A. private and protected members
D. None of the above are correct
What is the correct answer?
4
Operator overloading is
A. Making C++ operators work with objects
B. Making C++ operators more then they can handle
C. Giving new meaning to existing c++ operators
D. Making new C++ operators
What is the correct answer?
4
Protected members cannot be inherited.
What is the correct answer?
4
this' is an implicit pointer.
What is the correct answer?
4
When one object initializes another object the following function is invoked
What is the correct answer?
4
By default, members cannot be inherited.
What is the correct answer?
4
The && and || operators
A. Compare two numeric values
B. Combine two numeric values
C. Compare two Boolean values
D. Combine two Boolean values
What is the correct answer?
4
ios containes a pointer to streambuf.
What is the correct answer?
4
Constructor returns void type value.
What is the correct answer?
4
What is the output of the following program segment - for(i = 1, j = 0; i < 10; i++) j += i; cout <<i<<"
";
D. there is an error in the program
What is the correct answer?
4
Member function cannot be called from within a constructor.
What is the correct answer?
4
The string table in C++ holds the
A. string constants in your program
B. program statements in string form
C. variables whose type is of string
What is the correct answer?
4
The break statement causes an exit
A. Only from the innermost loop
B. Only from the innermost switch
C. From all loops and switch
D. Only from the innermost loops or switch
What is the correct answer?
4
Class is similar to a variable.
What is the correct answer?
4
A class that contains at least one pure virtual function is called as
What is the correct answer?
4
Protected data members can be accessed
A. Only from the base class itself
B. Both form the base class and from its derived classes
C. From the class which is friend of the base class
D. None of the above are correct
What is the correct answer?
4
Which of the following relationship is known as inheritancerelationship?
C. association relationship
What is the correct answer?
4
In a for loop with a multi-statement loop body, semicolons should appear following
A. The for statement itself
B. The closing brace in a multi-statement loop body
C. Each statement within the loop body.
What is the correct answer?
4
A function that is called automatically when an object is destroyed is known as
What is the correct answer?
4
A destructor can have arguments like constructor.