47 Answers to Review Questions. “Digital Media Primer” Yue-Ling Wong
Chapter 14
When applicable, please select all correct answers.
1. In the analogy of building a house, ______ is like a blueprint and ______ is like the actual house built
from the blueprint.
2. ______ is an instance of ______.
A. class; an object
B. An object; a class
3. In OOP, what are the two aspects you use to describe an object? (Select two)
A. Class
B. Instance
C. Properties
D. Behaviors
4. In OOP, the properties of an objects are defined as ______.
A. classes
5. In OOP, the behaviors of an object are defined as ______.
A. classes
B. instances
C. object literals
D. constructor functions
E. methods
F. variables
6. Fill in the blanks with the following terms: constructor functions, object literals, prototypes, variables,
methods
JavaScript does not have classes. However, you can use something called ______ and ______ to
implement the class concept. This chapter introduces ______ only.
7. What is the general syntax to invoke a method on an object?
A. ClassName.method()