7. Dictionaries - Data Structures

7. Dictionaries - Data Structures

6th - 8th Grade

15 Qs

quiz-placeholder

Similar activities

Introduction to Networks

Introduction to Networks

6th - 8th Grade

14 Qs

Lessons 1-5 Test Review

Lessons 1-5 Test Review

8th Grade

17 Qs

G8_Ch2_Windows Movie Maker

G8_Ch2_Windows Movie Maker

8th Grade

15 Qs

Revision quiz on Access

Revision quiz on Access

8th Grade

12 Qs

IT quiz class 7 E-commerce and blogging

IT quiz class 7 E-commerce and blogging

6th - 7th Grade

15 Qs

Key Concepts 1

Key Concepts 1

5th - 7th Grade

11 Qs

21 Things Basics

21 Things Basics

7th - 8th Grade

10 Qs

Cyber Security Homework 1

Cyber Security Homework 1

7th - 9th Grade

15 Qs

7. Dictionaries - Data Structures

7. Dictionaries - Data Structures

Assessment

Quiz

Computers

6th - 8th Grade

Practice Problem

Medium

Created by

Robotic Schools

Used 30+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

How do you create an empty dictionary to store information about a student in Python?

student_info = []
student_info = {}
student_info = ()
student_info = set()

2.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Which method is used to get all course names (keys) in a dictionary storing course details?

dictionary.getKeys()
dictionary.allKeys()
dictionary.keys()
dictionary.retrieveKeys()

3.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

What will be the output of the following code?

85

90

Bob

88

4.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Which method is used to add a new course with its grade to an existing student dictionary?

add()

insert()

append()

update()

5.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

What is the output of the following code?

{"Alice": 85, "Bob": 90, "Charlie": 88}

{"Alice": 85, "Charlie": 88}

{"Bob": 90, "Alice": 85, "Charlie": 88}

KeyError

6.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

What will be the output of the following code?

{"name": "Alice", "age": 30, "department": "HR"}

{"name": "Alice", "age": 31, "department": "HR"}

KeyError

{"name": "Alice", "age": 30, "department": "HR", "age": 31}

7.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

Media Image

What is the output of the following code?

{"Math": 95, "English": 88, "Science": 92, "History": 85, "Geography": 90}

{"Math": 95, "English": 88, "Science": 92, "History": 85}

{"Math": 95, "English": 88, "Science": 92}

Error

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?