Search Header Logo

Looping in C Programming

Authored by Mohammad Nor Ihsan bin Md Zin

Computers

University

Used 59+ times

Looping in C Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What statement we have learned toay?

Input Statement

Looping Statement

Selection Statement

Array Statement

2.

DRAG AND DROP QUESTION

10 sec • 3 pts

for (​ (a)   ;​ (b)   ;​ (c)   ){ //code to be executed; }

initial value of variable
comparison
update value of variable

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In for statement, if the comparison is FALSE, what happen next?

execute the code in the loop body.

restart the loop.

exit the loop

update the variable's value.

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

What is the first value of i to be printed on the output?

0

1

5

10

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

What is the last value of i to be printed on the output?

1

2

4

5

6.

REORDER QUESTION

10 sec • 5 pts

Reorder the following to be the correct while loop syntax.

(test expression)

}

while

{

code to be executed.

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Predict the output of the code.

100 101 102 103 104 105 106

101 102 103 104 105

101

102

103

104

105

100

101

102

103

104

105

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers