List quiz1

List quiz1

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Python list starter

Python list starter

10th Grade - University

12 Qs

Strategi Algoritmik dan Pemrograman - Informatika XI

Strategi Algoritmik dan Pemrograman - Informatika XI

11th Grade

15 Qs

Списки Python + Pygame

Списки Python + Pygame

KG - University

10 Qs

Data Frame1

Data Frame1

12th Grade

10 Qs

PYTHON LIST

PYTHON LIST

9th Grade

15 Qs

MASSIV

MASSIV

12th Grade

10 Qs

Python List Basics

Python List Basics

12th Grade

14 Qs

Understanding Lists in Python

Understanding Lists in Python

12th Grade

15 Qs

List quiz1

List quiz1

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

kidzian pvtltd

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to create a list in Python?

list = "apple", "banana", "cherry"

list = {"apple", "banana", "cherry"}

list = ["apple", "banana", "cherry"]

list = (apple, banana, cherry)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the first element in a list?

0

1

2

none

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the last item of a list named fruits?

fruits[-1]

fruits[len(fruits)]

fruits[0]

fruits[last]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of len([10, 20, 30])?

2

3

4

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to add an item to the end of a list?

insert()

add()

append()

push()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will list1 = [1, 2] * 3 result in?

[1, 2, 1, 2, 1, 2]

[1, 2, 3]

[3, 6]

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following removes the first matching value in a list?

pop()

remove()

del()

discard()

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?