JavaScript - Control Statements

JavaScript - Control Statements

8th Grade

15 Qs

quiz-placeholder

Similar activities

XI TEKNOLOGI JARINGAN BERBASIS LUAS (WAN) Ke 1

XI TEKNOLOGI JARINGAN BERBASIS LUAS (WAN) Ke 1

1st - 10th Grade

20 Qs

Решить задачи

Решить задачи

5th - 9th Grade

20 Qs

Symbols & Num. Keypad

Symbols & Num. Keypad

1st - 12th Grade

10 Qs

kiểm tra tin 8

kiểm tra tin 8

8th Grade

20 Qs

Basic Docs

Basic Docs

8th - 9th Grade

17 Qs

ÔN TẬP HKII-02

ÔN TẬP HKII-02

8th Grade

15 Qs

JavaScript - Control Statements

JavaScript - Control Statements

Assessment

Quiz

Computers

8th Grade

Practice Problem

Hard

Created by

Meenakshi Sharma

Used 13+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which is the right way to make a for loop?

Alienisation, The End, Rebels

Installation, Ending, Timer

Initialisation, Condition, Iteration

Initialisation, Counter, End Condition

2.

MULTIPLE SELECT QUESTION

10 sec • 1 pt

Which of the below are types of loops

If then Else

Switch Case

for loop

Conditional Operator

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Nested loops are

Multiple independent loops

Conditions in a loop

Loop in a Loop

Loop in a condition

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

for ( var i = 0; i < 50; i++ )


How many times will this loop execute

51 times

49 times

50 times

0 times

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the iterations runs 25 times

for ( var i = 2; i < 26; i ++ )

for ( var i = 0; i < 25; i ++ )

for ( var i = -1 ; i > 25 ; i -- )

for ( var i = 0; i <= 25; i --)

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

One of the below functions lets you climb 1000 feet

for ( var count = 0; count > 999; count --)

moveUpOneFoot();

}

for ( var count = 2; count <= 1002; count ++)

moveUpOneFoot();

}

for ( var count = 1000; count < 1; count --)

moveUpOneFoot();

}

for ( var count = 0; count < 1000; count ++)

moveUpOneFoot();

}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a function in MakeCode?

function = climbUp();

fun = "climbUp";

function climbUp();

fun = (climbUp());

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?