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.

Computer Science & Information Technology

You might also like to view...

The ________ control in Visual Basic is used to display a button to execute some action when the user clicks it

Fill in the blank(s) with correct word

Computer Science & Information Technology

COGNITIVE ASSESSMENT What is the role of an address when used in the context of computer memory?

A. It determines the amount of data a computer can process over a given period of time. B. It automatically registers each byte that is stored in memory. C. It determines whether the data stored in memory is represented as ASCII or as 8-bit and then indicates to the processor the type of processing that is allowed for the data. D. It identifies the location of a byte in memory.

Computer Science & Information Technology