Search Header Logo

Javascript quiz z w3c

Authored by Ellendil Ellendil

Computers

10th Grade

Used 2+ times

Javascript quiz z w3c
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

W jakim elemencie HTML umieszczamy JavaScript?

<script> 

<js>

<scripting>

<javascript>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jaka jest poprawna składnia JavaScript, aby zmienić zawartość poniższego elementu HTML?

<p id="demo">To jest demonstracja.</p>

document.getElementById("demo").innerHTML = "Witaj Świecie!";

#demo.innerHTML = "Witaj Świecie!";

document.getElementByName("p").innerHTML = "Witaj Świecie!";

document.getElement("p").innerHTML = "Witaj Świecie!";

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jaka funkcja JS wyciąga pierwiastek kwadratowy z liczby x?

root(x)

pierw(x)

Math.sqrt(x)

Math.pow(x)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jak napisać "Hello World" w oknie alertu?

alert("Hello World");

msg("Hello World");

alertBox("Hello World");

msgBox("Hello World");

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jak utworzyć (zdefiniować) funkcję w JavaScript?

function mojaFunkcja()

function = mojaFunkcja()

function:mojaFunkcja()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jak wywołasz (uruchomisz) funkcję o nazwie "mojaFunkcja"?

mojaFunkcja()

call mojaFunkcja()

run mojaFunkcja()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jak napisać instrukcję IF w JavaScript?

if (i == 5)

if i = 5 then

if i = 5

if i == 5 then

Access all questions and much more by creating a free account

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

Already have an account?