Python revision

Python revision

10th Grade

15 Qs

quiz-placeholder

Similar activities

Python function output based KVRDSO lucknow

Python function output based KVRDSO lucknow

11th - 12th Grade

11 Qs

Procedures and Functions

Procedures and Functions

10th Grade

20 Qs

Python Programming II CSE A

Python Programming II CSE A

12th Grade - University

20 Qs

J277 - 2.2 - Functions in Python

J277 - 2.2 - Functions in Python

10th Grade - University

10 Qs

Quiz Pemrograman Phyton

Quiz Pemrograman Phyton

9th - 12th Grade

20 Qs

PCEP Section 4B: the function and its environment

PCEP Section 4B: the function and its environment

12th Grade

10 Qs

Python_4

Python_4

9th - 12th Grade

12 Qs

Python Programming: Functions and Procedures

Python Programming: Functions and Procedures

9th - 11th Grade

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