Return by reference was used for the overloaded [ ] operator function of the Array class because:

A. it is possible that an invalid index of the Array might be accessed
B. the function call for this function might appear on the left of an assignment
C. the function was inlined
D. conditional compilation was used


B

Computer Science & Information Technology

You might also like to view...

Use the ________ function to display the current date

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following is NOT an Electronic Access Control (EAC) component?

A. Electromagnetic lock B. Tumbler C. Credential reader D. Closed door sensor

Computer Science & Information Technology

What indicates that a cell has been changed on a worksheet?

A. A border with a small triangle in the upper-left corner B. A border with a small triangle in the lower-right corner C. A light-green background and red triangle in the upper-right corner D. A light-green background and red triangle in the lower-left corner

Computer Science & Information Technology

Which of the following operators compare using short-circuit evaluation?

A. == B. & & C. ++ D. --

Computer Science & Information Technology