Search Header Logo

CS Python Fundamentals Test 9 PRACTICE

Authored by Scott Chamberlain

Computers

9th - 12th Grade

Used 5+ times

CS Python Fundamentals Test 9 PRACTICE
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min â€Ē 1 pt

When referring to two-dimensional lists, the phrase row-major means

more rows than columns

row first, then column

many rows, only one column

the rows are sorted, the columns are not

2.

HOTSPOT QUESTION

45 sec â€Ē 1 pt

Click on the location [1][3] within the 2-D array shown here.

3.

HOTSPOT QUESTION

45 sec â€Ē 1 pt

Click on the location [2][2] within the 2-D array shown here.

4.

MULTIPLE CHOICE QUESTION

1 min â€Ē 1 pt

Based on your understanding of a row-major list in Python, how would a language process a column-major list?

The list would be limited to one row

The first index would be the column; the second index the row

The element at [0][0] would refer to the last value in the list

The row indexes decrease as the column indexes increase

5.

MULTIPLE CHOICE QUESTION

1 min â€Ē 1 pt

Which of the following statements about lists is false?

An element is the data stored in a specific location

An index is a pointer to a specific location

List row and column numbers begin with 0

The first index in a 2-D list gives the column number

6.

MULTIPLE CHOICE QUESTION

1 min â€Ē 1 pt

Which line of code correctly declares and initializes a 2-D list in Python?

prime = [2,3], [5,7]

prime = [2,3] + [5,7]

prime = [2,3][5,7]

prime = [[2,3], [5,7]]

7.

MULTIPLE CHOICE QUESTION

1 min â€Ē 1 pt

Media Image

Given the code shown here, what are the dimensions of the list? (rows by columns)

4x3

3x2

2x3

3x4

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?