Search Header Logo

ACADEMY-WEEK05

Authored by Trương Đông

Other

Professional Development

ACADEMY-WEEK05
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. Cú pháp JavaScript đúng để thay đổi nội dung của phần tử HTML bên dưới là gì

document.getElementById("demo").innerHTML = "Hello World!";

document.getElement("p").innerHTML = "Hello World!";

#demo.innerHTML = "Hello World!";

document.getElementByName("p").innerHTML = "Hello World!";

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. Làm cách nào để tạo một hàm trong JavaScript?

function myFunction()

function:myFunction()

function = myFunction()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. Làm thế nào để bạn gọi một chức năng có tên là "myFunction"?

call function myFunction()

myFunction()

call myFunction()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. Sự kiện nào xảy ra khi người dùng nhấp chuột vào một phần tử HTML?

onclick

onmouseclick

onmouseover

onchange

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

5. "Else" có cần thiết không?Tại sao?

Không

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Làm cách nào để chọn phần tử đầu tiên trong tài liệu HTML khớp với bộ chọn CSS .main .title .t1?

document.querySelector('.main .title .t1')

document.querySelectorAll('.main .title .t1')

document.body.matches('.main .title .t1')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

8. Các phương thức getElementsByClassName()và getElementsByTagName(), của Nodegiao diện, cả hai đều trả về một danh sách giống như mảng gồm các phần tử phù hợp, ngay cả khi kết quả khớp chỉ dành cho một phần tử. Đúng hay sai?

TRUE

FALSE

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?