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
20 questions
PYTHON PROGRAMMING Q4 FUNCTIONS

Quiz
•
University
18 questions
CSE 102 Exam 3 Practice

Quiz
•
University
12 questions
Python_4

Quiz
•
9th - 12th Grade
11 questions
Python Review

Quiz
•
11th Grade
11 questions
Python function output based KVRDSO lucknow

Quiz
•
11th - 12th Grade
10 questions
Python debugging

Quiz
•
University
20 questions
PYTHON FUNCTION

Quiz
•
University
20 questions
AI BootCamp: 2024 Edition- Session 1

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade