Giả sử hàm f() có hai tham số khi khai báo. Khi gọi hàm, 2 giá trị đối số
nào truyền vào sẽ gây lỗi?
Bài 27. Tham số của hàm

Quiz
•
Education
•
10th Grade
•
Medium
Trọng Hiếu
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
3, 4
5, c
"a","b"
"3","4"
Answer explanation
Giá trị của biến c chưa được định nghĩa nên gây lỗi
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Khi định nghĩa hàm f(a, b, c), khi gọi hàm f có bao nhiêu đối số?
0
1
2
3
Answer explanation
Các đối số truyền vào khi gọi hàm phải tương ứng với số lượng các tham số
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Các tham số của f có kiểu dữ liệu gì nếu hàm f được gọi như sau: f('5.0')
str
float
int
Không xác định
Answer explanation
>>> def f(a):
return type(a)
>>> f('5.0')
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Khi gọi hàm f(1, 2, 3), khi định nghĩa hàm f có bao nhiêu tham số?
0
1
2
3
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Giá trị của m là bao nhiêu sau biết kết quả là 5:
1
4
2
3
Answer explanation
def tinhSum(a, b):
return a + b
s = tinhSum(1, 4)
print(s)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Chương trình sau bị lỗi ở dòng thứ mấy?
Dòng 2
Dòng 3
Dòng 4
Dòng 5
Answer explanation
Giá trị của biến m chưa được định nghĩa
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Giá trị của x là bao nhiêu để kết quả của s bằng 11?
3
2
1
4
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
11 Qui show 2

Quiz
•
10th Grade
10 questions
Huult_ss56_EQL_L0; L1_Share; Type of Share

Quiz
•
8th - 10th Grade
15 questions
Kỹ năng học trực tuyến

Quiz
•
1st Grade - Professio...
8 questions
KHỞI ĐỘNG BÀI 26 - TIN 10 KNTT- HIỀN TRẦN

Quiz
•
10th Grade
10 questions
KIỂM TRA TIN HOC 4 HKI

Quiz
•
1st - 10th Grade
10 questions
Kiểm tra tin 10 bài 26,27,28

Quiz
•
9th - 12th Grade
10 questions
ĐIỆN THOẠI

Quiz
•
10th Grade
10 questions
TRAO DUYÊN

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Education
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade