JS Base

JS Base

1st Grade

16 Qs

quiz-placeholder

Similar activities

js_edu_wrap_up

js_edu_wrap_up

1st Grade - Professional Development

20 Qs

Roblox_M4_повторення

Roblox_M4_повторення

KG - University

13 Qs

Programación Web

Programación Web

1st Grade

15 Qs

Інформаційна безпека ТЕМА 2

Інформаційна безпека ТЕМА 2

1st - 11th Grade

20 Qs

BrainStorm 2024

BrainStorm 2024

1st Grade

21 Qs

HTML + CSS + Bootstrap

HTML + CSS + Bootstrap

1st - 3rd Grade

15 Qs

C++ 1TD lp.13 lp.26

C++ 1TD lp.13 lp.26

1st Grade

20 Qs

поняття БД

поняття БД

1st - 3rd Grade

12 Qs

JS Base

JS Base

Assessment

Quiz

Computers

1st Grade

Medium

Created by

Bohdan Shcherba

Used 2+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Який з наведених варіантів правильно визначає функцію в JavaScript?

function myFunction { console.log("Hello World"); }

function: myFunction() { console.log("Hello World"); }

function myFunction() { console.log("Hello World"); }

myFunction = function() { console.log("Hello World"); }

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Яким буде значення змінної x після виконання наступного коду?

let x = 0;

while (x < 5) {

x++;

}

4

5

6

0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Як за допомогою JavaScript змінити текст елементу з id "myElement" на "Hello, World!"?

document.querySelector(".myElement").textContent = "Hello, World!";

document.querySelector("#myElement").innerText = "Hello, World!";

document.querySelector("#myElement").innerHTML = "Hello, World!";

document.querySelector("myElement").textContent = "Hello, World!";

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Який з наведених виразів правильно перевіряє, чи дорівнює змінна x числу 10?

if (x = 10)

if (x == 10)

if (x === 10)

if (x != 10)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Який тип даних у JavaScript використовується для збереження текстових значень?

Number

String

Boolean

Object

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Яким буде результат виконання наступного коду?

1

2

3

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Що робить наступний код?

document.getElementById("myElement").style.color = "red";

Змінює текст елементу на "red".

Змінює колір тексту елементу на червоний.

Додає новий елемент з id "myElement".

Видаляє елемент з id "myElement".

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers