Trong Python, từ khóa nào được sử dụng để khai báo một hàm

Python 1

Quiz
•
Computers
•
10th Grade
•
Medium

Tri Dang Cong
Used 5+ times
FREE Resource
99 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class
def
function
declare
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, hàm nào được sử dụng để tính giá trị tuyệt đối của một số
abs()
ceil()
floor()
round()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, đoạn mã nào sẽ in ra giá trị của biến x và y
x = 5
y = 10
print("x is", x, "and y is", y)
x is 10 and y is 5
x = 5 and y = 10
x is 5 and y is 10
x and y are both 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, đoạn mã nào sẽ in ra số lớn nhất trong danh sách sau: [5, 10, 3, 8, 1]
print(max([5, 10, 3, 8, 1]))
print(min([5, 10, 3, 8, 1]))
print(sum([5, 10, 3, 8, 1]))
print(len([5, 10, 3, 8, 1]))
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, đoạn mã nào sẽ in ra tất cả các phần tử trong danh sách sau: ["apple", "banana", "cherry"]?
print(list["apple", "banana", "cherry"])
print([apple, banana, cherry])
print(["apple", "banana", "cherry"])
print("apple, banana, cherry")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, đoạn mã nào sẽ in ra giá trị của biến x sau khi nó được tăng lên 1 đơn vị
x = 5
x += 1
print(x)
5
6
7
Không có câu trả lời đúng
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn mã sau sẽ in ra gì
for i in range(10):
print(i)
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
0, 1, 2, 3, 4, 5, 6, 7, 8
1, 2, 3, 4, 5, 6, 7, 8, 9
Create a free account and access millions of resources
Similar Resources on Quizizz
95 questions
Câu Hỏi Trắc Nghiệm Tin Học 10

Quiz
•
10th Grade
100 questions
Uji petik power system

Quiz
•
10th Grade
97 questions
ICT - Baseline Year 10

Quiz
•
10th Grade
94 questions
N5 Computing Science: Data Representation

Quiz
•
10th Grade
95 questions
Ôn tập HK2

Quiz
•
10th Grade
101 questions
tin cuối kỳ 10

Quiz
•
9th - 12th Grade
101 questions
10 ĐIỂM TIN TRONG TẦM TAY

Quiz
•
10th Grade
100 questions
CĐ F Tin 10 - 11

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University