题目内容

Elements of an array is stored ( ) in the memory.

A. at random
B. sequentially
C. in several different places

查看答案
更多问题

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

答案查题题库