Related Questions
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
A function that is called automatically when an object is destroyed is known as
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
When a language has the capacity to produce new data type, it is said to be
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
In C++, the stream base class is
What is the correct answer?
4
_______ argument(s) are passed in case of unary overloaded operators.
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
The scope resolution operator is -
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
A member function can always access the data
A. In the object of which it is a member
B. In the class of which it is a member
C. In the object of the class of which it is a member
D. In the public part of its class
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
The template function declaration specifies
What is the correct answer?
4
Scope resolution operator has the highest precedence.
What is the correct answer?
4
When one object initializes another object the following function is invoked
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 is not a component of file system
B. Auxiliary storage management
C. Free integrity mechanism
What is the correct answer?
4
this' is an implicit pointer.
What is the correct answer?
4
When accessing a structure member, the identifier to the left of the dot operator is the name of
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
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 members of a class by default are private.
What is the correct answer?
4
By default, members cannot be inherited.
What is the correct answer?
4
Static data member occurs in only class scope.
What is the correct answer?
4
Static data member can be declared as const too.
What is the correct answer?
4
Constructor returns void type value.
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
By default, C++ uses the following method of passing arguments
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.