Python Lists

Python Lists

University

10 Qs

quiz-placeholder

Similar activities

Generación de Casos en Visor

Generación de Casos en Visor

University

12 Qs

Sinh hoạt lớp - CT GDPT 2018

Sinh hoạt lớp - CT GDPT 2018

University

7 Qs

ARREGLOS

ARREGLOS

University

10 Qs

Quiz: Motherboard

Quiz: Motherboard

3rd Grade - University

10 Qs

เศษส่วน

เศษส่วน

University

10 Qs

Online Communication

Online Communication

University

10 Qs

IT - základy

IT - základy

12th Grade - University

14 Qs

เศษส่วน(2)

เศษส่วน(2)

University

10 Qs

Python Lists

Python Lists

Assessment

Quiz

Instructional Technology

University

Practice Problem

Medium

Created by

Kelvin Kipchumba

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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()

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?