Python 3
Quiz
•
Computers
•
9th Grade
•
Hard
Sofia Mesa Giner
Used 32+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
18 questions
Seri ekran,potansiyometre,servo
Quiz
•
9th - 12th Grade
18 questions
Python 1 модуль
Quiz
•
1st - 10th Grade
13 questions
Y9 Homework 1: Python Revisited 1
Quiz
•
9th Grade
19 questions
AQA GCSE Computer Science - 3.1.3 Binary Search
Quiz
•
8th - 10th Grade
21 questions
Python бағдарламау тілінен тест сұрақтары
Quiz
•
9th - 12th Grade
20 questions
Chapter 6 Cascading Style Sheets
Quiz
•
9th - 12th Grade
20 questions
Python básico
Quiz
•
9th - 12th Grade
20 questions
Ingots - Data storage
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
15 questions
Halloween Trivia
Quiz
•
9th Grade
