Related Questions
What is the correct answer?
4
A pure virtual function is a virtual function that has
A. no definition in its base class
B. a definition in its base class
C. a definition in at least one derived class
D. definition in base class and at least one derived class
What is the correct answer?
4
When you overload an arithmetic assignment operator, the result
A. Goes in the object to the right of the operator
B. Goes in the object to the left of the operator
C. Goes in the object of which the operator is a member
What is the correct answer?
4
Element double Array[7] is which element of the array?
What is the correct answer?
4
The characteristic that data can be manipulated only through member functions that are part of the class is called
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
When one object initializes another object the following function is invoked
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
A function that is called automatically when an object is created is known as
What is the correct answer?
4
Inline functions_____________ call overload.
C. None of the above are correct
What is the correct answer?
4
Reference to an object behaves like a constant pointer.
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
_______ argument(s) are passed in case of binary overloaded operators.
What is the correct answer?
4
An object is an allocated space in memory.
What is the correct answer?
4
Overloaded functions
A. Are a group of functions with the same name
B. All have the same number and types of arguments
C. Make life simpler for programmer
D. May fail unexpectedly due to stress
What is the correct answer?
4
The following syntax is valid. void inline gram_ panchayat :: show_gram_ panchayat_info().
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
By using protected, one can create class members that are private to their class but
A. that can not be inherited and accessed by a derived class
B. that can still be inherited and accessed by a derived class
What is the correct answer?
4
Protected members cannot be inherited.
What is the correct answer?
4
We cannot have the address of a constructor.
What is the correct answer?
4
In C++, the stream base class is
What is the correct answer?
4
In case of nested class, enclosing class can directly access the private data member of nested class.
What is the correct answer?
4
The members of a class by default are private.
What is the correct answer?
4
ios containes a pointer to streambuf.
What is the correct answer?
4
You can read input that consists of multiple lines of text using
A. The normal cout<< combination
B. The cin.get() function with one argument
C. The cin.get() function with two argument
D. The cin.get() function with three argument
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
When a language has the capacity to produce new data type, it is said to be
What is the correct answer?
4
A destructor can have a return type.
What is the correct answer?
4
A base class is inherited by
What is the correct answer?
4
A destructor can have arguments like constructor.
What is the correct answer?
4
Which of the following is not a component of file system
B. Auxiliary storage management
C. Free integrity mechanism