Related Questions
What is the correct answer?
4
Dynamic memory can be allocated by the following declaration
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
What is the output of the following program segment - for(i = 1, j = 0; i < 10; i++) j += i; cout <<i<<"
";
D. there is an error in the program
What is the correct answer?
4
A variable defined within a block is visible
A. From the point of definition onwards in the program
B. From the point of definition onwards in the function
C. From the point of definition onwards in the block
D. Throughout the function
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
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
Pick out the most appropriate statement from the following
A. references are pointers
B. array of references can be created
C. you can not reference a reference variable
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
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
Inline functions_____________ call overload.
C. None of the above are correct
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
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
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
Element double Array[7] is which element of the array?
What is the correct answer?
4
"[]" Operator is a unary operator.
What is the correct answer?
4
iostream is inheried from istream, ostream and ios class.
What is the correct answer?
4
Public 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
this' pointer has to be used while accessing data members in a member function.
What is the correct answer?
4
_____________ operator must have one class object
What is the correct answer?
4
Static member functions have file scope.
What is the correct answer?
4
this' is an implicit pointer.
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
When accessing a structure member, the identifier to the left of the dot operator is the name of
What is the correct answer?
4
Protected members cannot be inherited.
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
A destructor can have arguments like constructor.
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
The value of 'this' pointer can be changed.
What is the correct answer?
4
_______ argument(s) are passed in case of unary overloaded operators.
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