Câu hỏi trắc nghiệm tổng hợp Javascript

Câu hỏi trắc nghiệm tổng hợp Javascript

Professional Development

32 Qs

quiz-placeholder

Similar activities

Quiz về triết học Mác

Quiz về triết học Mác

Professional Development

36 Qs

Marketing Digital

Marketing Digital

Professional Development

30 Qs

CN10A2 instructional technology

CN10A2 instructional technology

KG - Professional Development

32 Qs

Automation Assessment

Automation Assessment

Professional Development

36 Qs

WD - Intra Exam - Data processing technologies (TTD)

WD - Intra Exam - Data processing technologies (TTD)

12th Grade - Professional Development

30 Qs

Câu hỏi trắc nghiệm tổng hợp Javascript

Câu hỏi trắc nghiệm tổng hợp Javascript

Assessment

Quiz

Instructional Technology

Professional Development

Hard

Created by

Quý Ngọ

Used 50+ times

FREE Resource

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Thuộc tính textContent được sử dụng để làm gì?

Thay đổi thuộc tính của một phần tử

Thay đổi nội dung của một phần tử

Thay đổi kiểu dữ liệu của một phần tử

Thay đổi vị trí của một phần tử

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để thêm một lớp (class) mới vào một phần tử, bạn sử dụng phương thức nào sau đây:

add('newClass')

addClass('newClass')

addClassList('newClass')

classList.add('newClass')

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để xóa một lớp (class) từ một phần tử, bạn sử dụng phương thức nào sau đây:

remove('className')

removeClass('className')

removeClassList('className')

classList.remove('className')

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để tạo một phần tử HTML mới trong JavaScript, bạn sử dụng phương thức nào sau đây:

document.createElement('newElement')

addElement('newElement')

createNewElement('newElement')

create('newElement')

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để lắng nghe sự kiện click trên một phần tử, bạn sử dụng phương thức nào sau đây:

addEventListener('click', myFunction)

listen('click', myFunction)

onClick = myFunction

onClickListener('click', myFunction)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để thay đổi nội dung của một phần tử HTML có id là "myDiv", bạn sử dụng phương thức nào sau đây:

document.querySelector('#myDiv').textContent = 'New Content';

document.getElementById('myDiv').innerHTML = 'New Content';

document.getElementById('myDiv').text = 'New Content';

document.getElement('myDiv').innerText = 'New Content';

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức querySelector() trả về:

Một phần tử đầu tiên phù hợp với điều kiện tìm kiếm

Một mảng các phần tử phù hợp với điều kiện tìm kiếm

Một danh sách các phần tử phù hợp với điều kiện tìm kiếm

Một object chứa tất cả các phần tử phù hợp với điều kiện tìm kiếm

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?