Chapter 5 loops structure

Quiz
•
Computers
•
10th Grade
•
Hard
Muhammad idrees Dar
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In the following for loop construct ( for(x=0; x>10; x++) ) which statement is executed only once ?
(x=0; x>10;) only
X++
x=0
X>10
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which loop is guaranteed to execute at least one time?
For loop
While loop
Do while loop
All of these
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The output of the following code will be:
main()
{
for (int i=0; i<2; i++)
{
for (int j=0; j<4; j++)
{
printf("%d, %d\n",i ,j);
}
}
}
0, 0
0, 0
0, 0
0, 0
1, 1
1, 1
1, 1
1, 1
0, 0
0, 1
0, 2
0, 3
1, 0
1, 1
1, 2
1, 3
0, 1
0, 1
0, 1
0, 1
1, 0
1, 0
1, 0
1, 0
0, 1
0, 1
0, 2
0, 4
1, 0
1, 1
1, 2
1, 4
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
It is compulsory to add semicolon at the end of do...while loop.
True
False
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
It is compulsory to add semicolon at the end of do...while loop.
True
False
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In do while loop , the test expression is written:
beginning of loop
outside the main function
Middle of the loop
End of the loop
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In do while loop , the test expression is written:
beginning of loop
outside the main function
Middle of the loop
End of the loop
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Variables and Loops Review

Quiz
•
9th - 12th Grade
21 questions
CodeHS 3.1 Boolean Expressions-4.2 For Loops Review

Quiz
•
9th - 12th Grade
23 questions
Programming with Karel Quiz

Quiz
•
9th - 12th Grade
23 questions
Java Unit 1 - Quiz Review

Quiz
•
10th Grade
15 questions
LEGO Ev3 Robotics

Quiz
•
5th - 12th Grade
25 questions
Algorithms - python (GCSE)

Quiz
•
10th - 12th Grade
20 questions
Programming

Quiz
•
9th - 11th Grade
20 questions
Java For Loop basic syntax

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade