FoP Unit 8 Lists Pre-Assessment

FoP Unit 8 Lists Pre-Assessment

10th Grade

12 Qs

quiz-placeholder

Similar activities

list 3

list 3

9th - 12th Grade

15 Qs

2.1.3 Searching Algorithms

2.1.3 Searching Algorithms

10th - 11th Grade

12 Qs

Array List

Array List

9th - 12th Grade

13 Qs

Lists Code.org

Lists Code.org

9th - 12th Grade

10 Qs

Code.org AP CSP Lists

Code.org AP CSP Lists

9th - 12th Grade

10 Qs

Exploring Python Data Structures Quiz

Exploring Python Data Structures Quiz

10th Grade

15 Qs

Javascript

Javascript

10th - 12th Grade

15 Qs

Code.org Unit 6 - Lists

Code.org Unit 6 - Lists

9th - 12th Grade

12 Qs

FoP Unit 8 Lists Pre-Assessment

FoP Unit 8 Lists Pre-Assessment

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Jamey Barber

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for creating a list in Python?

{}

()

[]

||

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the third element in a list named 'my_list'?

my_list[3]

my_list[2]

my_list(2)

my_list.third()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is used to add an element to the end of a list?

pop()

remove()

append()

insert()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the operation [1, 2, 3] + [4, 5, 6]?

Error

10

7

123

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a list containing the squares of numbers from 1 to 10 using list comprehension?

[x^2 for x in range(1, 11)]

[x*2 for x in range(1, 11)]

[x**3 for x in range(1, 11)]

[x**2 for x in range(1, 11)]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the slicing operation my_list[2:5]?

The result of my_list[2:5] is an empty list.

The result of my_list[2:5] is a sublist containing the elements at index 0, 1, and 2.

The result of my_list[2:5] is a sublist containing the elements at index 2, 3, and 4.

The result of my_list[2:5] is a single element at index 2.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the last element in a list?

list_name[-1]

list_name[last]

list_name[0]

list_name[end]

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?