Dictionary in Python

Dictionary in Python

11th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

QUIZ 4 EMPOWERMENT TECHNOLOGY

QUIZ 4 EMPOWERMENT TECHNOLOGY

11th Grade

15 Qs

Python Basics - Quiz

Python Basics - Quiz

8th - 11th Grade

10 Qs

File Types

File Types

KG - Professional Development

12 Qs

MTA Lesson 1 Part 1

MTA Lesson 1 Part 1

9th - 12th Grade

15 Qs

CompTIA A+ U6

CompTIA A+ U6

9th Grade - Professional Development

14 Qs

DM Online Advertising

DM Online Advertising

12th Grade

15 Qs

Word Lesson 9

Word Lesson 9

9th - 12th Grade

13 Qs

Tuan 3 - Python

Tuan 3 - Python

KG - Professional Development

10 Qs

Dictionary in Python

Dictionary in Python

Assessment

Quiz

Computers

11th - 12th Grade

Practice Problem

Hard

Created by

Suman Joshi

Used 501+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 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

45 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

1 min • 1 pt

Items are accessed by their position in a dictionary

True

False

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Dictionary keys must be immutable

True

False

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In Python, Dictionaries are immutable

True

False

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

________________method removes all items from the particular dictionary.

clear( )

pop( )

del ( )

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?