Search Header Logo

2D List

Authored by Sangay Wangmo

Computers

8th Grade

Used 3+ times

2D List
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about a 2D list in Python?

It is a single list with two elements.

It is a list of dictionaries.

It is a list of lists.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true regarding 2D lists in Python?

2D lists are used to represent tabular data

2D lists can only contain integers

2D lists can only have equal-length rows

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following is an example of a 2D-list in Python?

{1: 'one', 2: 'two'}

[[1, 2, 3], [4, 5, 6]]

[(1, 2), (3, 4)]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents the correct syntax to refer to a specific item in a 2D list?

list_name[row][column]

list_name[row, column]

list_name[column][row]

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

For example:

numbers = [ [1, 2, 3, 4], [2, 4, 6, 8], [3, 6, 9, 12]]

print(numbers[2][1]) refers to .......................

1

2

6

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

........................ will create a cloud at the third row, fourth column.

clouds[4][5] = Cloud()

clouds[3][4] = Cloud()

clouds[4][3] = Cloud()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements accurately describes how to loop over the items of a 2D list in Python?

Use a for loop with a single iterator variable to iterate over the list elements.

Use two for loops, one nested within the other, to iterate over the rows and columns of the list.

Use a while loop to iterate over the list elements until all items have been processed.

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?