Answer the following statements true (T) or false (F)

1. Changes made to an entire array that has been passed to a method will not affect the original values of the array.
2. When passing an array to a procedure, the method’s parameter list must
specify that an array will be received.
3. When we pass an array object to a procedure, we do not need to pass the upper
bound of the array as a separate argument.
4. For Each…Next loop is barely used because it’s more complicated than the For…Next loop.
5. The For Each…Next repetition statement is appropriate when the program doesn’t need to refer to the indices of the elements in an array.

1. False. Arrays are passed to methods by reference; therefore, changes made within the method modify the original array itself.
2. True.
3. True.
4. False. For Each…Next is often used because of its simplicity.
5. True.

Computer Science & Information Technology

You might also like to view...

Pick the fonts that are not web-safe fonts

a. Helvetica b. Courier New c. Arial d. Cambria e. Times New Roman f. Baskerville

Computer Science & Information Technology

The __________ user ID is exempt from the usual file access control constraints and has system wide access.

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

Computer Science & Information Technology