7. Dictionaries - Data Structures

7. Dictionaries - Data Structures

6th - 8th Grade

15 Qs

quiz-placeholder

Similar activities

Modern Technologies- BTEC

Modern Technologies- BTEC

2nd - 8th Grade

20 Qs

LEDs on micro:bit

LEDs on micro:bit

8th Grade

15 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Python List

Python List

4th Grade - University

15 Qs

Latihan Quiz Ozobot 8

Latihan Quiz Ozobot 8

8th Grade

20 Qs

Sumatif Harian 3

Sumatif Harian 3

7th Grade

12 Qs

DATA ANALYTICS USING EXCEL

DATA ANALYTICS USING EXCEL

7th Grade

15 Qs

HEALTH AND SAFETY 9

HEALTH AND SAFETY 9

7th - 9th Grade

11 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?