题目内容

Assume an array “list” contains 5 elements: [1, 2, 3, 4, 5]. The value of the subscripted variable “list[3]” is ( ).

A. 1
B. 2
C. 3
D. 4

查看答案
更多问题

Assume an array “list” contains 5 elements: [1, 2, 3, 4, 5]. The value of the subscripted variable “list[2 - 1]” is ( ).

A. 1
B. 2
C. 3
D. 4

The subscript “x” contained within square brackets “list[x]” can be any expression that evaluates a ( ).

A. integer
B. single-precision float
C. double-precision float
D. character

The declaration of an array should contain ( ).

A. The data type of the items in the array.
B. The array name.
C. The number of items in the array.
D. Values of the items in the array.

Each scalar variable can only store a single value at a time.

A. 对
B. 错

答案查题题库