Trong Python, hàm được định nghĩa bằng từ khóa nào?

Ôn Tập Tin Học 10 GDPT

Quiz
•
Computers
•
10th Grade
•
Easy
Thanhnoel Nguyen
Used 4+ times
FREE Resource
57 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
function
def
lambda
return
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Kết quả của đoạn mã sau là gì?
13
14
12
Lỗi
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Hàm print() trong Python thuộc loại hàm nào?
Hàm tự định nghĩa
Hàm nhập liệu
Hàm thiết kế sẵn
Hàm logic
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Đâu là cú pháp đúng để gọi một hàm trong Python?
my_function()
my_function:
call my_function()
invoke my_function()
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Trong một hàm Python, từ khóa nào sau đây được sử dụng để trả lại giá trị?
return
yield
break
continue
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Hàm input() trong Python dùng để làm gì?
Xuất dữ liệu ra màn hình
Nhập dữ liệu từ bàn phím
Tính toán các biểu thức
Kiểm tra kiểu dữ liệu
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Trong Python, khi muốn viết một hàm có nhiều tham số, ta làm như thế nào?
Sử dụng dấu phẩy để ngăn cách các tham số
Sử dụng dấu chấm phẩy
Sử dụng dấu hai chấm
Không thể viết hàm nhiều tham số
Create a free account and access millions of resources
Similar Resources on Quizizz
54 questions
ôn tập giữa kỳ 1 tin 9 kntt

Quiz
•
10th Grade
60 questions
Tin nhé

Quiz
•
10th Grade
53 questions
TÔI YÊU TIN

Quiz
•
10th Grade
53 questions
Tin 10 kt cuối kì 2

Quiz
•
10th Grade
52 questions
Lớp 3: Câu hỏi kiểm tra năng lực Tin học HK1

Quiz
•
3rd Grade - University
53 questions
ÔN TẬP TIN 10_LINK1

Quiz
•
10th Grade
60 questions
TIN 7 Bài 1,2,3

Quiz
•
7th Grade - University
57 questions
Bài kiểm tra Logic và Lập trình Python

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade