Search Header Logo

JavaScript28

Authored by Анна Кот

Science

6th Grade

Used 28+ times

JavaScript28
AI

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

Media Image

До посилання <a href="..." id="link"> доданий обробник подій. Який код потрібно додати в функції, щоб перехід за посиланням не здійснився?

event.stopPropagation()

return false

event.cancel()

event.preventDefault()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Які події НЕ викликаються мишкою?

focus

click

keydown

mousedown

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Які із подій виникають при натисненні клавіши "Shift"?

keydown

keyup

keypress

ні одна із перерахованих

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Який код виведе на сторінці в блоці <div id = "elem"></div> текст '<h1>hello</h1>', якщо let elem = document.querySelector('#id')

elem.innerHTML = '<h1>hello</h1>'

elem.innerText = '<h1>hello</h1>'

elem.textContent = '<h1>hello</h1>'

elem.setText = '<h1>hello</h1>'

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

setInterval(func, 100) викликає функцію func ...

через кожних 100мс

через 100с

через кожних 100с

через 100мс

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Виберіть правильні варіанти запису функції.

let message = function(){ alert('hello') }

function message(){ alert('hello') }

() => { alert('hello') }

message() => { alert('hello') }

7.

FILL IN THE BLANKS QUESTION

3 mins • 1 pt

Media Image

Яке число виведеться в консоль?

(a)  

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?