
Bài 26: Hàm trong Python
Authored by 0032 Trương Thị Đào
Information Technology (IT)
10th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Điền vào chỗ trống để hoàn thành cú pháp khai báo hàm trong Python:
______ ten_ham(tham_so):
<Khối lệnh của hàm>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào đúng khi gọi một hàm tính tổng gồm 2 tham số a và b?
tong[a,b]
tong(a,b)
tong{a,b}
tong<a,b>
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Chọn 2 phát biểu đúng về hàm trong Python
Một hàm có thể không có tham số
Hàm giúp tái sử dụng mã nguồn
Hàm luôn phải có từ khóa return
Có thể gọi hàm trước khi khai báo nó
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi một hàm không có lệnh return, giá trị mặc định mà nó trả về là gì
0
None
"' (Chuỗi rỗng)
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm có giá trị trả về sử dụng từ khóa nào
output
return
def
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Trong đoạn code sau, các hàm nào đã được sử dụng
for i in range(5):
print(i)
Hàm range()
Hàm print()
Hàm input()
Hàm abs()
Answer explanation
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm trong Python được sử dụng để làm gì?
Giúp chia chương trình thành các phần nhỏ, dễ quản lý
Giúp chương trình chạy nhanh hơn
Dùng để tạo biến mới
Chỉ có tác dụng hiển thị dữ liệu ra màn hình
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
9 questions
Ôn tập HKI Công nghệ - Khối 5
Quiz
•
5th Grade - University
10 questions
Kiểm Tra Bài Cũ
Quiz
•
10th Grade
10 questions
Koding dan Kecerdasan Artifisial
Quiz
•
10th Grade
10 questions
Scratch - základy
Quiz
•
6th Grade - University
10 questions
แบบทดสอบ Unit D
Quiz
•
4th Grade - University
10 questions
Uji Pemahaman Berpikir Komputasional
Quiz
•
10th Grade - University
10 questions
Soal Menyaring Profesi di bidang informatika
Quiz
•
10th Grade - University
15 questions
Bài 33
Quiz
•
10th Grade - University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
12 questions
Equation of a Circle
Lesson
•
10th Grade
18 questions
Mendelian Genetics
Quiz
•
10th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade