150. The strcopy() function causes each element of string2 to be assigned to the
ID: 3627410 • Letter: 1
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
____ 151. The strcmp() routine ____ one string to another.
a. copies c. appends
b. compares d. compares part of
____ 152. The declarations for the string library routines are found in the ____ header file.
a. iostream c. cstring
b. cctype d. cstdlib
____ 153. The strlen() function returns the number of ____ in its C-string parameter.
a. bits c. words
b. bytes d. characters
____ 154. The ____ function returns a nonzero number if the character is a letter; otherwise returns a zero.
a. isupper(char) c. isdigit(char)
b. islower(char) d. isalpha(char)
____ 155. atoi() is a ____ routine.
a. string conversion c. string library
b. character library d. string I/O
____ 156. A structure’s ____ consists of the symbolic names, data types and arrangement of individual data fields in the structure.
a. form c. dimension
b. contents d. size
____ 157. A C++ structure can be considered as a class that has no methods and all of whose variables are ____.
a. protected c. public
b. private d. preferred
____ 158. A C++ class can be declared as a structure that has all private data members and ____ public members
a. no c. two
b. one d. all
____ 159. The definition statement Date birth, current; reserves storage for ____.
a. two birth structure variables c. a birth and a current structure variable
b. two date structure variables d. two current structure variables
____ 160. An array of records is a homogeneous data structure whose elements are of the same ____ data type.
a. homogeneous c. integer
b. structured d. heterogeneous
Explanation / Answer
151) b 152) c 153) d 154) d 155) a 156) a 157) c 158) d 159) b 160) a
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.