
Python 3
Authored by Sofia Mesa Giner
Computers
9th Grade
Used 32+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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?
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
21 questions
Computer System
Quiz
β’
9th - 11th Grade
14 questions
CodeHS - Java - Karel - Sec1-4
Quiz
β’
8th - 10th Grade
20 questions
Jaringan Komputer
Quiz
β’
9th - 12th Grade
13 questions
ICT and Retail Industry
Quiz
β’
8th - 12th Grade
20 questions
Alles ΓΌber YouTube
Quiz
β’
5th Grade - University
15 questions
Computer Systems
Quiz
β’
9th - 12th Grade
17 questions
Binary Representation
Quiz
β’
9th - 11th Grade
17 questions
Security and Ethics
Quiz
β’
9th - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
β’
KG - University
20 questions
Comparing Fractions
Quiz
β’
4th Grade
15 questions
Fractions on a Number Line
Quiz
β’
3rd Grade
20 questions
Equivalent Fractions
Quiz
β’
3rd Grade
25 questions
Multiplication Facts
Quiz
β’
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
β’
6th - 8th Grade
22 questions
fractions
Quiz
β’
3rd Grade
7 questions
The Story of Books
Quiz
β’
6th - 8th Grade