
Bài 26: Hàm trong Python
Quiz
•
Information Technology (IT)
•
10th Grade
•
Medium
0032 Trương Thị Đào
Used 8+ times
FREE Resource
Enhance your content in a minute
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
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
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
10 questions
Quiz Proses Komputasi dan Data Bersih
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Translations, Reflections & Rotations
Quiz
•
8th - 10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade
