
chapter 3 - loop

Quiz
•
Information Technology (IT)
•
University
•
Medium
MAHANI BINTI ZAKARIA (POLIMAS)
Used 3+ times
FREE Resource
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.
Similar Resources on Wayground
9 questions
Quiz 2 Control Flow and Functions

Quiz
•
University
10 questions
ASESMEN DIAGNOSTIK INFORMATIKA X DPB 2

Quiz
•
10th Grade - University
10 questions
Berpikir Komputasional (BK)

Quiz
•
8th Grade - University
8 questions
Pre Quiz CIE Activity-01- Flipped Classroom

Quiz
•
University
10 questions
Sequencing Blockly - 2

Quiz
•
7th Grade - University
10 questions
Week 2 Class

Quiz
•
University
10 questions
Chapter Quiz

Quiz
•
University
10 questions
23CSR306_Unit I

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University