What is the output of the below code?
i = 3
while (i>=0):
print (i)
i = i -1
Grade 12 -CE-Term 2-2023
Quiz
•
Computers
•
12th Grade
•
Medium
zelealem haile
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the output of the below code?
i = 3
while (i>=0):
print (i)
i = i -1
3 2 1 0
321
210
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The continue statement in Python returns the control to the beginning of the while loop.
True
False
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
The pass statement is a null operation; noting happens when it executes
True
False
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output
for l in 'Jhon':
if l == 'o':
pass
print(l)
J
h
n
J
h
o
n
o
h
n
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
A loop becomes infinite loop if a condition never becomes true.
True
False
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
______________ is a network port to connect Raspberry Pi to the internet.
HDMI port
Ethernet port
USB port
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
If the else statement is used with a while loop, the else statement is executed when the condition becomes true.
True
False
15 questions
ASAS GANJIL XII 2024
Quiz
•
12th Grade
20 questions
General ICT Questions (Part 2)
Quiz
•
5th - 12th Grade
16 questions
Raspberry Pi Pico Quiz
Quiz
•
9th - 12th Grade
20 questions
Soal Pemahaman Bab 2
Quiz
•
12th Grade
15 questions
Kuis Single Board Computer (SBC)
Quiz
•
12th Grade
20 questions
Basic Arduino Programming
Quiz
•
9th - 12th Grade
21 questions
Grade 12 - Term 2 - Midterm - 2022/2023
Quiz
•
12th Grade
20 questions
Computer Basics
Quiz
•
9th - 12th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade
65 questions
MegaQuiz v2 2025
Quiz
•
9th - 12th Grade
10 questions
GPA Lesson
Lesson
•
9th - 12th Grade
15 questions
SMART Goals
Quiz
•
8th - 12th Grade
45 questions
Week 3.5 Review: Set 1
Quiz
•
9th - 12th Grade