Review Lesson 15

Review Lesson 15

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Scratch Programming Level-2 Final Exam

Scratch Programming Level-2 Final Exam

5th - 8th Grade

15 Qs

Latino Vocaburino

Latino Vocaburino

7th - 9th Grade

15 Qs

Kuis PKN Sumpah Pemuda

Kuis PKN Sumpah Pemuda

8th Grade

11 Qs

AI Introduction Quiz

AI Introduction Quiz

5th - 12th Grade

12 Qs

NL unit 6 vocabulary pages 8-26

NL unit 6 vocabulary pages 8-26

4th Grade - Professional Development

15 Qs

Computing Quiz

Computing Quiz

7th - 8th Grade

10 Qs

Fobia Social Específica

Fobia Social Específica

6th Grade

7 Qs

Recuperação 1° Ano P.C

Recuperação 1° Ano P.C

1st Grade - University

15 Qs

Review Lesson 15

Review Lesson 15

Assessment

Quiz

Education

6th - 8th Grade

Medium

Created by

Arif Rahman

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is JavaScript primarily used for?

Designing web layouts

Creating static content on websites

Adding interactivity and dynamic behavior to websites

Managing databases

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to include JavaScript internally in an HTML file?

<script type = text/javascript>

<script> <javascript>

<javascript>

<script> javascript </script>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code do?

alert("Welcome to the website!");

Displays a pop-up message with "Welcome to the website!"

Writes "Welcome to the website!" on the webpage

Logs "Welcome to the website!" to the console

Changes the title of the webpage

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code do?

Opens a dialog box displaying "Hello, world!"

Writes "Hello, world!" on the webpage

Outputs "Hello, world!" to the browser console

Replaces the webpage content with "Hello, world!"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct way to declare a variable in JavaScript?

variable x = 10;

var x = 10;

declare x = 10;

let x == 10;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this code output?

let name = "John";

let age = 25;

document.write("Name: " + name + ", Age: " + age);

Name: , Age:

Name: John, Age: 25

John25

Name + name, Age + age

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between alert() and document.write()?

alert() writes on the webpage, while document.write() shows a pop-up

alert() shows a pop-up, while document.write() writes on the webpage

Both do the same thing

alert() works offline, and document.write() works online

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?