General Questions (Set - 2)

Question 1 :

Which of the following is correct about class and structure?


A). class can have member functions while structure cannot.
B). class data members are public by default while that of structure are private.
C). Pointer to structure or classes cannot be declared.
D). class data members are private by default while that of structure are public by default.
Answer : Option D

Question 2 :

Which of the following concepts means wrapping up of data and functions together?


A). Abstraction
B). Encapsulation
C). Inheritance
D). Polymorphism
Answer : Option B

Question 3 :

Which of the following concepts means waiting until runtime to determine which function to call?


A). Data hiding
B). Dynamic casting
C). Dynamic binding
D). Dynamic loading
Answer : Option C

Question 4 :

How "Late binding" is implemented in C++?


A). Using C++ tables
B). Using Virtual tables
C). Using Indexed virtual tables
D). Using polymorphic tables
Answer : Option B

Question 5 :

Which of the following operator is overloaded for object cout?


A). >>
B). <<
C). +
D). =
Answer : Option B