Related Questions
What is the correct answer?
4
In C++, an identifier must be initialized using constant expression.
What is the correct answer?
4
"[]" Operator is a unary operator.
What is the correct answer?
4
In C++, the exception handler is invoked with a-
What is the correct answer?
4
this' is an implicit pointer.
What is the correct answer?
4
Static data member can be declared as const too.
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
We can make function inline by using the keyword 'inline'.
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
When one object initializes another object the following function is invoked
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
iostream is inheried from istream, ostream and ios class.
What is the correct answer?
4
Static data member occurs in only class scope.
What is the correct answer?
4
main() returns a value of type
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
A copy constructor is used to copy an object member wise to another object of the same class.
What is the correct answer?
4
The members of a class by default are private.
What is the correct answer?
4
By default, C++ uses the following method of passing arguments
What is the correct answer?
4
Organizing data with methods that operate on the data and creating a new data type is called encapsulation.
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
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
Data objects can be initialized when allocating memory using 'new'.
What is the correct answer?
4
Pick out the most appropriate statement
A. All variables must be declared before they are used
B. Variables in C++ need not be declared and the type can be assigned dynamically
C. Variables in C++ can be declared at the end of the program (before the main function terminates)
D. Variables can not be used explicitly in C++
What is the correct answer?
4
The binding that binds a function call at run time is called
What is the correct answer?
4
A normal C++ operator that acts in a special way on newly defined data types is said to be
What is the correct answer?
4
Inline function specifier reduces the overheads associated with a normal function call.
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
Which of the following can legitimately be passed to a function?
What is the correct answer?
4
The value of 'this' pointer can be changed.
What is the correct answer?
4
Reference to an object behaves like a constant pointer.
What is the correct answer?
4
Class members are _______________ by default
D. None of the above are correct