题目内容

The index of an array starts from ( ).

A. 0
B. 1
C. 2
D. -1

查看答案
更多问题

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.

答案查题题库