Kiểu tham số khả biến gồm các kiểu gì?

BÀI 26: HÀM TRONG PYTHON

Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
Gia Uyên Đào Lê
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Số nguyên, số thực, chuỗi và bộ (tuble).
Danh sách (list), tập hợp (set), từ điển (dict).
Số nguyên, tập hợp (set), từ điển (dict).
Số thực, danh sách (list).
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Kiểu tham số bất biến gồm các kiểu nào?
Số nguyên, số thực, chuỗi và bộ (tuble).
Danh sách (list), tập hợp (set), từ điển (dict)
Số nguyên, tập hợp (set), từ điển (dict).
Số thực, danh sách (list).
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Kết quả của chương trình sau là:
def Kieu(Number):
return type(Number);
print(Kieu (5.0))
5
float
Chương trình bị lỗi.
int
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Hàm sau có chức năng gì?
def sum(a, b):
print("sum = " + str(a + b))
Trả về tổng của hai số a và b được truyền vào.
Trả về hai giá trị a và b.
Tính tổng hai số a và b.
Tính tổng hai số a và b và hiển thị ra màn hình.
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Chương trình sau bị lỗi ở dòng lệnh thứ bao nhiêu?
def add(a, b)
sum = a + b
return sum
x = int(input("Nhập số thứ nhất:"))
y = int(input("Nhập số thứ hai:"))
tong = add(x, y)
print("Tổng là: " + str(tong))
1
2
3
4
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Cuối dòng đầu tiên của định nghĩa hàm phải có dấu gì?
Dấu ‘:’.
Dấu ‘;’.
Dấu ‘.’.
Dấu ‘,’.
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Chương trình sau hiển thị kết quả như thế nào?
def ham():
print(country)
ham("Sweden")
ham("India")
ham("Brazil")
Sweden, India, Brazil.
Sweden, Brazil, India.
Sweden, Brazil.
Chương trình bị lỗi.
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Khám Phá Nghề Nghiệp Trong Tin Học

Quiz
•
8th Grade - University
15 questions
Python String Methods Quiz

Quiz
•
10th Grade
15 questions
Bài 27

Quiz
•
10th Grade - University
15 questions
Bài 24

Quiz
•
10th Grade - University
16 questions
ĐỀ CƯƠNG ÔN TẬP KTCK II - TIN 10 (KNTT) - ĐỀ CƯƠNG SỐ 1

Quiz
•
10th Grade
15 questions
bài 26

Quiz
•
10th Grade
20 questions
ÔN TẬP GIỮA HKII TIN HỌC 10

Quiz
•
9th - 12th Grade
10 questions
Bài 26: Hàm trong Python

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 Information Technology (IT)
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