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

1) An array can store many different types of values.
2) An array index should normally be of type float.
3) An individual array element that’s passed to a method and modified in that method will contain the modified value when the called method completes execution.
4) Command-line arguments are separated by commas.


1) False. An array can store only values of the same type.
2) False. An array index must be an integer or an integer expression.
3) For individual primitive-type elements of an array: False. A called method receives and manipulates a copy of the value of such an element, so modifications do not affect the original value. If the reference of an array is passed to a method, however, modifications to the array elements made in the called method are indeed reflected in the original. For individual elements of a reference type: True. A called method receives a copy of the reference of such an element, and changes to the referenced ob- ject will be reflected in the original array element.
4) False. Command-line arguments are separated by white space.

Computer Science & Information Technology

You might also like to view...

Use ___________ positioning to configure the location of an element to remain the same and to not move even when the web page is scrolled within the browser viewport.

a. absolute b. static c. relative d. fixed

Computer Science & Information Technology

One reason to change the name property of an ActiveX Control is so it can be referred to in VBA code

Indicate whether the statement is true or false

Computer Science & Information Technology

The ________ is the notebook location

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which of the following can function in an unsecure mode?

A. SNMPv3 B. SSH C. SSL D. SCP

Computer Science & Information Technology