Python List Operations 2

Python List Operations 2

12th Grade

100 Qs

quiz-placeholder

Similar activities

Excel/Access EOC Review

Excel/Access EOC Review

9th Grade - University

100 Qs

Flash 2 - Dhony - SMA Xaverius 3 Palembang

Flash 2 - Dhony - SMA Xaverius 3 Palembang

12th Grade

100 Qs

Lo1 Fundamentals of IT

Lo1 Fundamentals of IT

12th Grade

98 Qs

End of Semester Final: Info Tech

End of Semester Final: Info Tech

9th - 12th Grade

105 Qs

SOAL ULANGAN HARIAN 1 KODING DAN KECERDASAN ARTIFISIAL

SOAL ULANGAN HARIAN 1 KODING DAN KECERDASAN ARTIFISIAL

10th Grade - University

100 Qs

Review for Python 3 Test - Loops and Strings (CodeCademy)

Review for Python 3 Test - Loops and Strings (CodeCademy)

7th - 12th Grade

100 Qs

Ôn tập TH11 CĐ4 Giới thiệu các hệ CSDL

Ôn tập TH11 CĐ4 Giới thiệu các hệ CSDL

11th Grade - University

101 Qs

Informatica

Informatica

12th Grade

100 Qs

Python List Operations 2

Python List Operations 2

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

DHANESH ABRAHAM

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

100 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?
L = [10, 20, 30, 40, 50]
result = L[-4:4:2]
print(result)

[20, 40]

[20, 30, 40]

[30]

[20]

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of len(L) after the following operations?
L = [1, 2] * 3
L = L + [4, 5]

6

7

8

5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output? Python ?
L = [1, 2, 3]
L[1:3] = [9, 8, 7, 6]
print(L)

[1, 9, 8, 7, 6]

[1, 9, 8, 7, 6, 4]

[1, 9, 8, 7, 6, 3]

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output?
L = ['a', 'b', 'c', 'd']
L[-1] = L[0]
print(L)

['a', 'b', 'c', 'a']

['d', 'b', 'c', 'a']

['d', 'b', 'c', 'd']

['a', 'b', 'c', 'd']

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

L = [10, 20, 30, 40]
What is the output of L[-1] + L[-2]?

70

60

50

30

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

L = ['a', 'b', ['x', 'y', 'z']]
What is the result of 'z' in L?

True

False

Error

Depends on Python version

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output?
L = [10, 20, 30, 40]
print(L[-2:])

[30, 40]

[20, 30, 40]

[40]

[10, 20]

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?