Python Dictionary

Python Dictionary

11th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Arduino_Quiz

Arduino_Quiz

12th Grade

20 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

History of the computer

History of the computer

12th Grade

20 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

EmTech Q2 Post Test 5

EmTech Q2 Post Test 5

11th Grade

15 Qs

Django-quiz

Django-quiz

5th Grade - University

20 Qs

Module 3 Online Navigation

Module 3 Online Navigation

11th Grade

15 Qs

J808 LO1 and LO2 planning project keywords / terms

J808 LO1 and LO2 planning project keywords / terms

9th - 11th Grade

15 Qs

Python Dictionary

Python Dictionary

Assessment

Quiz

Computers

11th - 12th Grade

Practice Problem

Medium

Created by

Sreelekshmi S

Used 77+ 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

30 sec • 1 pt

What is the output of the following code

dict1 = {"key1":1, "key2":2}

dict2 = {"key2":2, "key1":1}

print(dict1 == dict2)

True

False

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Select correct ways to create an empty dictionary

sampleDict = {}

sampleDict = dict()

sampleDict = dict{}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Please select all correct ways to empty the following dictionary

student = {

"name": "Emma",

"class": 9,

"marks": 75

}

del student

del student[0:2]

student.clear()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Items are accessed by their position in a dictionary

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The code snippet above outputs

error

None

NaN

-1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dictionary keys must be immutable

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, Dictionaries are immutable

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

Already have an account?