saldeee

saldeee

10th Grade

8 Qs

quiz-placeholder

Similar activities

SAINS KOMPUTER T5 3.1.1 Keperluan Bahasa Penskripan Klien

SAINS KOMPUTER T5 3.1.1 Keperluan Bahasa Penskripan Klien

10th - 11th Grade

12 Qs

[Hall] While Loops

[Hall] While Loops

6th - 12th Grade

10 Qs

การโปรแกรมเว็บด้วยภาษา HTML 08

การโปรแกรมเว็บด้วยภาษา HTML 08

10th Grade - University

10 Qs

Хостинг сайта (Веб-технології)

Хостинг сайта (Веб-технології)

10th Grade

12 Qs

Structure of HTML page  Friday October 9 2020

Structure of HTML page Friday October 9 2020

9th - 12th Grade

13 Qs

Web Development

Web Development

8th - 10th Grade

12 Qs

S4D WDD - HTML revision

S4D WDD - HTML revision

8th - 10th Grade

10 Qs

Computer Science Very Hard

Computer Science Very Hard

1st - 12th Grade

10 Qs

saldeee

saldeee

Assessment

Quiz

Computers

10th Grade

Hard

Created by

hope salde

Used 5+ times

FREE Resource

AI

Enhance your content

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Inside which HTML element do we put the JavaScript?

<js>

<script>

<javascript>

<scripting>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.</p>

document.getElemntByld("demo").innerHTML="hello world!";

document.getElementByName("p").innerHTML="hello world!";

#demo.innerHTML="hello world!";

document.getElemenr("p").innerHTML+="hello world!";

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where is the correct place to insert a JavaScript?

Both the <head> section and the <body> section are correct

The <head> section

The <body> section

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax for referring to an external script called "xxx.js"?

<script name="xxx.js">

<script href="xxx.js">

<script src="xxx.js">

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write "Hello World" in an alert box?

msg("hello world");

alertBox("hello world");

msgBox("hello world");

alert("hello world");

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

how can you add a comment in a JavaScript?

<!--This is a comment-->

'This is a comment

//This is a comment

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you round the number 7.25, to the nearest integer?

rnd(7.25)

round(7.25)

Math.rnd(7.25)

Math.round(7.25)

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to assign a value to a variable?

x

=

*

-