Intermediate python

Intermediate python

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

bts

bts

KG - Professional Development

13 Qs

MID SEMESTER TIK 9 OKT 2020

MID SEMESTER TIK 9 OKT 2020

12th Grade

10 Qs

HTML Fundamentals

HTML Fundamentals

10th - 12th Grade

14 Qs

Tin học 10 _ Bài 16 _Định dạng văn bản

Tin học 10 _ Bài 16 _Định dạng văn bản

10th - 12th Grade

10 Qs

Bài 13-Bổ sung các đối tượng đồ hoạ

Bài 13-Bổ sung các đối tượng đồ hoạ

10th Grade

10 Qs

ICT 9 Quiz 1

ICT 9 Quiz 1

9th Grade

10 Qs

loop while/do while

loop while/do while

7th - 12th Grade

10 Qs

Chapter 6 Part 2 - 4

Chapter 6 Part 2 - 4

11th - 12th Grade

11 Qs

Intermediate python

Intermediate python

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Regensu Live

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dictionary = {“name”:”Max”,”age”:27}

print(dictionary)

What is the output?

{‘name’:’Max’,’age’:27}

{name:Max,age:27}

‘name’:’Max’,’age’:27

name:Max,age:27

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the ways to make a dictionary?

A = {“name”:Max}

A = dict(name=Max

A = [“name”:Max]

A = [name = Max]

A = (“name”:”Max”)

A = dict[name = Max

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a dictionary?

Items with Key-Value Pairs

Immutable list

Mutable list

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dictionary = {“name”:”Max”}

Value = dictionary[“name”]

print(Value)

What is the output?

Max

“Max”

{‘Max’}

[Max]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

D = {“name”:”Max”}

D[“name”] = “Sam”

Print(D)

What is the output?

{‘name’:’Sam’}

Sam

[‘name’]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you add something in a dictionary?

Dictionary[“age”] = 3

Dictionary.add(“age”: 3)

Dictionary.update(“age”:3)

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What are the ways to delete an item in a dictionary?

del D[“name”]

D.remove[name]

D.pop(“name”)

D.delete(“name”)

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?