Web_FE_BASIC_SS34

Web_FE_BASIC_SS34

University

16 Qs

quiz-placeholder

Similar activities

2D-2 | Google Sheets Quiz | 09.12.2024

2D-2 | Google Sheets Quiz | 09.12.2024

University

20 Qs

Mail Merge

Mail Merge

10th Grade - University

12 Qs

Revisão AV1 - Programação WEB

Revisão AV1 - Programação WEB

University

20 Qs

Revision 2 (Chapter 3)

Revision 2 (Chapter 3)

University

15 Qs

Repaso Clase 21

Repaso Clase 21

University

12 Qs

Hyper Text Markup Language

Hyper Text Markup Language

12th Grade - University

20 Qs

Aprofundando em SQL

Aprofundando em SQL

University

20 Qs

The History of Computers and From Data to Knowledge-LO1 Quiz

The History of Computers and From Data to Knowledge-LO1 Quiz

University

20 Qs

Web_FE_BASIC_SS34

Web_FE_BASIC_SS34

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

academy rikkei

Used 30+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mục đích chính của DOM trong JavaScript là gì?

A. Tạo và quản lý cơ sở dữ liệu

B. Tương tác và thay đổi nội dung, cấu trúc và kiểu của tài liệu HTML hoặc XML

C. Thực hiện các phép toán số học

D. Tạo và quản lý các lớp học

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

DOM có thể làm gì với các phần tử trên trang web?

A. Chỉ đọc nội dung

B. Chỉ xóa nội dung

C. Thay đổi nội dung, cấu trúc và kiểu

D. Không thể làm gì với các phần tử

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách truy xuất tất cả các phần tử với class cụ thể trong DOM là gì?

A. document.getElementByClass('class');

B. document.querySelectorAll('.class');

C. document.getElementsByClassName('class');

D. document.querySelector('.class');

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào sau đây trả về một phần tử duy nhất bằng ID?

A. document.querySelector('#id');

B. document.getElementsById('id');

C. document.getElementById('id');

D. document.querySelectorAll('#id');

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Làm thế nào để lấy nội dung HTML của một phần tử với ID myElement?

A. document.getElementById('myElement').innerHTML;

B. document.getElementById('myElement').textContent;

C. document.getElementById('myElement').value;

D. document.getElementById('myElement').innerText;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào sau đây trả về tất cả các phần tử với tên thẻ p?

A. document.querySelector('p');

B. document.getElementsByTagName('p');

C. document.querySelectorAll('p');

D. document.getElementById('p');

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách thêm một class vào phần tử với ID example là gì?

A. document.getElementById('example').className = 'newClass';

B. document.getElementById('example').classList.add('newClass');

C. document.getElementById('example').addClass('newClass');

D. document.getElementById('example').class = 'newClass';

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?