List quiz1

List quiz1

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Master curs 1

Master curs 1

12th Grade

10 Qs

Revision Quiz Std 12 Jan 19 2021

Revision Quiz Std 12 Jan 19 2021

12th Grade

10 Qs

Python Ch 1

Python Ch 1

5th Grade - University

10 Qs

Python Data Structures

Python Data Structures

10th Grade

10 Qs

Python Lists

Python Lists

10th Grade

14 Qs

Sorting Algorithms

Sorting Algorithms

9th - 12th Grade

10 Qs

Dsign Principles

Dsign Principles

12th Grade

10 Qs

Python Lists

Python Lists

10th - 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?