What will be the output of the following code?
Python 3

Quiz
•
Computers
•
9th Grade
•
Hard

Sofia Mesa Giner
Used 32+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
🌍🌎
🌍
🌍🌏
No output
Answer explanation
The loop prints emojis until it encounters "🌎", at which point the break statement stops the loop. Thus, only "🌍" is printed.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the printed output?
No output
🔔
🔔🛎
🛎
Answer explanation
The while loop runs as long as count is less than 5.
It prints "🔔" only when count is 3.
After the loop completes its iterations, the else block executes, printing "🛎".
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of the following code?
🚀🚀🚀🚀
✈️✈️🚀🚀
✈️✈️✈️✈️
✈️✈️🚀✈️
Answer explanation
The loop prints "✈️" for every iteration, except when num is 2. For that iteration, it prints "🚀" and then the continue statement skips the remaining code in the loop, so "✈️" is not printed.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following lines of code would make the statement “Hello World” repeat 10 times?
print('Hello World' x 10)
print('Hello World' * 10)
print('Hello World' + 10)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following lines of code would output the statement "Python programming is easy!"?
print("Python is easy!")
print("Programming in Python is easy!")
print("Python programming is easy!")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following code snippets correctly stores the phrase "Hello World" in a variable called a and then prints it?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following code snippets correctly stores the integer 256 in a variable called points and then prints it?
Create a free account and access millions of resources
Similar Resources on Quizizz
17 questions
Python - Quiz

Quiz
•
9th - 11th Grade
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
16 questions
Python Beginner

Quiz
•
9th - 10th Grade
20 questions
Python First Steps Homework Quiz

Quiz
•
7th - 9th Grade
12 questions
Java Strings

Quiz
•
9th - 12th Grade
20 questions
Python Recap

Quiz
•
7th Grade - University
18 questions
Computer Science (Python)

Quiz
•
9th Grade
20 questions
Python 1

Quiz
•
7th - 9th Grade
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
30 questions
Linear Inequalities

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

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