Informatica - Scuola secondaria di secondo gradoInfo Training Info Training / Volume Linguaggio Python per il secondo biennio

JavaScript

4 esercizi
SVOLGI
INFO

Informatica

HTML syntax

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

Comments in JavaScript

Which are the correct ways to write a comment in JavaScript?

A:

// comment

B:

/* comment */

C:

<!-- comment -->

D:

## comment

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

JavaScript code

Which of these is the correct tag where to place the JavaScript code?

A:

<javascript> . . . </javascript>

B:

<script> . . . </script>

C:

<script javascript> . . . </script>

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

JavaScript

Which of these statements are true and which are false?

A:

JavaScript can change the content of an HTML element.

B:

In JavaScript, let can be used to create a variable.

C:

The expression 5 + "3" gives the number 8.

D:

The statement if (x > 10) checks a condition.

Vero o falso
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