Search Header Logo

DATA ANALYSIS ALTSCHOOL CIRCLE 7 QUIZ 30/8/2025

Authored by adediji lekan

Professional Development

Professional Development

Used 3+ times

DATA ANALYSIS ALTSCHOOL CIRCLE 7 QUIZ 30/8/2025
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following creates a dictionary in Python?

dict = (1, 2, 3)

dict = [1: "one", 2: "two"]

dict = {1: "one", 2: "two"}

dict = 1 => "one", 2 => "two"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the value of key "name" in student = {"name": "John", "age": 20}?

student[0]

student.get("name")

student["John"]

student("name")

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement correctly adds a new key-value pair to a dictionary?

d.append("city", "Lagos")

d.insert("city", "Lagos")

d["city"] = "Lagos"

add(d, "city", "Lagos")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will len({"a":1, "b":2, "c":3}) return?

6

3

2

1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if you use a mutable type (like list) as a dictionary key?

Works fine

B. Returns True

Causes an error

Stores as string automatically

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access "Maths" in student = {"name":"John","grades":{"Maths":90,"English":80}}?

student["Maths"]

student["grades"]["Maths"]

student.get("Maths")

student["John"]["Maths"]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents a nested dictionary?

{1:2, 3:4}

{"a":{"x":1,"y":2}}

{"a":1, "b":2}

[{"a":1},{"b":2}]

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?

Discover more resources for Professional Development