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
15 questions
Kuizi 14 - Web

Quiz
•
10th Grade - University
19 questions
MP3: Practice Test 1

Quiz
•
9th - 12th Grade
20 questions
Python Next Steps Homework Quiz

Quiz
•
8th - 10th Grade
18 questions
National 4/5 Programming (VB)

Quiz
•
9th - 11th Grade
15 questions
JavaScript Control Structures Review

Quiz
•
10th - 12th Grade
18 questions
FOR and WHILE loop in Python

Quiz
•
9th - 12th Grade
18 questions
Foundations of Programming

Quiz
•
9th - 10th Grade
20 questions
AQA GCSE Computer Science - 3.2.2 Programming Concepts

Quiz
•
8th - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade