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
C# Loops (All)

Quiz
•
9th - 12th Grade
20 questions
Basic Python

Quiz
•
10th - 12th Grade
20 questions
Loops

Quiz
•
1st - 12th Grade
20 questions
8525 AQA GCSE 3.2.6 Data Structures

Quiz
•
10th Grade
15 questions
Iteration

Quiz
•
9th - 12th Grade
16 questions
For and While Loops in Python

Quiz
•
9th - 12th Grade
20 questions
Java Conditional Constructs

Quiz
•
9th - 10th Grade
15 questions
Intro to Java Loops

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade