You can prepare effectively for Grade 7 C Programming for Beginners with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: C Loops - 1". These 10 questions have been designed by the experts with the latest curriculum of Grade 7 2026, to help you master the concept.
Test Highlights:
Sign up on EduRev for free to attempt this test and track your preparation progress.
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;
}
Detailed Solution: Question 1
Detailed Solution: Question 2
What is the output of C Program.?
int main()
{
int a=10, b, c;
b=a++;
c=++a;
printf("%d %d %d", a, b, c);
return 0;
}
Detailed Solution: Question 3
What is the output of C Program.?
int main()
{
int a=10,b=20;
if(a==9 AND b==20)
{
printf("Hurray..");
}
if(a==10 OR b==21)
{
printf("Theatre");
}
return 0;
}
Detailed Solution: Question 4
Detailed Solution: Question 5
Detailed Solution: Question 6
Detailed Solution: Question 7
Detailed Solution: Question 8
What is the output of C Program.?
int main()
{
int a=0, b=0;
while(++a < 4)
printf("%d ", a);
while(b++ < 4)
printf("%d ", b);
return 0;
}
Detailed Solution: Question 9
Detailed Solution: Question 10
10 videos|14 docs|15 tests |