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

Please only answer if you actually know the answers. Positive rating will only b

ID: 3647815 • Letter: P

Question

Please only answer if you actually know the answers. Positive rating will only be received if answers are correct. Thanks!

6. Passing a structure as a constant reference parameter to
a function:

A. can potentially result in changes to the structure's members.
B. guarantees not to result in changes to the structure's members.
C. will always change the structure's members.
D. All of these
E. None of these

____ 7. This is like a structure, except all members occupy the same
memory area.

A. array
B. union
C. structure pointer
D. array of pointers
E. None of these


____ 8. Members of a(n) ________ union have names, but the union
itself has no name.

A. anonymous
B. dereferenced
C. organized
D. declared
E. None of these


____ 9. If Circle is a structure tag, the statement

Circle doSomething(Circle c2)

can be the header line for a function that

A. determines and returns the area of a circle
B. takes a Circle structure as a parameter, does something, and
returns a Circle structure
C. operates on a constant reference to a Circle structure
D. takes two Circle parameters and does something
E. None of these


____ 10. Which of the following assigns a value to the hourlyWage
member of employee[2]?

A. employee[2]->hourlyWage = 50.00;
B. employee2.hourlyWage = 7.50;
C. hourlyWage[2].employee = 29.75
D. employee[2].hourlyWage = 100.00;
E. None of these

Explanation / Answer

A. can potentially result in changes to the structure's members. D. array of pointers C. organized B. takes a Circle structure as a parameter, does something, and returns a Circle structure D. employee[2].hourlyWage = 100.00;