Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : c - LOOPING STATEMENTS
LOOPING STATEMENTS
00:00:00
English
Hindi
Question No# :
01
out of 19
Which of the following is the correct syntax for a for loop in C?
Which of the following is the correct syntax for a for loop in C?
A.
for (int i = 0; i < 10; i++)
for (int i = 0; i < 10; i++)
B.
for i = 0 to 10 step 1
for i = 0 to 10 step 1
C.
for (i = 0; i < 10; i++)
for (i = 0; i < 10; i++)
D.
for (i < 10; i++)
for (i < 10; i++)
Question No# :
02
out of 19
Which loop is most suitable to first perform the operation and then test the condition?
पहले ऑपरेशन करने और फिर स्थिति का परीक्षण करने के लिए कौन सा लूप सबसे उपयुक्त है?
A.
For loop
B.
While loop
C.
do-while loop
D.
None of the mentioned
Question No# :
03
out of 19
The do..while looping statement
The do..while looping statement
A.
is executed only once if the conditions is true
is executed only once if the conditions is true
B.
is also known as entry-controlled loop
is also known as entry-controlled loop
C.
is executed at least once if the conditions is false
is executed at least once if the conditions is false
D.
the unconditional loop
the unconditional loop
Question No# :
04
out of 19
Which of the following loops in C is guaranteed to execute at least once?
C में निम्नलिखित में से कौन सा लूप कम से कम एक बार निष्पादित होने की गारंटी है?
A.
for loop
for loop
B.
while loop
while loop
C.
do-while loop
do-while loop
D.
None of the above
None of the above
Question No# :
05
out of 19
Which code will print k 20 times?
20 बार कौन सा कोड k प्रिंट होगा?
A.
for (i=1; i < 20; i++) printf ("k");
for (i=1; i < 20; i++) printf (“k”);
B.
for (i=1; i = 20; i++) printf ("k");
for (i=1; i = 20; i++) printf (“k”);
C.
for (i=0; i < 20; i++) printf ("k");
for (i=0; i < 20; i++) printf (“k”);
D.
for (i=0; i <= 20; i++) printf ("k");
for (i=0; i <= 20; i++) printf (“k”);
Question No# :
06
out of 19
<p>How many times will the following loop execute?</p><pre><span style="font-size: 14px;">int j;<br></span><span style="font-size: 14px;">for(j = 1; j <= 10; j = j-1)<br></span><span style="font-size: 14px;">printf("INFOMAX");</span></pre>
<br>
A.
Forever
Forever
B.
Never
Never
C.
0
0
D.
10
10
Question No# :
07
out of 19
The loop in which the statements within the loop are executed at least once is called
The loop in which the statements within the loop are executed at least once is called
A.
do-while
B.
while
C.
for
D.
goto
Question No# :
08
out of 19
Which of the following loops in C is guaranteed to execute at least once?
Which of the following loops in C is guaranteed to execute at least once?
A.
for loop
for loop
B.
while loop
while loop
C.
do-while loop
do-while loop
D.
none of the above
none of the above
Question No# :
09
out of 19
<p>What is the final value of x when the code is executed?</p><pre><span style="font-size: 14px;">int x; <br></span><span style="font-size: 14px;">for(x=0; x<10; x++) <br></span><span style="font-size: 14px;">{} </span></pre>
<br>
A.
10
10
B.
9
9
C.
0
0
D.
1
1
Question No# :
10
out of 19
Which of the following is an exit controlled loop?
Which of the following is an exit controlled loop?
A.
for loop
for loop
B.
while loop
while loop
C.
do-while loop
do-while loop
D.
None of the above
None of the above
Question No# :
11
out of 19
How many times is a do while loop guaranteed to loop?
How many times is a do while loop guaranteed to loop?
A.
0
B.
Infinitely
C.
1
D.
Variable
Question No# :
12
out of 19
The do…while looping statement
The do…while looping statement
A.
is executed only once if the condition is true.
केवल एक बार निष्पादित किया जाता है यदि स्थिति सत्य है।
B.
is also known as entry-controlled loop.
को प्रवेश-नियंत्रित लूप के रूप में भी जाना जाता है।
C.
is executed at least once if the condition is false.
यदि हालत झूठी है तो कम से कम एक बार निष्पादित किया जाता है।
D.
is unconditional looping statement..
बिना शर्त लूपिंग स्टेटमेंट है
Question No# :
13
out of 19
Which of the following is not an iterative statement?
निम्नलिखित में से कौन एक पुनरावृत्त कथन नहीं है?
A.
switch
switch
B.
while
while
C.
do while
do while
D.
for
for
Question No# :
14
out of 19
<p>What will be the output of following program?</p> <pre>int main() <br>{<br> <span style="white-space:pre"> </span>for(int c=1;c<5;++c); <br><span style="white-space:pre"> </span>printf(“%d”,c); <br>}</pre>
<p><br></p>
A.
1
1
B.
5
5
C.
6
6
D.
12345
12345
Question No# :
15
out of 19
How many times is a do while loop guaranteed to loop?
लूप को लूप की गारंटी देते समय कितनी बार किया जाता है?
A.
0
0
B.
Infinitely
असीम
C.
1
1
D.
Variable
Variable
Question No# :
16
out of 19
Which is not a loop structure?
Which is not a loop structure?
A.
For
B.
Do while
C.
do For
D.
While
Question No# :
17
out of 19
A programming construct in which a set of statement in a computer program can be executed repeatedly.
एक प्रोग्रामिंग निर्माण जिसमें कंप्यूटर प्रोग्राम में स्टेटमेंट का एक सेट बार-बार निष्पादित किया जा सकता है।
A.
Loop statement
Loop statement
B.
Conditional Statement
Conditional Statement
C.
Block Statement
Block Statement
D.
All of the above
All of the above
Question No# :
18
out of 19
For loop in a C program, if the condition is missing?
For loop in a C program, if the condition is missing?
A.
it is assumed to be present and taken to be false
B.
it is assumed to be present and taken to the true
C.
it result in a syntax error
D.
execution will be terminated abruptly
Question No# :
19
out of 19
The following code ‘for(;;)’ represents an infinite loop. It can be terminated by.
निम्नलिखित कोड for(;;) के लिए अनंत लूप का प्रतिनिधित्व करता है। द्वारा इसे समाप्त किया जा सकता है।
A.
break
break
B.
exit(0)
exit(0)
C.
abort()
abort()
D.
All of the mentioned
All of the mentioned
Latest Current Affairs 2025
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2025
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz