Python Quiz: Lists, Dicts, Sets, and More

Python Quiz: Lists, Dicts, Sets, and More

2nd Grade

50 Qs

quiz-placeholder

Similar activities

GCSE Python Legends

GCSE Python Legends

1st - 12th Grade

45 Qs

QUIZZ KJD - SISTEM OPERASI

QUIZZ KJD - SISTEM OPERASI

KG - Professional Development

50 Qs

UAS Administrasi Sistem Jaringan XII

UAS Administrasi Sistem Jaringan XII

1st - 3rd Grade

50 Qs

Cuestionario - TEMA 7 (SOM). Sistema operativo Linux.

Cuestionario - TEMA 7 (SOM). Sistema operativo Linux.

KG - Professional Development

49 Qs

UTK - drukarki , skanery , plotery

UTK - drukarki , skanery , plotery

1st Grade - Professional Development

50 Qs

Computer devices

Computer devices

1st - 10th Grade

50 Qs

مراجعة لصف اول حاسوب ف2

مراجعة لصف اول حاسوب ف2

1st - 4th Grade

45 Qs

Quiz Latihan Soal-Soal UTS Keamanan Jaringan

Quiz Latihan Soal-Soal UTS Keamanan Jaringan

KG - University

50 Qs

Python Quiz: Lists, Dicts, Sets, and More

Python Quiz: Lists, Dicts, Sets, and More

Assessment

Quiz

Computers

2nd Grade

Practice Problem

Hard

Created by

Beebi Naseeba

FREE Resource

AI

Enhance your content in a minute

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

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print([1, 2, 3] + [4, 5, 6])?

[1, 2, 3, 4, 5, 6]

[5, 7, 9]

[4, 5, 6, 1, 2, 3]

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does list1.append(5) do?

Adds 5 to the end of list1

Inserts 5 at index 0

Deletes index 5

Raises an error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(len([1, [2, 3], 4]))?

3

4

5

2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you remove an element from a list by value?

list.remove(value)

list.delete(value)

list.pop(value)

del list[value]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of list1 = [1, 2, 3] and list1 * 2?

[1, 2, 3, 1, 2, 3]

[1, 2, 3, 2]

[1, 2, 3, 1]

[2, 4, 6]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of dict1 = {'a':1, 'b':2}; print(dict1['a'])?

'a'

1

2

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you get all the keys of a dictionary?

dict.keys()

dict.values()

dict.items()

dict.get()

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?