Unlock access to all the studying documents.
View Full Document
Indicate whether the statement is true or false.
1. When two or more methods have the same name but different parameter lists, the methods are referred to as overloaded
methods.
2. Polymorphism refers to the fact that you can create one class from another class.
3. An object’s behaviors fall into two categories: actions that the object is capable of performing and actions to which the
object can respond.
4. A class contains all of the attributes and behaviors of the object it instantiates.
5. Every object in an object-oriented program is created from a class.
6. A program does not have direct access to a private variable within a class.
7. You can define your own classes in C++ and then create instances (objects) from those classes.
8. A base class is created from a derived class.
9. Before an object has been instantiated in a program, the program can refer to a public member of the class.
10. Every object has attributes, which are the characteristics that describe an object.
Indicate the answer choice that best completes the statement or answers the question.
11. Which term is described as a class method whose instructions the computer automatically processes each time an
object is instantiated from the class?
12. Using OOP terminology, which is the proper verb used to describe how objects are created from a class?
13. What is used to specify the attributes and behaviors of an object?
14. When creating a new class that inherits the attributes and behaviors of the original class, what is the new class called?
15. Attributes and behaviors that are not hidden are said to be which of the following?
16. Which of the following examples show the proper syntax for instantiating an object?
17. How many default constructors can be in a class?
18. A function that is defined in a class definition is known as which of the following?
19. Which OOP term refers to the fact that you can create one class from another class?
20. What are constructors that contain at least one parameter called?
parameterized constructor
21. What is a constructor that has no formal parameters called?
22. Which section of a class definition contains the method definitions?
23. What is the file called that most programmers enter a class definition into?
24. What does a programmer use to tell the compiler to include the contents of a header file in the program?
25. In OOP terms, what does a class do to all of the attributes and behaviors of the object it instantiates?
26. In C++, which symbol represents the scope resolution operator?
27. What are the characteristics that describe an object?
28. The syntax for referring to a public member of an object’s class is shown in which of the following examples?
29. What is the sole purpose of a constructor?
initialize the class’s public variables
initialize the class’s private variables
define the class’s prototype methods
define the class’s public methods
30. What does a program use to access a private variable within a class?
31. Which term is the object-oriented feature that allows the same instruction to be carried out differently depending upon
the object?
32. What is a pattern or blueprint that the computer uses to create an object?
33. Which of the following terms best describes something that can be seen, touched, or used?
34. Which section of a class definition begins with the keyword class followed by the name of the class?
35. In OOP terminology, when a class is created from another class, what is the original class called?
36. What is the extension of header files?
37. What is a constructor? What purpose does it serve?
38. What is abstraction? What is the advantage of abstraction?
39. Why is it advantageous to be able to reuse a class?
40. Give the syntax of the class statement in C++.
41. What are the differences between procedure-oriented programming and object-oriented programming?
42. What is an overloaded method and why might you want to overload a method?
43. Describe what it means to say that an object has behaviors.
44. What is inheritance? Include in your response the terms derived class, base class, attributes, and behaviors.
45. Is it better to enter the code for a class in a header file? Why or why not?