
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
10 questions
Quiz Proses Komputasi dan Data Bersih
Quiz
•
10th Grade
15 questions
Selection Programming_If condition
Quiz
•
8th Grade - University
10 questions
Python Basics Quiz
Quiz
•
8th Grade - University
10 questions
Quiz về tìm kiếm thông tin trên WWW
Quiz
•
6th Grade - University
10 questions
Kecerdasan Buatan dan Pemrograman
Quiz
•
10th Grade
6 questions
Câu hỏi về Ngôn ngữ lập trình Python
Quiz
•
10th Grade
10 questions
QUIZ 2 PLC
Quiz
•
10th Grade - University
10 questions
BASIC Programming (I)
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade