Unit 9 2D Lists Practice

Unit 9 2D Lists Practice

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which is more commonly used: Row-major order (row listed first, then column) or Column-major order (column listed first, then row)?

Back

row-major order

2.

FLASHCARD QUESTION

Front

Which element is referenced by a[1][2]?
Consider the following 2D list called "a":
3 4 5
8 9 1
2 7 6

Back

1

3.

FLASHCARD QUESTION

Front

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])

Back

append

4.

FLASHCARD QUESTION

Front

Consider this code. What are the dimensions of the 2D list called "grid" (row x column)? Options: 4 X 20, 5 x 5, 5 X 4, 4 x 5

Media Image

Back

4 x 5

5.

FLASHCARD QUESTION

Front

Consider this code. What is printed? Options: 48, 82, 15, 24

Media Image

Back

82

6.

FLASHCARD QUESTION

Front

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

Media Image

Back

4

7.

FLASHCARD QUESTION

Front

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

Back

true

Create a free account and access millions of resources

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?