<script>
arr=[8,15,4,10,7];
var s = arr.sort().toString();
</script>
76-90
Quiz
•
English
•
12th Grade
•
Hard
AN QUANG
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
<script>
arr=[8,15,4,10,7];
var s = arr.sort().toString();
</script>
. 4,7,8,10,15
10,15,4,7,8
4 7 8 10 15
Lỗi cú pháp
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
<style>
#box {
height: 100px;width: 300px; padding: 10px; margin: 3px;
border: 1px solid blue;
}
</style>
Cho biết giá trị biến width và height khi câu lệnh jQuery sau đây thực thi:
```javascript
width = $("#box").innerWidth();
height = $("#box").innerHeight();
300 và 100
310 và 110
320 và 120
322 và 122
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để viết hàm trong JavaScript, cú pháp nào sau đây là đúng?
function:myFunction() {}
function myFunction[] {}
function myFunction() {}
function:myFunction[] {}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho mã HTML như bên dưới:
```html
<body>
<p>HTML</p>
<p>CSS</p>
<p>Javascript</p>
<p>jQuery</p>
</body>
```
Cho biết mã lệnh jQuery nào sau đây cho phép thiết lập màu nền vàng và chữ đỏ cho chuỗi HTML?
`$("p:first").css({"background-color":"yellow",color:"red"});`
`$("p:first-child").css({"background-color":"yellow",color:"red"});`
`$("p:first-child").css({"background-color":"yellow", color:"red"});`
$("p:first").css({"background-color":"yellow", color:"red"});`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong jQuery, khi người dùng nhập một chuỗi vào phần tử `<input type="text">` và nhấn phím Enter, sự kiện (event) nào được phát sinh?
focus
blur
change
select
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong CSS, thuộc tính `z-index` được sử dụng để làm gì trong thiết kế giao diện?
Điều chỉnh kích thước của phần tử
Điều chỉnh màu nền của phần tử
Điều chỉnh vị trí xác định của phần tử
Điều chỉnh thứ tự chồng chéo (stacking order) của phần tử
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong JavaScript, phương thức nào được sử dụng để lặp qua các phần tử trong một mảng và thực hiện một hàm cho mỗi phần tử?
`forEach()`
map()
`filter()`
`reduce()`
20 questions
FURTHER EDUCATION
Quiz
•
9th - 12th Grade
12 questions
GS12 GKII VOCA
Quiz
•
12th Grade
13 questions
VOCABULARY REVIEW (16) - A
Quiz
•
12th Grade
18 questions
Toán 5 lần 3
Quiz
•
1st Grade - University
10 questions
KTTXL1_KII_11A1
Quiz
•
12th Grade
10 questions
passive voice exercise
Quiz
•
7th - 12th Grade
15 questions
HTML
Quiz
•
12th Grade - University
13 questions
TTKTTHPTQG- CÂU HỎI ĐUÔI
Quiz
•
12th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade
65 questions
MegaQuiz v2 2025
Quiz
•
9th - 12th Grade
10 questions
GPA Lesson
Lesson
•
9th - 12th Grade
15 questions
SMART Goals
Quiz
•
8th - 12th Grade
45 questions
Week 3.5 Review: Set 1
Quiz
•
9th - 12th Grade