____ 150. The strcopy() function causes each element of string2 to be assigned t
ID: 3627440 • Letter: #
Question
____ 150. The strcopy() function causes each element of string2 to be assigned to the equivalent element of string 1 until ____ is encountered.a. end-of-string marker c. end-of-file marker
b. newline marker d. a square bracket
____ 162. The variable employee[2].rate refers to the ____.
a. rate member of the second employee c. employee member of the third rate
b. employee member of the second rate d. rate member of the third employee
____ 163. Complete copies of ____ member(s) of a structure can be passed to a function by including the name of the structure as an argument to the called function.
a. selected c. the last
b. the first d. all
____ 164. In allocating storage dynamically, we ____ where the computer system will physically reserve the requested number of bytes.
a. have no advance indication of c. have an approximate idea of
b. know exactly d. can accurately predict
____ 165. The set of attributes and behaviors defining a class is frequently referred to as the class’s ____.
a. interface c. environment
b. specifications d. components
____ 166. In a C++ class, a member function name ____ be the same as a data member name.
a. should not c. cannot
b. should d. can
____ 167. The private access designation used in C++ classes restricts a user from seeing how the data is actually stored and is referred to as data ____.
a. security c. enforcement
b. protection d. hiding
____ 168. Class functions declared as public ____ be called by any objects and functions not in the class.
a. can c. should not
b. cannot d. should rarely
____ 169. Whenever a new object of a class is defined, the class’s ____ function is automatically called.
a. implementation c. constructor
b. declaration d. extension
____ 170. Within the declaration section of a class definition, functions are declared via ____.
a. constructors c. initialization statements
b. assignment statements d. prototypes
____ 171. Data members of a class are also known as ____.
a. instance variables c. manipulators
b. data elements d. initializers
____ 172. If an object’s data members are assigned default values by a constructor function, those assigned values ____ be changed.
a. cannot c. should not
b. can d. should always
____ 173. If a class designates all of its data members as private and all of its member functions as public, we must rely on ____ to access data members.
a. scope resolution operators c. assignment statements
b. member functions d. equivalence statements
____ 174. Objects have the same relationship to classes as ____ do to C++ built-in data types.
a. constants c. instances
b. variables d. cases
____ 175. If no constructor is provided in a class definition, the compiler will ____.
a. supply a stub c. issue an error message
b. do nothing d. supply a do-nothing default constructor
____ 176. The term information hiding refers to the encapsulation and ____ of all implementation details.
a. encryption c. hiding
b. translation d. destruction
Explanation / Answer
Hi, you have my apologies for accidentally skipping #150 on your previous question. ____ 150. The strcopy() function causes each element of string2 to be assigned to the equivalent element of string 1 until ____ is encountered. a. end-of-string marker ____ 162. The variable employee[2].rate refers to the ____. a. rate member of the second employee ____ 163. Complete copies of ____ member(s) of a structure can be passed to a function by including the name of the structure as an argument to the called function. d. all ____ 164. In allocating storage dynamically, we ____ where the computer system will physically reserve the requested number of bytes. c. have an approximate idea of ____ 165. The set of attributes and behaviors defining a class is frequently referred to as the class’s ____. a. interface ____ 166. In a C++ class, a member function name ____ be the same as a data member name. c. cannot ____ 167. The private access designation used in C++ classes restricts a user from seeing how the data is actually stored and is referred to as data ____. d. hiding ____ 168. Class functions declared as public ____ be called by any objects and functions not in the class. a. can ____ 169. Whenever a new object of a class is defined, the class’s ____ function is automatically called. c. constructor ____ 170. Within the declaration section of a class definition, functions are declared via ____. d. prototypes ____ 171. Data members of a class are also known as ____. a. instance variables ____ 172. If an object’s data members are assigned default values by a constructor function, those assigned values ____ be changed. b. can ____ 173. If a class designates all of its data members as private and all of its member functions as public, we must rely on ____ to access data members. b. member functions ____ 174. Objects have the same relationship to classes as ____ do to C++ built-in data types. b. variables ____ 175. If no constructor is provided in a class definition, the compiler will ____. d. supply a do-nothing default constructor ____ 176. The term information hiding refers to the encapsulation and ____ of all implementation details. c. hiding
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.