While loop

While loop

1st - 2nd Grade

8 Qs

quiz-placeholder

Similar activities

St Michael's - Year 8 - Small Basic - MIDTERM

St Michael's - Year 8 - Small Basic - MIDTERM

KG - University

6 Qs

Python Fundamentals

Python Fundamentals

1st - 10th Grade

12 Qs

Introduction to Computer Science

Introduction to Computer Science

1st - 9th Grade

10 Qs

Introduction to Python - Loops and Logic

Introduction to Python - Loops and Logic

1st - 6th Grade

10 Qs

java-control structures-vlits

java-control structures-vlits

1st Grade

10 Qs

AapLab LC 1

AapLab LC 1

1st - 3rd Grade

12 Qs

Test Your Knowledge!

Test Your Knowledge!

2nd Grade

10 Qs

Programming - Selection in an Algorithm

Programming - Selection in an Algorithm

1st - 11th Grade

10 Qs

While loop

While loop

Assessment

Quiz

1st - 2nd Grade

Medium

Created by

Sundus Housah

Used 60+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents the correct flowchart for while loop.

Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a while loop the minimum time a code will be executed is

Once

Twice

0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a While loop a code will be repeated until the condition becomes

FALSE

TRUE

User choice

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

loops is control flow statement for specifying iteration, which allows code to be executed repeatedly

TRUE

FALSE

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

IF statements are used for iterations

TRUE

FALSE

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Decision making can be done by Switch statements

TRUE

FALSE

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the mistake in this syntax

____________________________________

whle (condition is true) {

code to be executed

}

;

{

While

{ and While

; and While

8.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

<html>

<body>


<?php

$x = 1;

while($x == 5) {

echo "The number is: $x <br>";

$x++;

}

?>


</body>

</html>

________________________________________________

This code will print ..

The number is: 1

The number is: 2

The number is: 3

The number is: 4

The number is: 5

The number is: 0

The number is: 2

The number is: 3

The number is: 4

The number is: 5

Nothing

The number is: 0

The number is: 0

The number is: 0

The number is: 0

The number is: 0