List Manipulations

List Manipulations

11th Grade

20 Qs

quiz-placeholder

Similar activities

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Sejarah Komputer 2

Sejarah Komputer 2

1st - 12th Grade

15 Qs

Chapter 17 Test Review

Chapter 17 Test Review

9th - 12th Grade

20 Qs

Python List, and String

Python List, and String

10th Grade - University

20 Qs

CS Terms and Vocab Practice Quiz 3

CS Terms and Vocab Practice Quiz 3

7th - 12th Grade

20 Qs

Penanganan Barang Bawaan Tamu

Penanganan Barang Bawaan Tamu

KG - 11th Grade

15 Qs

KUIS PRAMUKA

KUIS PRAMUKA

KG - University

17 Qs

Game Show Part2

Game Show Part2

11th Grade

17 Qs

List Manipulations

List Manipulations

Assessment

Quiz

Computers, Other

11th Grade

Practice Problem

Medium

Created by

Archana Pataskar

Used 157+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following list assignment

aList = [4, 8, 12, 16]

aList[1:4] = [20, 24, 28]

print(aList)

[4, 20, 24, 28, 8, 12, 16]

[4, 20, 24, 28]

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following list operation

aList = [10, 20, 30, 40, 50, 60, 70, 80]

print(aList[2:5])

print(aList[:4])

print(aList[3:])

[20, 30, 40, 50]

[10, 20, 30, 40]

[30, 40, 50, 60, 70, 80]

[30, 40, 50]

[10, 20, 30, 40]

[40, 50, 60, 70, 80]

None of these

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select all the correct options to join two lists in Python

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

listTwo = ['e', 'f', 'g']

newList = listOne + listTwo

newList = extend(listOne, listTwo)

newList = listOne.extend(listTwo)

newList.extend(listOne, listTwo)

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following list function?

sampleList = [10, 20, 30, 40, 50]

sampleList.append(60)

print(sampleList)


sampleList.append(60)

print(sampleList)

[10, 20, 30, 40, 50, 60]

[10, 20, 30, 40, 50, 60, 60]

[10, 20, 30, 40, 50, 60]

[10, 20, 30, 40, 50, 60]

both are wrong

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In Python, list is mutable

False

True

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following would give an error?

list1=[]

list1=[]*3

list1=[2,8,7]

None of the above

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of below Python code?

list1=[8,0,9,5]


print(list1[::-1])

[5,9,0,8]

[8,0,9]

[8,0,9,5]

[0,9,5]

Access all questions and much more by creating a free account

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

Already have an account?