
bài hàm trong python 10
Quiz
•
Computers
•
10th Grade
•
Practice Problem
•
Medium
Lan Trịnh
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, từ khóa nào được sử dụng để định nghĩa một hàm?
lambda
function
def
define
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu là cú pháp đúng để định nghĩa một hàm có tên hello trong Python?
def hello:
define hello():
def hello():
function hello()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, hàm return có tác dụng gì?
Kết thúc hàm và trả về giá trị
In giá trị ra màn hình
Lặp lại nội dung hàm
Định nghĩa một biến toàn cục
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm print() trong Python thuộc loại nào?
Toán tử logic
Biến toàn cục
Hàm có sẵn (built-in function)
Hàm do người dùng tự định nghĩa
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu là cách đúng để gọi một hàm có tên square với tham số 4?
square(4)
square = 4
square = 4
def square(4)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, một hàm có thể có bao nhiêu tham số?
Tối đa 2 tham số
Tối đa 5 tham số
Không giới hạn số lượng tham số
Chỉ có 1 tham số
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, từ khóa nào dùng để trả về giá trị từ một hàm?
yield
return
break
continue
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
Already have an account?
Similar Resources on Wayground
13 questions
python A
Quiz
•
10th Grade
5 questions
Máy tính - những người bạn mới
Quiz
•
1st Grade - University
10 questions
A BBC micro:bit
Quiz
•
3rd - 12th Grade
10 questions
analisis data dan visualisasi data
Quiz
•
10th Grade
13 questions
ÔN TẬP WHILE & IF
Quiz
•
10th Grade
15 questions
BÀI 16 - THUẬT TOÁN SẮP XẾP
Quiz
•
9th Grade - University
10 questions
Tuần 20_Chỉnh sửa hình ảnh
Quiz
•
2nd Grade - University
10 questions
CLB_TIN HỌC
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
