KM | W11D2

KM | W11D2

Professional Development

5 Qs

quiz-placeholder

Similar activities

Vayu Cloud

Vayu Cloud

Professional Development

10 Qs

MP Store Assistant - 1

MP Store Assistant - 1

Professional Development

9 Qs

Front Office 3

Front Office 3

Professional Development

10 Qs

Python Functions

Python Functions

Professional Development

9 Qs

CoinDCX Local Chapter Quiz

CoinDCX Local Chapter Quiz

Professional Development

10 Qs

KM | W11D1

KM | W11D1

Professional Development

5 Qs

Budget Code Review

Budget Code Review

Professional Development

10 Qs

Python Loop Statements

Python Loop Statements

Professional Development

10 Qs

KM | W11D2

KM | W11D2

Assessment

Quiz

Other

Professional Development

Hard

Created by

Intan Lestari

Used 10+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. What is the purpose of conditional statements in JavaScript?

To loop through arrays

To declare variables

To execute a block of code a specified number of times

To perform different actions based on different conditions

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to execute a block of code if a condition is false?

if

else

while

for

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the else if statement do?

Repeats a block of code while a condition is true

Declares a variable

Specifies a new condition to test, if the first condition is false

Executes a block of code a specific number of times

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop executes a block of code a specified number of times?

while

for

do...while

if

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary use of functions in JavaScript?

To perform a calculation and return a value

To store values

To create a new scope

To define reusable blocks of code that perform a specific task