
MD1_Ôn tập 1
Quiz
•
Education
•
1st - 5th Grade
•
Medium
Bach Nguyen
Used 24+ times
FREE Resource
60 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Gọi hàm có tên là myFunction() như thế nào?
call myFunction();
myFuncti0n();
myFunction{};
myFunction();
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu là những mô tả đúng về hàm được khai báo dưới đây:
function add(a, b) {
return a + b;}
Hàm trả về số nguyên là tổng của hai tham số truyền vào
Hàm thiếu kiểu dữ liệu trả về
Hàm có 2 tham số và không trả về kết quả
Hàm có tên là add và Hàm có 2 tham số
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho hàm func1 như sau:
function func1(a) {
if (a == 2) {
return 2;
}
return a * func1(a - 1);
}
console.log(func1(5));
120
5
240
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Một hàm trong JavaScript bắt buộc phải có lệnh return để trả về kết quả?
Đúng
Sai
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hãy phân tích và chỉ ra kết quả thực thi đoạn mã sau:
function swap(a, b) {
var temp = a;
a = b;
b = temp;
}
var a = 8; var b = 9; swap(a, b); document.write("a = " + a + ", b = " + b)
a = 8, b = 9
a = 8, b = 8
a = 9, b = 8
a=9, b=9
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Xác định kết quả của biến sum sau khi đoạn mã sau được thực thi:
function add(a, b) {
return a + b;
}
let sum = add("5", "7");
console.log(sum);
not defined
57
12
Xảy ra lỗi
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mô tả nào không đúng về hàm sau:
function add(a, b) {
return a + b;
}
Hàm sai cú pháp
Hàm không có dữ liệu trả về
Chỉ nhận vào tham số dạng số
Tất cả đều đúng
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Education
14 questions
Spookley the Square Pumpkin
Quiz
•
2nd Grade
15 questions
Week 13 ELA Spiral Review
Quiz
•
3rd Grade
15 questions
Complex sentences
Quiz
•
5th Grade
10 questions
Welcome Back Wolves/Wolves Don't Belong in Yellowstone
Quiz
•
3rd Grade
16 questions
Equivalent Fractions
Quiz
•
5th Grade
20 questions
Fragments and Run-Ons
Quiz
•
4th Grade
7 questions
Ephesians 6: 10-16 Assessment
Quiz
•
1st - 5th Grade
