Quiz on Continue Statement in C Language

Welcome to your Quiz on Continue Statement in C Langauge

1.) Which of the following statement can be used to immediately exit from the paragraph?

Add description here!

2.) Which of the following statement skip the execution of the remaining part of the loop?

3.) Which keyword is used to come out of a loop only for that iteration?

4.) What is the value of a in this code?

int main()
{
int a=0, i=0, b;
for(i=0; i<5; i++)
{
if(i == 3)
continue;
}
}

5.) Which Keyword is used to come out of a loop only for that iteration?

6.) What is the output of C Program ?

int main()
{
int a=14;
while(a<20)
{
++a;
if(a>=16 && a<=18)
{
continue;
}
printf("%d", a);
}
return 0;
}

7.) How many times "Jaipur" is printed?

#include
int main()
{
int i = -5;
while(i >= 5)
{
if(i >= 0)
break;
else
{
i++;
continue;
}
printf("Jaipur");
}
return 0;
}

8.) What's going to happen when we compile and run the following C program?

#include
int main()
{
int j=0;
for( ; j<10 ;)
{
if(j<10)
printf("nkgacademy", j++);
else
continue;
printf("Thanks");
}
return 0;
}

9.) The continue statement cannot be used with -

10.) The continue statement -

Leave a Reply