State whether each of the following is true or false. If false, explain why.
a) To refer to a particular location or element within an array, we specify the name of the array and the value of the par-
ticular element.
b) An array declaration reserves space for the array.
c) To indicate that 100 locations should be reserved for integer array p, the programmer writes the declaration
p[ 100 ];
d) A JavaScript program that initializes the elements of a 15-element array to zero must contain at least one for statement.
e) A JavaScript program that totals the elements of a double-subscripted array must contain nested for statements.
a) False. We specify the name of the array and the indexed location to refer to a specific element.
b) True.
c) False.
```
var p = new Array[ 100 ];
```
d) False. Arrays can be initialized upon declaration.
e) True.
You might also like to view...
All objects of a class share a class variable.
Answer the following statement true (T) or false (F)
Which of the statements will unhighlight any highlighted item in lstBox?
(A) lstBox.SelectedItem = Nothing (B) lstBox.SelectedItem = " " (C) lstBox.SelectedIndex = 0 (D) lstBox.SelectedIndex = -1
When you pass a variable's address to a procedure, the computer uses the address to locate the variable in its external memory.
Answer the following statement true (T) or false (F)
If you want to include a chart when calculating a moving average, you must select the ________ checkbox in the Moving Average dialog box
Fill in the blank(s) with correct word