
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
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
Computer Languages
Quiz
•
6th - 12th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
10 questions
Truy tìm Anh tài ( Bài 2 Tin 4)
Quiz
•
4th Grade - University
10 questions
CỦNG CỐ KIẾN THỨC BÀI 2 - TIN HỌC 12
Quiz
•
10th - 12th Grade
10 questions
Đố vui 2
Quiz
•
8th Grade - Professio...
10 questions
Bài 34–Nghề phát triển phần mềm
Quiz
•
10th Grade
11 questions
Ôn tập Lớp 3
Quiz
•
4th - 12th Grade
15 questions
Pemrograman
Quiz
•
9th - 12th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
