Looping in C Programming

Looping in C Programming

University

9 Qs

quiz-placeholder

Similar activities

Python Programming Basics

Python Programming Basics

University

14 Qs

Java Programming

Java Programming

University

10 Qs

Seatwork 2

Seatwork 2

University

10 Qs

Moringa JavaScript Iteration

Moringa JavaScript Iteration

9th Grade - Professional Development

10 Qs

Lets see what you know

Lets see what you know

1st Grade - Professional Development

14 Qs

Programming Methods

Programming Methods

12th Grade - University

10 Qs

Session 2 | U

Session 2 | U

University

10 Qs

Looping in C Programming

Looping in C Programming

Assessment

Quiz

Computers

University

Medium

Created by

Mohammad Nor Ihsan bin Md Zin

Used 58+ times

FREE Resource

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.

while

code to be executed.

(test expression)

{

}

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

8.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What makes the loop end?

user input number 0

The sum become 0

The sum is not 0

The loop never ends.

9.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

What happen when the loop end?

It print the last number input by user.

It prints the sum of the numbers input by user.

It print the first number input by user.

The loop never ends.