Review JavaScript

Review JavaScript

Assessment

Flashcard

Computers

11th Grade

Easy

Created by

JUSILDA VREKA

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

22 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What expression increases a value (i++) each time the code block in the loop has been executed?

Back

3rd Expression

2.

FLASHCARD QUESTION

Front

Sets a variable before the loop starts.

Back

1st Expression

3.

FLASHCARD QUESTION

Front

Defines the condition for the loop to run

Back

2nd Expression

4.

FLASHCARD QUESTION

Front

Determine the output of this program:
for (let index = 5; index < 8; index++) {
document.write([index] + "<br>");
}

Back

5
6
7

5.

FLASHCARD QUESTION

Front

Complete the missing part of this JavaScript "for" loop so it correctly prints numbers from 1 to 5.
for (_____; i <= 5; i++) { console.log(i); }

Back

let i=1

6.

FLASHCARD QUESTION

Front

The following "for" loop will execute 5 times.
for (let i = 0; i < 5; i++) {
console.log(i);
}

Back

True

7.

FLASHCARD QUESTION

Front

What will be the last number printed by the following loop?
for (let i = 2; i <= 10; i += 2) {
console.log(i);
}

Back

10

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?