Search Header Logo

JavaScript Control Flow – MCQ Quiz (With Answers)

Authored by Dheepan G

Information Technology (IT)

Professional Development

Used 3+ times

JavaScript Control Flow – MCQ Quiz (With Answers)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is used to make decisions in JavaScript?

select

if

loop

switchcase

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for an if statement in JavaScript?

if (condition) then { }

if condition { }

if (condition) { }

if { condition }

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to test multiple conditions with the same variable?

if

else

switch

when

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will this code print?

Big

Small

10

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a switch statement, which keyword stops execution from continuing to the next case?

stop

break

end

exit

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will this output?

A

A B

B

Nothing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop runs a block of code at least once, even if the condition is false?

for

while

do...while

if

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?