Python Lists

Python Lists

University

10 Qs

quiz-placeholder

Similar activities

Fruit Preparation

Fruit Preparation

9th Grade - University

8 Qs

Pretest Academic Language

Pretest Academic Language

University

10 Qs

Chapter 6: Adding Value Review

Chapter 6: Adding Value Review

University

14 Qs

LINUX HISTORIA DIRECTORIOS Y COMANDOS

LINUX HISTORIA DIRECTORIOS Y COMANDOS

University

10 Qs

Power BI Prepare the Data Quiz - 1

Power BI Prepare the Data Quiz - 1

University

10 Qs

Post Test Shimano Di2

Post Test Shimano Di2

University - Professional Development

10 Qs

Developing Assessment Instruments CH 7 Review

Developing Assessment Instruments CH 7 Review

University

5 Qs

Instructions (Technology)

Instructions (Technology)

7th Grade - Professional Development

15 Qs

Python Lists

Python Lists

Assessment

Quiz

Instructional Technology

University

Medium

Created by

Kelvin Kipchumba

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a list?

A list is an unordered, unchangeable collection of items and do not alow duplicate values

A list is an unordered, changeable collection of items that can hold duplicate values

A list is an ordered, changeable collection of items that can hold duplicate values

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How do you create a list in Python?

list = (1, 2, 3)

list = {1, 2, 3}

list = [1, 2, 3]

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which method adds an item to the end of a list?

add()

append()

insert()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does list.insert(2, 'x') do?

Adds 'x' at index 2

Adds 'x' at the end

Replaces item at index 2 with 'x'

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will list.pop() do?

Remove the first item

Remove the last item

Remove a random item

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of len([1, 2, 3])

2

3

1

0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method removes the first matching value from a list?

remove()

pop()

delete()

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?

Discover more resources for Instructional Technology