Looping in C Programming

Looping in C Programming

University

9 Qs

quiz-placeholder

Similar activities

Machine Learning and Python.

Machine Learning and Python.

University

10 Qs

FSD B2 Q1 - Intro

FSD B2 Q1 - Intro

University

14 Qs

Python

Python

8th Grade - Professional Development

10 Qs

Java Programming

Java Programming

University

11 Qs

Introduction to Computer Programming

Introduction to Computer Programming

6th Grade - University

10 Qs

Python User Input Quiz

Python User Input Quiz

6th Grade - University

10 Qs

AP Computer Science Principles Control Structures

AP Computer Science Principles Control Structures

University

14 Qs

Code.org Control Structures

Code.org Control Structures

University

14 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

(test expression)

{

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

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.