Search Header Logo

Unit 9 2D Lists Practice

Authored by Bonnie Keating

Computers

9th - 12th Grade

Used 10+ times

Unit 9 2D Lists Practice
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Row-major order is when the row is listed first and then the column. Column-major order means the column is listed first and then the row. Which is more commonly used?

row-major order

column-major order

neither. they both sound dumb.

col-major order because column-major order is too much to type

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following 2D list called "a":

3 4 5

8 9 1

2 7 6

Which element is referenced by a[1][2]?

9

4

1

8

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank to add 4 lists of [1, 2, 3] as elements to the list called "a":

for i in range(4):

a.______([1, 2, 3])

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider this code. What are the dimensions of the 2D list called "grid" (row x column)?

4 X 20

5 x 5

5 X 4

4 x 5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider this code. What is printed?

48

82

15

24

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

After running this code, how many rows are in "list"?

2

3

4

1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If I wanted to add 100 to every element of a 2D list of integers, I would use 2 nested traditional for loops

true

false

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?