

Understanding 2D Arrays
Interactive Video
•
Computers
•
6th - 10th Grade
•
Practice Problem
•
Hard
Ethan Morris
FREE Resource
Read more
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first step to access a row in a 2D array?
Use a function to retrieve the row
List the name of the array followed by square brackets with an index
Access the array using a pointer
Use a loop to iterate through the array
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you access Cindy's first quiz answer?
quizScores[0][2]
quizScores[2][1]
quizScores[2][0]
quizScores[1][0]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access an individual element in a 2D array?
By using two sets of square brackets with indices
By using a pointer
By using a single index
By using a function call
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to modify Daniel's third answer?
quizScores[3][2] = 'c'
quizScores[2][3] = 'c'
quizScores[2][2] = 'c'
quizScores[3][3] = 'c'
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the assignment operator in modifying a 2D array?
To add a new row
To update an existing element
To delete an element
To sort the array
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is it important to be careful with indexing in arrays?
Because indexing starts at zero
Because indexing starts at one
Because arrays are immutable
Because arrays are always sorted
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a similarity between 1D and 2D arrays?
Both can only store integers
Both use the same indexing method
Both require the same amount of memory
Both are accessed using pointers
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?