Quiz 6 Web-e

Quiz 6 Web-e

University

33 Qs

quiz-placeholder

Similar activities

Quiz Pertemuan 1:  Pengantar Pengembangan Web

Quiz Pertemuan 1: Pengantar Pengembangan Web

University

30 Qs

CNPM Chương5

CNPM Chương5

University

29 Qs

Quiz sobre Frameworks Front-end

Quiz sobre Frameworks Front-end

University

34 Qs

Conocimientos Básicos de HTML

Conocimientos Básicos de HTML

University

30 Qs

Hawkin's hunt ROUND-2

Hawkin's hunt ROUND-2

University

30 Qs

Networking I: IPv4

Networking I: IPv4

University

30 Qs

K8 - BÀI 2 - THÔNG TIN TRONG MÔI TRƯỜNG SỐ

K8 - BÀI 2 - THÔNG TIN TRONG MÔI TRƯỜNG SỐ

8th Grade - University

29 Qs

UI UX Design

UI UX Design

University

28 Qs

Quiz 6 Web-e

Quiz 6 Web-e

Assessment

Quiz

Information Technology (IT)

University

Easy

Created by

Cương Kim

Used 3+ times

FREE Resource

33 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức before() của một object node trên DOM tree dùng để làm gì?
Xóa node ngay trước node
Chèn một node vào ngay trước node
Ghi đè (replace) node ngay trước node
Tìm đến node ngay trước node

2.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

Cho đoạn mã HTML và JavaScript như sau:

Biết rằng xxx ở dòng cuối là mã JavaScript để thực hiện xóa CSS class 'p1' khỏi thẻ HTML <p>. Hãy cho biết xxx là gì?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức getElementById() khi gọi trên nút node của DOM tree có kết quả là gì?
Tìm kiếm theo Class trên cây con có nút gốc là node của DOM tree
Tìm kiếm theo Name trên cây con có nút gốc là node của DOM tree
Tìm kiếm theo Id trên cây con có nút gốc là node của DOM tree
Tất cả đều sai

4.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

Cần xóa thẻ HTML <p> (là đoạn in nghiêng) trong trang web với mã HTML như sau:

Biết rằng paraElement là node tương ứng với thẻ HTML <p> này trong DOM tree. Với điều kiện không dùng phương thức trực tiếp paraElement.remove(), hãy cho biết mã JavaScript cần dùng là gì?

5.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

Trang web có HTML:

Thuật toán tìm đến Item 1 là tím đến Item 2 , sau đó sử dụng sibling property. Hãy cho biết mã JavaScript ứng với thuật toán?

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Giả sử element là DOM tree node tương ứng với thẻ HTML được khai báo trong webpage như sau:

<div id='id' name='name' value='value' />

Cú pháp nào cho phép truy nhập đến trường id của thẻ <div>

element.id
element.attributes.id
element.attributes[0]
element.getAttribute('id')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đâu là nhận định đúng khi so sánh 2 property textContent và innerHTML của node trên DOM tree?

innerHTML chỉ áp dụng với text node chứ không cho mọi element node

Sử dụng innerHTML thiết lập nội dung thẻ HTML nhanh hơn textContent

textContent có thể chứa các thẻ HTML

Sử dụng textContent an toàn hơn dùng innerHTML khi thiết lập nội dung thẻ HTML

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?