
chapter 3 - loop
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Medium
MAHANI BINTI ZAKARIA (POLIMAS)
Used 15+ times
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output?
Less than 5
Greater than 5
Nothing
Error
Answer explanation
num is 10, which is greater than 5. So, the condition is true, and it will print "Greater than 5".
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be printed?
Adult
Teenager
Nothing
Error
Answer explanation
age is 16, which is less than 18. So, it goes to the else part and prints "Teenager"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
A
Pass
Fail
Error
Answer explanation
mark is 75. First if (mark >= 50) is true, but second if (mark >= 80) is false. So, it prints "Pass".
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
1 2 3
1 2 3 4
2 3 4
Infinite loop
Answer explanation
The loop runs while i < 4, and i is increased each time. It prints 1, 2, 3 and stops.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
0 1 2
1 2 3
3 2 1
2 3 4
Answer explanation
Loop starts at 1 and runs while i <= 3. So it prints 1, 2, and 3.
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
10 questions
Tin 9 Bài 8. Hàm SUMIF
Quiz
•
9th Grade - University
10 questions
NGN - opakovanie 3. týždeň
Quiz
•
University
10 questions
Quiz Kreativitas dan Inovasi
Quiz
•
University
8 questions
Bilangan Binner
Quiz
•
8th Grade - University
10 questions
Diagnóstico de Algoritmos y Fundamentos de Programacion
Quiz
•
University
10 questions
Quiz Microsoft Excel #1
Quiz
•
10th Grade - University
10 questions
Berpikir komputasional
Quiz
•
7th Grade - University
10 questions
PDP LAN RI
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
