Python Lists Quiz (Grade 9)

Python Lists Quiz (Grade 9)

9th Grade

11 Qs

quiz-placeholder

Similar activities

IT related jobs

IT related jobs

9th Grade

9 Qs

Numpy-1

Numpy-1

9th - 12th Grade

10 Qs

Contact Center Sevices

Contact Center Sevices

7th - 10th Grade

10 Qs

Quiz 8 (01.09.2021)

Quiz 8 (01.09.2021)

1st - 12th Grade

10 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

1 Herramientas Digitales

1 Herramientas Digitales

6th Grade - University

10 Qs

Diagnoses and Identification of Faulty Computer and Network

Diagnoses and Identification of Faulty Computer and Network

9th Grade

10 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

Python Lists Quiz (Grade 9)

Python Lists Quiz (Grade 9)

Assessment

Quiz

Computers

9th Grade

Practice Problem

Hard

Created by

Leila Mardenova

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

11 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?

my_list = {1, 2, 3}

my_list = (1, 2, 3)

my_list = [1, 2, 3]

my_list = "1, 2, 3"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

10

20

30

40

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the last element of a list my_list = [5, 10, 15, 20] using negative indexing?

my_list[0]

my_list[-1]

my_list[-2]

my_list[3]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

["apple", "banana", "cherry"]

["orange", "banana", "cherry"]

["apple", "orange", "cherry"]

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to find the number of elements in a list?

size()

length()

len()

count()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to add 50 to the end of the list numbers = [10, 20, 30, 40]?

numbers.add(50)

numbers.append(50)

numbers.insert(50)

numbers[4] = 50

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you remove the first occurrence of 3 from my_list = [1, 2, 3, 4, 3, 5]?

my_list.pop(3)

my_list.remove(3)

del my_list[3]

my_list.delete(3)

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?