
JS Base

Quiz
•
Computers
•
1st Grade
•
Medium
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
Яким буде результат виконання наступного коду?
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
Similar Resources on Wayground
11 questions
WEB-html-скелет

Quiz
•
1st Grade
21 questions
CSS Review

Quiz
•
KG - 12th Grade
15 questions
Javascript-react-redux

Quiz
•
1st - 5th Grade
11 questions
Python. Умови та цикли

Quiz
•
1st - 3rd Grade
16 questions
Python Basics

Quiz
•
KG - University
11 questions
Python - operacje wejścia i wyjścia

Quiz
•
1st - 2nd Grade
11 questions
Графічні зображення та гіперпосилання на вебсторінці

Quiz
•
1st - 12th Grade
20 questions
LATIHAN DASAR HTML

Quiz
•
KG - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Odd and even numbers

Quiz
•
1st - 2nd Grade