Related Questions
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
_____________ operator must have one class object
What is the correct answer?
4
One of the major disadvantage with late binding is
A. the source code should be made available at compile time
B. the program runs slower
C. dynamic variables can not be used in the program
D. static variables can not be used
What is the correct answer?
4
this' pointer has to be used while accessing data members in a member function.
What is the correct answer?
4
Class members are _______________ by default
D. None of the above are correct
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 constructor cannot be explicitly called.
What is the correct answer?
4
In C++, identifiers have to be declared at the beginning of the blocks.
What is the correct answer?
4
In C++, the stream base class is
What is the correct answer?
4
A base class is inherited by
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
main() returns a value of type
What is the correct answer?
4
By default, members cannot be inherited.
What is the correct answer?
4
A destructor can have a return type.
What is the correct answer?
4
"[]" Operator is a unary operator.
What is the correct answer?
4
An object is an allocated space in memory.
What is the correct answer?
4
The ?: can be used to replace
What is the correct answer?
4
The signature of a function is
B. The number and type of arguments
C. The class of a function
What is the correct answer?
4
Reference to an object behaves like a constant pointer.
What is the correct answer?
4
Which of the following can legitimately be passed to a function?
What is the correct answer?
4
Delete operator is used
C. To delete variable name
D. None of the above are correct
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
_______ argument(s) are passed in case of unary overloaded operators.
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
The template function declaration specifies
What is the correct answer?
4
Classes are useful because they
A. Are removed from memory when not in use
B. Permit data to be hidden from other classes
C. Bring together all aspects of an entity in one place
D. Can closely model objects in the real world
What is the correct answer?
4
Constructor returns void type value.
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
We cannot have the address of a constructor.
What is the correct answer?
4
Static data member can be declared as const too.