Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.A library function that can find one string inside another is A.strstr B.strse

ID: 3559799 • Letter: 1

Question

1.A library function that can find one string inside another is

A.strstr

B.strsearch

C.strfind

D.strcmp

E.None of these

2.Which of the following is an example of a C++ primitive data type?

A.long double

B.unsigned char

C.unsigned short int

D.All of these

E.All of these

3.A good reason to pass a structure as a constant reference is:

A.to ensure changes to the structure members

B.to speed up the function's modification of the structure members

C.to prevent changes to the structure members

D.to slow down the function's execution, preventing errors

E.None of these

Explanation / Answer

1.A library function that can find one string inside another is
A.strstr
2.Which of the following is an example of a C++ primitive data type?
A.long double
B.unsigned char
C.unsigned short int
D.All of these

3.A good reason to pass a structure as a constant reference is:
C.to prevent changes to the structure members