
C loop

Quiz
•
Computers
•
University
•
Hard
sobha xavier
Used 5+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
PROGRAMACION

Quiz
•
9th Grade - University
12 questions
UNIT 3

Quiz
•
University
20 questions
C Programming Quiz(session 1)

Quiz
•
University
15 questions
BASIC C PROGRAMMING QUIZ

Quiz
•
University
10 questions
Expression in C Programming

Quiz
•
University
12 questions
Operators in C

Quiz
•
University
13 questions
ÔN TẬP C - mảng 1 chiều

Quiz
•
University
20 questions
C Programming Assessment-1

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University