Chapter 3 Part 2 Practice

Chapter 3 Part 2 Practice

12th Grade

18 Qs

quiz-placeholder

Similar activities

Python Quiz

Python Quiz

12th Grade

15 Qs

Finite State Machines

Finite State Machines

12th Grade

20 Qs

Practice <ultiple Choice - APCSA

Practice <ultiple Choice - APCSA

9th - 12th Grade

18 Qs

Python List Basics

Python List Basics

12th Grade

14 Qs

Finite state machines

Finite state machines

12th Grade

20 Qs

April Revision APCSP

April Revision APCSP

12th Grade

17 Qs

Python Lists

Python Lists

10th - 12th Grade

15 Qs

Python Lists and Tuples

Python Lists and Tuples

11th - 12th Grade

20 Qs

Chapter 3 Part 2 Practice

Chapter 3 Part 2 Practice

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Michelle Mattox

Used 9+ times

FREE Resource

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]

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?