What is the output of this code?
Python revision

Quiz
•
Computers
•
10th Grade
•
Easy
Sherihan Awni
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
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
What will this code print?
1
2
10
20
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the result of this code?
5
7
3
2
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
What does this function return?
None
Hi!
greet
Error
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
ONE 6th FORM Introduction to Python Basics

Quiz
•
11th Grade
16 questions
Python programming

Quiz
•
6th - 12th Grade
20 questions
Surprise Quiz !!!!

Quiz
•
10th Grade
10 questions
GDScript Quiz - Lesson 2 - Variables & Functions

Quiz
•
12th Grade
14 questions
Section 4A: Decompose the code using functions

Quiz
•
12th Grade
19 questions
python

Quiz
•
University
20 questions
function in python

Quiz
•
12th Grade
20 questions
Python Functions and File Operations Quiz

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University