Search Header Logo
#054 Traversing 2D Arrays

#054 Traversing 2D Arrays

Assessment

Interactive Video

Computers

10th Grade

Practice Problem

Easy

Created by

Myra Deister

Used 7+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

At what index does an array in Java typically start?

1

-1

0

Depends on the array type

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which loop(s) is/are NOT mentioned in the video for traversing arrays?

For loop

For each loop

While loop

Do-while loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java, 2D arrays are said to be:

Column major

Row major

Matrix major

Index major

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the .length property return for a 2D array in Java?

The total number of elements

The number of columns

The number of rows

The length of the longest row

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the common variable names used for row and column in the video?

x and y

i and j

row and col

r and c

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of arr.length for a 2D array where arr = {{1,2},{3,4},{5,6}}?

2

3

6

undefined

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?