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
What will be the output of the following code?
🌍🌎
🌍
🌍🌏
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 Wayground
20 questions
Grade 7 Python Programming Quiz

Quiz
•
7th Grade - University
15 questions
Python Basics Quiz

Quiz
•
9th - 12th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
20 questions
Python Basics Review (TSK)

Quiz
•
9th - 12th Grade
16 questions
Python basics

Quiz
•
9th - 12th Grade
20 questions
Python Basics (CodeHS)

Quiz
•
7th - 12th Grade
12 questions
Python

Quiz
•
7th - 9th Grade
16 questions
For and While Loops in Python

Quiz
•
9th - 12th Grade
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
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade