Javascript For loop and While Loop

Javascript For loop and While Loop

12th Grade

5 Qs

quiz-placeholder

Similar activities

สอบเก็บคะแนน ไพทอน ม.4

สอบเก็บคะแนน ไพทอน ม.4

9th - 12th Grade

10 Qs

Functions & NameSpace in Python -1

Functions & NameSpace in Python -1

12th Grade

10 Qs

How well do you know me?

How well do you know me?

KG - University

8 Qs

Mastering Sentence Types

Mastering Sentence Types

7th Grade - University

10 Qs

All about Adaline

All about Adaline

KG - 12th Grade

10 Qs

Quiz Time

Quiz Time

KG - 12th Grade

10 Qs

BTS

BTS

KG - Professional Development

10 Qs

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

BTEC Level 3 Nat Ext Dip in Computing - Unit 2.1 Hardware and Software

11th - 12th Grade

10 Qs

Javascript For loop and While Loop

Javascript For loop and While Loop

Assessment

Quiz

Other, Computers

12th Grade

Practice Problem

Hard

Created by

Aref .

Used 171+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is a for loop?

loops through a number of block of code one time

loops through a block of code a number of times

loops through a block of code one time

many loops through a block of code a number of times

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The number is 0

The number is 1

The number is 2

The number is 3

The number is 4

which is the correct code?

for (i = 0; i < 5 i++)

FOR (i = 0; i < 5; i++)

for (i = 0; i < 4; i++)

for (i = 0; i < 5; i++)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is a while loop?

loops through a block of code as long as a specified condition is false

loops through a block of code as long as a specified condition is true or false

loops through a block of code as long as a specified condition is true

loops through a number block of code as long as a specified condition is true

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The number is 0

The number is 1

The number is 2

The number is 3

The number is 4

The number is 5

The number is 6

The number is 7

The number is 8

The number is 9

which code is correct?

while (i < 10) {

text += "<br>The number is " + i;

i++;

}

while (i < 9) {

text += "<br>The number is " + i;

i++;

}

while (i < 10) {

text += "<br>The number is " + i;

i++

}

while (i < 10)

text += "<br>The number is " + i;

i++;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var i = 0;

(i 10) {

console.log(i);

i++

}

fix the code using while loop and i is bigger then 10

WHILE , <

while , bigger

while , <

while , >

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?