98-361

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?

  1. Encapsulation
  2. Data modeling
  3. Inheritance
  4. Data hiding

Question 7

Which term is used to describe a class that inherits functionality from an existing class?

  1. Base class
  2. Inherited class
  3. Derived class
  4. 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?

  1. polymorphism
  2. encapsulation
  3. superclassing
  4. 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?

  1. Null
  2. 0
  3. 3
  4. 7

Question 10

You need to allow a consumer of a class to modify a private data member. What should you do?

  1. Assign a value directly to the data member.
  2. Provide a private function that assigns a value to the data member.
  3. Provide a public function that assigns a value to the data member.
  4. Create global variables in the class.