Exercise: Oops Concepts

Questions for: Oops Concepts

Which of the following approach is adapted by C++?
A:
Top-down
B:
Bottom-up
C:
Right-left
D:
Left-right
Answer: B
No answer description is available. Let's discuss.
Which of the following correctly describes overloading of functions?
A:
Virtual polymorphism
B:
Transient polymorphism
C:
Ad-hoc polymorphism
D:
Pseudo polymorphism
Answer: C
No answer description is available. Let's discuss.
Which of the following concepts means adding new components to a program as it runs?
A:
Data hiding
B:
Dynamic typing
C:
Dynamic binding
D:
Dynamic loading
Answer: D
No answer description is available. Let's discuss.
Which of the following is an abstract data type?
A:
int
B:
double
C:
string
D:
Class
Answer: D
No answer description is available. Let's discuss.
How many types of polymorphisms are supported by C++?
A:
1
B:
2
C:
3
D:
4
Answer: B
The two main types of polymorphism are run-time (implemented as inheritance and virtual functions), and compile-time (implemented as templates).
Ad Slot (Above Pagination)
Quiz