Search Header Logo

Lists

Authored by Jeff Simmons

Computers

9th - 12th Grade

Used 3+ times

Lists
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can NOT be used on both strings and lists?

in

index

count

remove

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The slice is using default values

shopping_list2 is a copy of shopping_list1

If we change shopping_list2 it will not change shopping_list1

All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operations will create a new list?

len(list)

list.sort()

list1 + list2

random.shuffle(list)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these situations would require a sorted list?

Displaying a list of items in a restaurant menu

Calculating an average with a group of test scores

Printing the top 10 highest-grossing movies in order

Keeping track of sprites drawn at different heights on the screen

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The list of weekdays will end up empty

The list `week` will ONLY include "Sat" and "Sun"

The list of `weekdays` will include "Sat" and "Sun"

"Sat" and "Sun" will each be added twice to the `week` list

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?