PDF Download
FREE AND STUDY GAMES ABOUT C CHAPTER 14 EXAM
QUESTIONS
Actual Qs and Ans Expert-Verified Explanation
This Exam contains:
-Guarantee passing score -39 Questions and Answers -format set of multiple-choice -Expert-Verified Explanation Question 1: In most cases, the attributes(called data members) are represented by __ ___ and the behaviors are represented by ___ ___.
Answer:
variable declarations, method prototypes Question 2: After an object has been instantiated, the program can refer to the public member of
the class using the syntax:
Answer:
objectName.publicMember Question 3: When writing a __ ___ program, the programmer concentrates on the major tasks that the program needs to perform.
Answer:
procedure-oriented Question 4: A constructor does not return a value so it does not begin with a data type.
TRUE/FALSE
Answer:
TRUE
Question 5: ____ is useful when two or more methods require different parameters to perform essentially the same task.
Answer:
overloading
Question 6: A class can have only one ___ ___.
Answer:
default constructor Question 7: ___ is an acronym for object-oriented programming and simply means that you are using an object-oriented language to create a program that contains one or more objects.
Answer:
OOP Question 8: An object's ____ are the operations (actions) that the object is capable of performing, or to which the object can respond.
Answer:
behaviors Question 9: You can use the acronym ____ to remember some of the main OOP terms.
Answer:
APIE Question 10: When writing a __ __ program the programmer focuses on the objects that the program can use to accomplish its goal.
Answer:
object-oriented Question 11: Most programmers enter a class definition in a seperate file called a ___ ___.
Answer:
header file Question 12: Your classes must specify the attributes and behaviors of the objects they create.You specify the objects and behaviors using a ___ ___.
Answer:
class definition
Question 13: The ability to use an an object for more than one purpose saves programming __ and ___, an advantage that contributes to the popularity of object-oriented programming.
Answer:
time money Question 14: In most cases, you will want to expose the data members and hide the member methods. TRUE/FALSE
Answer:
FALSE
Question 15: Every object used in a program is created from a class. TRUE/FALSE
Answer:
TRUE Question 16: Although it is not a requirement when defining a class, the convention is to enter the class name using ____ ___. Capitalize the first letter in the name and each subsequent word.
Answer:
Pascal case.Question 17: ___ refers to the fact that you can create one class from another class.
Answer:
Inheritance
Question 18: The ___ are the characteristics that describe the object.
Answer:
attributes
Question 19: A ___ is a pattern or blueprint used to create an object.
Answer:
class Question 20: ___ refers to the hiding of the internal details of an object from the user.
Answer:
Abstraction
Question 21: A ____ is a method whose instructions the computer automatically processes each time an object is isntantiated from the class.
Answer:
constructor
Question 22: An ___ is anything that can be seen, touched, or used.
Answer:
object
Question 23: The __ __ contains the C++ class statement.
Answer:
declaration section Question 24: You enter the method definitions in the ____ ___ of a class definition.
Answer:
implementation section Question 25: Objects created from a class are referred to as __ of the class and are said to be instantiated from the class.
Answer:
instances Question 26: When two or more methods have the same name but different parameterLists, the methods are referred to as ___ ___.
Answer:
overloaded methods Question 27: The method name combined with its optional parameterList is called the method's ___.
Answer:
signature Question 28: Attributes and behaviors that are not hidden are said to be ___ to the user.
Answer:
exposed