Cách nào sau đây là cách hợp lệ để bắt đầu định nghĩa hàm trong Python?

Review Python basic

Quiz
•
Thanh Lê
•
Computers
•
University
•
1 plays
•
Easy
60 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def some_function()
function some_function()
function some_function():
def some_function():
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau in ra kết quả gì?
8
5
21
18
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau in ra kết quả gì?
13
21
5
Không in gì
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh gọi hàm nào sau đây là đúng?
x=square( )
x=Square(4):
x=square(5)
print(square())
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, để khai báo hàm ta sử dụng từ khóa nào sau đây?
A. procedure
B. function
C. def
D. return
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh return dùng để?
Kết thúc vòng lặp
Trả lại giá trị
Kết thúc vòng lặp và trả lại giá trị
Kết thúc hàm và trả lại giá trị
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explore all questions with a free account
Similar Resources on Quizizz
58 questions
CHỦ ĐỀ B TIN HỌC 12 CÁNH DIỀU

Quiz
•
12th Grade - University
60 questions
HTML & CSS

Quiz
•
University
62 questions
Câu hỏi về lập trình

Quiz
•
10th Grade - University
60 questions
EXCEL

Quiz
•
University - Professi...
65 questions
Ôn tập KTCK2 Tin 10

Quiz
•
10th Grade - University
60 questions
TIN6_ÔN TẬP HKI_2425

Quiz
•
6th Grade - University
60 questions
TIN 7 Bài 1,2,3

Quiz
•
7th Grade - University
63 questions
test mask

Quiz
•
University
Popular Resources on Quizizz
19 questions
Naming Polygons

Quiz
•
3rd Grade
14 questions
Prime Factorization

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
35 questions
4th Grade Math SOL Review

Quiz
•
4th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
Discover more resources for Computers
15 questions
Disney Trivia

Quiz
•
University
20 questions
Disney Trivia

Quiz
•
University
52 questions
Logos Trivia

Quiz
•
KG - University
23 questions
History of English and Review

Quiz
•
KG - University
12 questions
Scientific Notation

Quiz
•
University
5 questions
Tone and Mood in Literature

Interactive video
•
4th Grade - University
7 questions
Food Webs and Energy Pyramids: Bedrocks of Biodiversity

Interactive video
•
11th Grade - University
8 questions
G2U6W1 - The Golden Flower: A Taino Myth from Puerto Rico

Quiz
•
2nd Grade - University