Web_FE_BASIC_SS34

Web_FE_BASIC_SS34

University

16 Qs

quiz-placeholder

Similar activities

IntroductionDatabases

IntroductionDatabases

University

20 Qs

G4-Microprocessors and Their Uses

G4-Microprocessors and Their Uses

4th Grade - University

15 Qs

Базовые основы HTML, CSS, JS, Web APIs

Базовые основы HTML, CSS, JS, Web APIs

University

17 Qs

Konteynerlar (C++)

Konteynerlar (C++)

University

12 Qs

JavaScript Lesson 1

JavaScript Lesson 1

11th Grade - University

20 Qs

APPDEV Prelim

APPDEV Prelim

University

20 Qs

QUIZ 3: MIDTERM

QUIZ 3: MIDTERM

University

20 Qs

Purchasing Process Quiz

Purchasing Process 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?