Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

When all of the operations in a function contribute to the performance of only one task, a function has
A:
singular cohesion
B:
tight cohesion
C:
functional cohesion
D:
sequential cohesion
Answer: C
No answer description is available. Let's discuss.
Hiding individual components of an entry is _____
A:
polymorphism
B:
encapsulation
C:
scaling
D:
not recommended in C++
Answer: B
No answer description is available. Let's discuss.
Which of the following are void functions?
A:
main
B:
pow
C:
sqrt
D:
All of the above
Answer: A
No answer description is available. Let's discuss.
You can code a default exception handler by creating a catch block
A:
with no arguments
B:
with a void argument
C:
with an ellipsis as its argument
D:
with an argument identical to that thrown
Answer: C
No answer description is available. Let's discuss.
Reference variables and const class members _____
A:
must be assigned values in any derived class
B:
must never be initialized in a base class
C:
must be initialized, rather than assigned values
D:
must not exist if a class is to be a base class
Answer: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz