Control Flow

Control Flow

Professional Development

10 Qs

quiz-placeholder

Similar activities

Quiz

Quiz

Professional Development

10 Qs

Quiz on Indian Independence Struggle

Quiz on Indian Independence Struggle

Professional Development

10 Qs

Perform Online Collaboration A

Perform Online Collaboration A

Professional Development

12 Qs

Marketing and Advertising

Marketing and Advertising

Professional Development

15 Qs

CS Quiz1

CS Quiz1

Professional Development

10 Qs

Pop Quiz WB1121

Pop Quiz WB1121

Professional Development

13 Qs

Auto Dimming Mirrors

Auto Dimming Mirrors

Professional Development

10 Qs

HR Strategy Y2022

HR Strategy Y2022

Professional Development

10 Qs

Control Flow

Control Flow

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Medium

Created by

Daniel Adesoji

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword can one use make a decision based on a condition?

if

let

how

ifToSay

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bisi wants to check if a users age is above 20 and the user is from Nigeria, which if statement can she use?

if (age >=20 && country = 'Nigeria')

if (age > 20 && country === 'Nigeria')

if (age ===20 && country === 'Nigeria')

if (age >= 20 && country === 'Nigeria')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If we need to add multiple conditions, what keyword can we use?

evenThough

else

justBecause

other

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following does this:

The age should be equal to or above 10 OR the gender should be male

if (gender === 'male' && age > 10)

if (gender = 'male' && age >= 10)

if (gender === 'male' || age >= 10)

if (gender === 'male' || age > 10)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which looping construct in JavaScript is used for iterating over the elements of an array or characters of string?

for loop

continue loop

break loop

insert loop

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the continue statement in a loop

To terminate the loop and exit

To skip the current iteration and move to the next one

To restart the loop from the beginning

To continue to the next iteration of the loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the break statement in a loop

To terminate the loop and exit

To skip the current iteration and move to the next one

To restart the loop from the beginning

To continue to the next iteration of the loop

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?

Discover more resources for Professional Development