Related Questions
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
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
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
The library function exit() causes an exit from
A. The loop in which it occurs
B. The block in which it occurs
C. The function in which it occurs
D. The program in which it occurs
What is the correct answer?
4
The members of a class can be made private by
A. declaring them private
B. by default they are private
C. by declaring them in the beginning of the program immediately after main()
D. they are always public
What is the correct answer?
4
A destructor can have arguments like constructor.
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
A function that is called automatically when an object is destroyed is known as
What is the correct answer?
4
Reference to an object behaves like a constant pointer.
What is the correct answer?
4
Static data member can be declared as const too.
What is the correct answer?
4
The following syntax is valid. void inline gram_ panchayat :: show_gram_ panchayat_info().
What is the correct answer?
4
this' is an implicit pointer.
What is the correct answer?
4
Dynamic memory can be allocated by the following declaration
What is the correct answer?
4
Element double Array[7] is which element of the array?
What is the correct answer?
4
A base class is inherited by
What is the correct answer?
4
main() returns a value of type
What is the correct answer?
4
The new operator always returns a void pointer.
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
In C++, the stream base class is
What is the correct answer?
4
Class is similar to a variable.
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
A function that is called automatically when an object is created is known as
What is the correct answer?
4
By default, members cannot be inherited.
What is the correct answer?
4
When you overload an arithmetic assignment operator, the result
A. Goes in the object to the right of the operator
B. Goes in the object to the left of the operator
C. Goes in the object of which the operator is a member
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
An object is an allocated space in memory.
What is the correct answer?
4
You can read input that consists of multiple lines of text using
A. The normal cout<< combination
B. The cin.get() function with one argument
C. The cin.get() function with two argument
D. The cin.get() function with three argument
What is the correct answer?
4
We can make function inline by using the keyword 'inline'.
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