
JS Base
Authored by Bohdan Shcherba
Computers
1st Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Яким буде результат виконання наступного коду?
1
2
3
4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Що робить наступний код?
document.getElementById("myElement").style.color = "red";
Змінює текст елементу на "red".
Змінює колір тексту елементу на червоний.
Додає новий елемент з id "myElement".
Видаляє елемент з id "myElement".
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?