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
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
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 Wayground
10 questions
Python Syntax Quiz

Quiz
•
12th Grade
12 questions
Python Functions Quiz

Quiz
•
12th Grade
10 questions
TIU Quiz-14

Quiz
•
University
10 questions
GDScript Quiz - Lesson 2 - Variables & Functions

Quiz
•
12th Grade
12 questions
PHP & MySQL - 14 - Variable Scope

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

Quiz
•
10th Grade
10 questions
Python Basics: Dictionaries and Strings

Quiz
•
University - Professi...
12 questions
Swift Fundamentals

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade