Chapter 5 loops structure
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Muhammad idrees Dar
Used 1+ times
FREE Resource
Enhance your content in a minute
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
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
18 questions
Eletricidade e Eletrônica Básica - Aula 4
Quiz
•
10th Grade
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
20 questions
Network topologies
Quiz
•
8th Grade - University
15 questions
Quiz 1
Quiz
•
1st - 12th Grade
15 questions
Data Security Worksheet
Quiz
•
10th Grade - University
15 questions
LATIHAN SOAL PEMROGRAMAN
Quiz
•
9th Grade - University
20 questions
2324tx6
Quiz
•
9th - 12th Grade
20 questions
QUIZ BAB 4: SISTEM OPERASI
Quiz
•
8th Grade - 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
