
Looping - C program
Authored by Mrs. D.
Other
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is faster in C Language, for, while or Do While.?
for
while
do while
All of the given
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose correct C while loop syntax.
while(condition)
{
//statements
}
{
//statements
}while(condition)
while(condition);
{
//statements
}
while()
{
if(condition)
{
//statements
}
}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose a correct C for loop syntax.
for(initalization; condition; incrementoperation)
{
//statements
}
for(declaration; condition; incrementoperation)
{
//statements
}
for(declaration; incrementoperation; condition)
{
//statements
}
for(initalization; condition; incrementoperation;)
{
//statements
}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose a correct C do while syntax.
dowhile(condition)
{
//statements
}
do while(condition)
{
//statements
}
do
{
//statements
}while(condition);
do
{
//statements
}while(condition)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C Program.?
int main()
{
while(true)
{
printf("RABBIT");
break;
}
return 0;
}
RABBIT
RABBIT is printed unlimited number of times.
No output
Compiler error.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C Program.?
int main()
{ int a=5;
while(a=123)
{ printf("RABBIT\n");
break;
}
printf("GREEN");
return 0;
}
GREEN
RABBIT
GREEN
RABBIT is printed unlimited number of times.
Compiler error.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C Program.?
int main()
{
int a=32;
do
{
printf("%d ", a);
a++;
}while(a <= 30);
return 0;
}
32
33
30
No Output
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Introduction to Business
Quiz
•
University
10 questions
Understanding Plagiarism
Quiz
•
6th Grade - University
10 questions
C3 : SET 3 - MARKET EQUILIBRIUM
Quiz
•
University
10 questions
English II - Reading Comprehension
Quiz
•
University
7 questions
Backup, Restore, and Recovery
Quiz
•
9th Grade - University
10 questions
TRAINING AND DEVELOPMENT
Quiz
•
University
10 questions
CHAPTER 5-CAPITAL& REVENUE EXPENDITURE
Quiz
•
University
15 questions
collection of data
Quiz
•
11th Grade - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University