Multiple Choice
If employee is an array of objects with a public member function named setHoursWorked, which of the following statements correctly calls that function for the employee object in array element 5?
A) employee.setHoursWorked[5] = 40;
B) employee[5].setHoursWorked = 40;
C) employee.setHoursWorked[5](40) ;
D) employee[5].setHoursWorked(40) ;
E) setHoursWorked(employee[5], 40) ;
Correct Answer:

Verified
Correct Answer:
Verified
Q17: Each individual element of an array can
Q18: If a C++ program contains the following
Q20: To step through a one-dimensional array, accessing
Q21: A two-dimensional array can be viewed as<br>A)
Q23: If employee is an array of objects
Q24: By using the same _ you can
Q25: The range-based for loop may be used
Q26: In C++ If you attempt to store
Q27: An individual array element can be processed
Q35: When you pass an array as an