Java Script Certification Functions, Debugging & Loops

Java Script Certification Functions, Debugging & Loops

1st - 3rd Grade

20 Qs

quiz-placeholder

Similar activities

Pre-Post Test Sasaran Keselamatan Pasien

Pre-Post Test Sasaran Keselamatan Pasien

1st Grade

15 Qs

LEA 1 QUIZ# 3

LEA 1 QUIZ# 3

1st Grade

15 Qs

Building Laws Quiz 1- PD 1096

Building Laws Quiz 1- PD 1096

KG - Professional Development

15 Qs

New product

New product

KG - Professional Development

15 Qs

2019 STAAR CAMPUS TRAINING

2019 STAAR CAMPUS TRAINING

3rd - 12th Grade

20 Qs

Perkembangan Dunia Kerja dan Proses Bisnis RPL

Perkembangan Dunia Kerja dan Proses Bisnis RPL

1st Grade

20 Qs

Being Organised

Being Organised

1st - 12th Grade

15 Qs

Fiche 6 : Le dépassement

Fiche 6 : Le dépassement

1st Grade

15 Qs

Java Script Certification Functions, Debugging & Loops

Java Script Certification Functions, Debugging & Loops

Assessment

Quiz

Professional Development

1st - 3rd Grade

Practice Problem

Hard

Created by

Moises Ruiz

Used 21+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which JavaScript statement should you use to test for a single condition and branch to a process?

for

while

if...else

if

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which of the following statements is true of control structures?

They are methods that return at least one value.

They are used in code to avoid program errors.

They are exclusive to JavaScript.

They make decisions based on Boolean values.

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which code will display an alert if the variable timerMinutes has a value 10?

if ("timerMinutes" = 10) {   alert("Time Expired!"); }

if ("timerMinutes" == 10); {   alert("Time Expired!"); }

if ("timerMinutes" = 10) alert("Time Expired!");

if (timerMinutes == 10) alert("Time Expired!");

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the purpose of the switch statement?

To force the flow of control back to the top of a loop

To exit a loop that would otherwise continue to execute

To repeat a group of statements for some particular range of values

To compare a value against other values, to search for a match

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which JavaScript statement is used to force the flow of control back to the top of a loop?

while

for

continue

break

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Consider the following code snippet:

var x = 100; while (x > 5) { x--; }

What will be the value of x after the execution of the given code snippet?

4

5

100

6

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which type of statement provides a way to exit a loop that would otherwise continue to execute?

break

continue

for

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?