98-361 practice questions, page 2 of 7, with answer review and explanations.
Question 6
A class named Manager is derived from a parent class named Employee. The Manager class includes characteristics that are unique to managers. Which term is used to describe this object-oriented concept?
Encapsulation
Data modeling
Inheritance
Data hiding
Question 7
Which term is used to describe a class that inherits functionality from an existing class?
Base class
Inherited class
Derived class
Superclass
Question 8
Two classes named Circle and Square inherit from the Shape class. Circle and Square both inherit Area from the Shape class, but each computes Area differently. Which term is used to describe this object-oriented concept?
polymorphism
encapsulation
superclassing
overloading
Question 9
You create an object of type ANumber. The class is defined as follows. What is the value of _number after the code is executed?
Null
0
3
7
Question 10
You need to allow a consumer of a class to modify a private data member. What should you do?
Assign a value directly to the data member.
Provide a private function that assigns a value to the data member.
Provide a public function that assigns a value to the data member.