
C loop
Authored by sobha xavier
Computers
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Choose a right C Statement.
A) Loops or Repetition block executes a group of statements repeatedly.
B) Loop is usually executed as long as a condition is met.
.
C) Loops usually take advantage of Loop Counter
D) All the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Loops in C Language are implemented using.?
A) While Block
B) For Block
C) Do While Block
D) All the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is faster in C Language, for, while or Do While.?
A) for
B) while
C) do while
D) All work at same speed
4.
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 } }
5.
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 }
6.
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);
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C Program.?
int main()
{
while(true)
{
printf("RABBIT");
break;
}
return 0;
}
A) RABBIT
B) RABBIT is printed unlimited number of times.
C) No output
D) Compiler error.
Answer explanation
while(TRUE) or while(true) does not work. true is not a keyword.
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
10 questions
Living in the IT Era
Quiz
•
University
15 questions
Algoritma dan Pemrograman Bab 1
Quiz
•
University
10 questions
Microcontroller
Quiz
•
11th Grade - University
20 questions
Computación 1ro y 2do básico
Quiz
•
1st Grade - University
20 questions
C Quest 2.0
Quiz
•
University
20 questions
Câu hỏi về máy tính
Quiz
•
8th Grade - University
15 questions
IT 209
Quiz
•
University
20 questions
PHP First Internal Practical Viva
Quiz
•
University
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