Python revision

Python revision

10th Grade

15 Qs

quiz-placeholder

Similar activities

Python Programming

Python Programming

University

20 Qs

Py-Hackathon - Week 2 - Day 2

Py-Hackathon - Week 2 - Day 2

University

15 Qs

Функции def

Функции def

9th - 12th Grade

10 Qs

Python Round 2

Python Round 2

University

10 Qs

XII_REVISION FOR FIRST UNIT TEST

XII_REVISION FOR FIRST UNIT TEST

12th Grade

15 Qs

Python Basics 2

Python Basics 2

9th - 12th Grade

20 Qs

Get started with python

Get started with python

University

19 Qs

Python (Objects)

Python (Objects)

6th - 12th Grade

18 Qs

Python revision

Python revision

Assessment

Quiz

Computers

10th Grade

Easy

Created by

Sherihan Awni

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of this code?

1

2

"a"

Error

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following creates a dictionary?

{"apple", 1}

["apple": 1]

{"apple": 1}

(apple:1)

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

How do you add a new key-value pair to a dictionary?

my_dict.add("color", "blue")

my_dict["color"] = "blue"

my_dict("color") = "blue"

my_dict += {"color": "blue"}

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will this code print?

1

2

10

20

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the result of this code?

5

7

3

2

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Which line causes an error?

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

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

print(d["c"])

None

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What does this function return?

None

Hi!

greet

Error

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?