Answer the following statements true (T) or false (F)
1. Arrays consist of items of different types.
2. An array reference may be assigned only to a different array of the same size as the array it’s currently referencing.
3. The first element in every array is the 0th element.
4. The position number in square brackets is formally called an index.
5. Only literal integer values can be used as an index into an array.
1. False. Arrays consist of items of the same type.
2. False. An array reference may be reassigned to an array of any size.
3.True.
4. False. The position number must be in parentheses.
5.False. An integer expression that can be evaluated to an integer can also be an index.
You might also like to view...
Which one of the following statements assigns the value Flavor.Vanilla to the ice Cream Flavor variable?
Look at the following code sample: ``` enum Flavor { Vanilla, Strawberry, Chocolate } Flavor iceCreamFlavor; ``` a. ice Cream Flavor.Vanilla; b. ice Cream Flavor = Flavor.Vanilla; c. ice Cream Flavor(Flavor.Vanilla); d. ice Cream Flavor = Flavor[0];
Which of the following techniques virus scanners use to find viruses?
a. Monitors if any program is trying to modify system files b. Monitors the system for certain type of behaviors typical for viruses c. Compares the files on the system against a database of known virus files d. All the above
The operating system is used to manage the computer's activities.
a. true b. false
Random numbers are a series of numbers whose order cannot be predicted.
Answer the following statement true (T) or false (F)