WorksheetsCodeHS 5.7 2D Arrays
Total questions: 10
Worksheet time: 6mins
How is a 2D array stored?
As an array of arrays
As a grid
As a variable
As an instance variable
Write a well-written line of code that creates a 5x23 grid of integers named foo.
(a)
What is printed to the console?
(a)
How do we find the number of rows in bar?
bar.length
bar[].length
bar[][].length
bar[0].length
How do we find the number of columns in bar?
bar.length
bar[].length
bar[][].length
bar[0].length
How do we iterate over the entire 2D array?
nested for loop
nested while loop
sequential for loop
sequential while loop
iterative for loop
What is the name of the value that denotes an element of an array?
index
number
key
bound
What is an array?
a data structure that stores a fixed number of values of the same type
a data structure that stores a dynamic number of values of the same type
a data structure that stores information organized with a key
a data structure that stores information at two-dimensional coordinates
What is another term for an element of an array?
member
trick question--there isn't one
variable
object
What is love?
an object
a primitive data type
a class
an interface
baby don't hurt me
