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

1) To refer to a particular location or element within an array, we specify the name of the array’s variable and the value of the particular element.
2) The declaration of a variable that references an array reserves memory for the array.
3) To indicate that 100 locations should be reserved for integer array p, the programmer writes the declaration
4) An app that initializes the elements of a 15-element array to 0 must contain at least one for statement.
5) To total the elements of a two-dimensional array you must use nested for statements.


1) False. The name of the array’s variable and the index are specified.
2) False. Memory for arrays must be dynamically allocated in C# with new or by specifying an initializer list to initialize the array’s elements. p[100];
3) False. The correct declaration is int[] p = new int[100];
4): False. Numeric arrays are automatically initialized to zero. Also, a member initializer
list can be used, or other repetition statements could be used, or individual assignment statements could be used.
5) False. It is possible to total the elements of a two-dimensional array by adding all the elements in a single assign

Computer Science & Information Technology

You might also like to view...

By default, cell text is placed ____.

A. in the middle of the cell, aligned with the cell's right edge B. in the middle of the cell, aligned with the cell's left edge C. at the bottom of the cell, aligned with the cell's right edge D. at the bottom of the cell, aligned with the cell's left edge

Computer Science & Information Technology

A(n) _________________________ is a customized integrated circuit on a chip, containing logic for a specific application, such as fast routing logic.

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

Computer Science & Information Technology

A(n) ____ adds highlights and shadows to create a three-dimensional effect.

a. vector b. raster c. interlace d. bevel

Computer Science & Information Technology

The ________ is a statistical function that adds a group of values and then divides the result by the number of values in the group

A) SUM B) AVERAGE C) MAX D) MIN

Computer Science & Information Technology