Sorting Simple List and List processing in Python

Sorting Simple List and List processing in Python

9th Grade

17 Qs

quiz-placeholder

Similar activities

Structured information_E

Structured information_E

6th - 12th Grade

13 Qs

IMedia Recap

IMedia Recap

9th - 11th Grade

12 Qs

WWW

WWW

6th - 10th Grade

15 Qs

Latihan PSAS Kelas 9

Latihan PSAS Kelas 9

9th Grade - University

20 Qs

Excel 9A3

Excel 9A3

7th - 9th Grade

20 Qs

MSJ Form 1 Term 2

MSJ Form 1 Term 2

9th Grade

20 Qs

GGHS HTML Test

GGHS HTML Test

7th - 10th Grade

20 Qs

10/15

10/15

9th - 12th Grade

15 Qs

Sorting Simple List and List processing in Python

Sorting Simple List and List processing in Python

Assessment

Quiz

Computers

9th Grade

Medium

Created by

William Lugo

Used 8+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

You can use the sort() method to add all the elements of a list.

True

False

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

What will be the output of this snippet .

[1, 2, 3, 4, 5]

[5, 3, 1, 2, 4]

[5, 3, 1, 2, 4]

[1, 2, 3, 4, 5]

[1, 2, 3, 4, 5]

[5, 3, 1, 2, 4]

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

The list method called reverse(), can be used to reverse the order of the values in a list.

True

False

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

What will be the output of the snippet?

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

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

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

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

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

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

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

What is the output of the following snippet?

[ a, c, b]

[ ]

['Chispi', 'Mauro', 'Yuki']

NameError: name 'Mauro' is not defined

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

What is the output of the following snippet?

[ 'A',' ', 'C', 'B',]

[' ', 'C', 'B', 'A']

['A', 'B', 'C', ' ']

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

If you have a list l1, then the following assignment: l2 = l1 does not make a copy of the l1 list, but makes the variables l1 and l2 point to one and the same list in memory.

True

False

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?