No student devices needed. Know more
10 questions
Which of the labels show the array index?
A
B
C
Which index is label C pointing to?
7
8
9
Which of the labels points to the representation of a memory address?
A
B
C
What does the image above show?
An array
A 2D array
An IF statement
No idea!
Which of the labels points to the index {r1, c3}?
A
B
C
D
Which of the labels points to the 'rows' arrow?
A
B
C
D
Which of the following is the correct pseudocode to read (and print) all elements from an array?
FOR i = 1 TO LENGTH(array)
variable <-- array[i]
OUTPUT: array[i]
ENDFOR
FOR i = 1 TO LENGTH(array)
variable <-- array[i]
OUTPUT: variable
ENDFOR
FOR i = 1 TO LENGTH(array)
array[i] <-- variable
OUTPUT: variable
ENDFOR
Fill in the blanks:
"An array is a series of memory _________ that are referred to by their _____ and the ‘collection’ name."
addresses
index
elements
locations
Which element index is the 'X' in, in the array above?
[c3,r2]
[r3,c2]
[c2,r1]
TRUE/FALSE:
"An array is a much more efficient way to store data if you need to refer to multiple data using the same reference."
TRUE
FALSE
Explore all questions with a free account