Quiz - Loops (for, while, do while, break, continue and goto) in C Programming

Loops can repeat a part of a program
True
False
Select all the true statement about while loop
While loop guaranteed to loop one time
The statements within the while loop would keep on getting executed till the condition being tested remains true.
While loop easy to use over for loop
While loop uses only in file handling
Each pass through a loop is called a/an
Loop
Pass
Iteration
None of these
Which is not a loop structure in C Language
For
Foreach
Do while
While
Which one is the correct for loop control statement parts sequences:
For ( test condition; initialization; run every time command )
For ( initialization; test condition; run every time command )
For ( test condition; initialization; run every time command )
For ( initialization; run every time command; test condition )
When does the code block following while(x<10) execute?
When x is less than ten
When x is greater than ten
When x is less than and equal to ten
When x is equal to ten
How many times is a do while loop guaranteed to loop?
0
1
Infinitely
Can't say
The while and for loops test the termination condition at the top. But the do-while, tests at the bottom after making each pass through the loop body
True
False
We can't use "break" statement inside loops to terminate a loop and exit it (with a specific condition).
True
False
Continue statement can't skips the rest of current iteration of the loop and returns to starting point of the loop.
True
False
By uses of goto, programs become unreliable, unreadable, and hard to debug.
True
False
What is the final value of x when the code int x; for(x=0; x<=100; x++) {} is run?
100
101
99
None of these
Labels uses to branch goto statement
True
False
{"name":"Quiz - Loops (for, while, do while, break, continue and goto) in C Programming", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Loops can repeat a part of a program, Select all the true statement about while loop, Each pass through a loop is called a\/an","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker