List Quiz

List Quiz

University

10 Qs

quiz-placeholder

Similar activities

Phonics Knowledge Exit Ticket

Phonics Knowledge Exit Ticket

University

8 Qs

Python Variables

Python Variables

University

10 Qs

Python quiz

Python quiz

KG - Professional Development

10 Qs

Day 2 Python quiz Datatypes and variable

Day 2 Python quiz Datatypes and variable

University

10 Qs

Tools for quality assessment

Tools for quality assessment

University

8 Qs

RICA: Reading Assessment 21-30

RICA: Reading Assessment 21-30

University

10 Qs

PYTHON QUIZ

PYTHON QUIZ

University

15 Qs

Html/Css Quiz Day 1

Html/Css Quiz Day 1

University

10 Qs

List Quiz

List Quiz

Assessment

Quiz

Education

University

Hard

Created by

Vinisha Jesubert

Used 13+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a list in Python?

A data type to store a single value

A collection of ordered and mutable elements

A mathematical calculation in Python

A built-in function in Python

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an empty list in Python?

list()

empty_list()

[ ]

empty_list[]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the first element of a list in Python?

list[0]

list.first()

list.first

list[1]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following methods adds an element to the end of a list?

append()

add()

extend()

insert()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when you use the "+" operator to concatenate two lists in Python?

It concatenates the lists into a new list.

It adds the elements of both lists into a new list.

It raises an error; the "+" operator cannot be used with lists.

It removes the common elements and concatenates the remaining elements.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you remove an element from a list by its value?

list.remove(element)

list.pop(index)

list.delete(element)

list.remove(index)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following code snippet

my_list = [1, 2, 3, 4, 5]

new_list = my_list[1:3]

[1, 2]

[2, 3]

[2, 3, 4]

[3, 4]

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?