C loop

C loop

University

15 Qs

quiz-placeholder

Similar activities

CCE-III Programming in C Language

CCE-III Programming in C Language

University

20 Qs

Array in C

Array in C

University

10 Qs

C++ programing Quiz

C++ programing Quiz

12th Grade - University

10 Qs

C programming

C programming

11th Grade - University

10 Qs

C programming-1

C programming-1

University

13 Qs

TECHNICAL C PROGRAM

TECHNICAL C PROGRAM

University

10 Qs

Arrays and pointers quiz

Arrays and pointers quiz

University

20 Qs

C programming syntax quiz

C programming syntax quiz

University

20 Qs

C loop

C loop

Assessment

Quiz

Computers

University

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?