CS Awesome Unit 8 Lesson 2 Traversing 2D Arrays

CS Awesome Unit 8 Lesson 2 Traversing 2D Arrays

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Kathryn MacKenzie

Used 116+ times

FREE Resource

Student preview

quiz-placeholder

4 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

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