Python revision

Python revision

10th Grade

15 Qs

quiz-placeholder

Similar activities

JavaScript

JavaScript

University

13 Qs

Python Review

Python Review

11th Grade

11 Qs

PYTHON FUNCTION

PYTHON FUNCTION

University

20 Qs

Functions in Python

Functions in Python

9th - 12th Grade

16 Qs

PYTHON PROGRAMMING Q4 FUNCTIONS

PYTHON PROGRAMMING Q4 FUNCTIONS

University

20 Qs

Python_4

Python_4

9th - 12th Grade

12 Qs

Python

Python

11th Grade

20 Qs

Python Quiz

Python Quiz

12th Grade

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