
CS Awesome Unit 8 Lesson 2 Traversing 2D Arrays
Authored by Kathryn MacKenzie
Computers
9th - 12th Grade
Used 118+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
4 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the intended purpose of method mystery?
Row major order
Column major order
Identify the smallest value in the array
Identify the largest value in the array
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the order of this 2D array traversal?
Row major order
Column major order
Identify the smallest value in the array
Identify the largest value in the array
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What determines the order of traversal in a nested for loop?
the outer loop variable
the inner loop variable
the first variable in [row][col]
the second variable in [row][col]
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
True or False: To change the order of traversal to column major order, a correct short cut is to simply change the order of variables from [row][col] to [col][row] in the statement "anArray[row][col]".
True
False
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?