17.Every object shares just a single copy of the member variable\'s defined by i
ID: 640008 • Letter: 1
Question
17.Every object shares just a single copy of the member variable's defined by its class.
Select one:
a. TRUE
b. FALSE
18.Lacking a public or private declaration, members or methods in a class will be treated as if they were marked public.
Select one:
a. TRUE
b. FALSE
19.Default-valued parameter arguments do not need to be passed when invoking the function that defines their value.
Select one:
a. FALSE
b. TRUE
20.In this course, we compared a class many times to the everyday things we interact with. In this way, we compared a class member variable to
Select one:
a. the brand (supplier) who made it
b. the actions (verbs) things do
c. the data (properties) things have
d. the driver (consumer) who used it
21.A class' constructors are all defined to return nothing, not even void.
Select one:
a. FALSE
b. TRUE
22.Which of the statements below is correct about cout?
Select one:
a. cout is a Class
b. cout is a Method of an Object
c. cout is a Namespace
d. cout is an Object
23.In this course, we compared a class many times to the everyday things we interact with. In this way, we compared int main() code which interacts with a class and its methods to
Select one:
a. the driver (consumer) who used it
b. the brand (supplier) who made it
c. the actions (verbs) things do
d. the data (properties) things have
24.The mutator ("setter") methods of a class are typically marked with the const modifier.
Select one:
a. TRUE
b. FALSE
25.Recursive functions are ones which may call themselves over and over again.
Select one:
a. TRUE
b. FALSE
26.Which of the following are correct in describing the statement: #include "SodaCan.h" and what it does?
Select one:
a. this statement is used by any file that wants to work with the classes declared inside that FlashDrive.h file
b. All of the choices above are correct
c. this statement performs textual substitution
d. this is a preprocessor command that is found at the top of other C++ files
27.Within a single class definition (.h file), the public and private access modifiers can be listed only one time.
Select one:
a. TRUE
b. FALSE
28.Which of the statements below is correct about std?
Select one:
a. std is an Object
b. std is a Class
c. std is a Namespace
d. std is a Method of an Object
29.The accessor ("getter") methods of a class are typically marked with the const modifier.
Select one:
a. TRUE
b. FALSE
30.A class typically represents a "thing".
Select one:
a. TRUE
b. FALSE
31.In this course, we compared a class many times to the everyday things we interact with. In this way, we compared the class designer to
Select one:
a. the driver (consumer) who used it
b. the actions (verbs) things do
c. the data (properties) things have
d. the brand (supplier) who made it
Explanation / Answer
17.true
18.true
19.false
20. the data (properties) things have
21.true
22.cout is a Method of an Object
23.a. the driver (consumer) who used it
24.a. TRUE
25.true
26.a. this statement is used by any file that wants to work with the classes declared inside that FlashDrive.h file
27.true
28.c. std is a Namespace
29.true
30.true
31.b. the actions (verbs) things do
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.