Informatica - Scuola secondaria di secondo grado

Javascript - Quiz

4 esercizi
SVOLGI
INFO

Informatica

The canvas

What is the canvas?

A:

A tag used to draw graphics.

B:

A form that allows a user to enter data.

C:

A simple window containing a message or output data.

D:

A variable used to store multiple values.

Scelta multipla
1

Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza

Informatica

The tag for JavaScript code

Which of these is the correct tag for JavaScript code?

A:

<javascript> . . . </javascript>

B:

<script> . . . </script>

C:

<type javascript> . . . </type javascript>

D:

<code> . . . </code>

Scelta multipla
1

Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza

Informatica

The content of the HTML element box1

What is the correct syntax to get the content of the HTML element box1?

A:

document.getValue("box1")

B:

document.getElementById("box1").value

C:

getValue("box1").documentById

D:

getElementById("box1").value

Scelta multipla
1

Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza

Informatica

The correct syntax for referring to an external script

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

A:

<script src="code1.js"></script>

B:

<import src="code1.js"></import>

C:

<script scriptname="code1.js"></script>

D:

<script import="code1.js"></script>

Scelta multipla
1

Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza