Related Questions
What is the correct answer?
4
The members of a class by default are private.
What is the correct answer?
4
_____________ operator must have one class object
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
Class is similar to a variable.
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
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
In case of nested class, enclosing class can directly access the private data member of nested class.
What is the correct answer?
4
A base class is inherited by
What is the correct answer?
4
In C++, the stream base class is
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
main() returns a value of type
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
Member function cannot be called from within a constructor.
What is the correct answer?
4
Scope resolution operator has the highest precedence.
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
Constructor returns void type value.
What is the correct answer?
4
The member of a structure can be accessed through a pointer by
What is the correct answer?
4
In C++, an identifier must be initialized using constant expression.
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
The binding that binds a function call at run time is called
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 member of a structure can be directly accessed by
What is the correct answer?
4
A destructor can have a return type.
What is the correct answer?
4
The declaration int **var1; shows that
A. var1 can not be accessed
B. var1 is a pointer to a pointer of type int
C. var1 is a protected data type of integer
D. this type declaration shows an error
What is the correct answer?
4
this' is an implicit pointer.
What is the correct answer?
4
The new operator always returns a void pointer.
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
Element double Array[7] is which element of the array?
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
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