Search Header Logo

Chapter 3 Part 2 Practice

Authored by Michelle Mattox

Computers

12th Grade

Used 9+ times

Chapter 3 Part 2 Practice
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

num = [1,2,3,4,2,6,4,7,2,]

print(num.count(2))

0

1

2

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method should be used to add an item to the end of a list?

insert

pop

append

extend

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list1 = ['a', 'c', 'd', 'e']

To add a 'b' in the second position use which of the following:

insert

pop

append

extend

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list1 = ['a', b', 'c'] list2 = [ 'd', 'e', 'f']

Which method performs the same action as list1 + list2?

insert

pop

append

extend

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list1 = [7,3,2,1,3]

print(list.sort( ))

[1,2,3,7]

[1,2,3,3,7]

[7,3,3,2,1]

[7,3,1,2]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list1 = [7,5,3,2,6,3]

print(list1.reverse( ))

[2,3,3,5,6,7]

[7,6,5,3,3,2]

[3,6,2,3,5,7]

[6,2,3,5,7]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct list comprehension for

s = [ ]

for i in range(10):

s = s + [i]

s = [i for i in range(10)]

s = [for i in range(10) i]

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?