Python revision

Python revision

10th Grade

15 Qs

quiz-placeholder

Similar activities

Cuestionario Dev C++ 1000

Cuestionario Dev C++ 1000

10th Grade

10 Qs

Cybernaut Analysis

Cybernaut Analysis

University

15 Qs

Тест з програмування на Python

Тест з програмування на Python

12th Grade - University

15 Qs

Evaluasi PHP 4

Evaluasi PHP 4

10th Grade

10 Qs

Python function output based KVRDSO lucknow

Python function output based KVRDSO lucknow

11th - 12th Grade

11 Qs

Python_4

Python_4

9th - 12th Grade

12 Qs

Python Dictionaries

Python Dictionaries

University

10 Qs

l.7. PYTHON FUNCTIONS

l.7. PYTHON FUNCTIONS

12th Grade

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