Related Questions
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
Private data members can be accessed
A. Only from the base class itself
B. Both from the base class and form its derived classes
C. From the class which is a friend of the base class
D. None of the above is correct
What is the correct answer?
4
The getch() library function
A. Returns a character when any key is pressed
B. Returns a character when ENTER is pressed
C. Display a character on the screen when a key is pressed
D. Does not display a character on the screen
What is the correct answer?
4
Class is similar to a variable.
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
A class that contains at least one pure virtual function is called as
What is the correct answer?
4
An object is an allocated space in memory.
What is the correct answer?
4
Which of the following relationship is known as inheritancerelationship?
C. association relationship
What is the correct answer?
4
Private members of a structure can be accessed directly from the outside of the structure.
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
What is the correct answer?
4
When one object initializes another object the following function is invoked
What is the correct answer?
4
What is the value of Friday in the following - enum days { Monday, Tuesday, Wednesday = -1, Thursday, Friday, Saturday = 6, Sunday}
What is the correct answer?
4
It is possible to allow non member function access to private members of a class by declaring it as
What is the correct answer?
4
The ?: can be used to replace
What is the correct answer?
4
By default, members cannot be inherited.
What is the correct answer?
4
The template function declaration specifies
What is the correct answer?
4
A destructor can have arguments like constructor.
What is the correct answer?
4
In C++, the stream base class is
What is the correct answer?
4
The member of a structure can be directly accessed by
What is the correct answer?
4
Which of the following are good reasons to use an object oriented language?
A. You can define your data types
B. Program statements are simpler than in procedural languages.
C. An OO program can be taught to correct its own errors.
D. It's easier to conceptualize an OO program.
What is the correct answer?
4
In C++, the keyword auto can be used for
A. Automatic assignment of data to object during instantiation
B. Automatic call of a function
C. To declare a local variable
D. It is not a keyword in C++
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
A base class is inherited by
What is the correct answer?
4
Data objects can be initialized when allocating memory using 'new'.
What is the correct answer?
4
If a friend function is declared inside a class it can access all data members of the class.
What is the correct answer?
4
Reference to an object behaves like a constant pointer.
What is the correct answer?
4
Objects get destroyed in the reverse order as they are created.
What is the correct answer?
4
One of the important features of an abstract class is
A. it need not have any object
B. it should be used only as a derived class
C. it need not have any members
What is the correct answer?
4
In C++, the exception handler is invoked with a-
What is the correct answer?
4
The new operator always returns a void pointer.