
BÀI 26: HÀM TRONG PYTHON
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Hard
Gia Uyên Đào Lê
Used 3+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Kiểu tham số khả biến gồm các kiểu gì?
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
19 questions
Pengenalan Informatika
Quiz
•
10th Grade
14 questions
Google sheets
Quiz
•
7th Grade - University
10 questions
SOAL TES DIAGNOSTIK AWAL DAN TES AKHIR
Quiz
•
10th Grade
15 questions
TES SUMATIF INFORMATIKA
Quiz
•
10th Grade
12 questions
Uji Pemahaman Microsoft Word
Quiz
•
10th Grade - University
16 questions
Desenvolvimento Web 1 (Turma A)
Quiz
•
10th Grade
16 questions
TES DIAGNOSTIK X
Quiz
•
10th Grade
15 questions
Fungsi Statistik, if dan Lookup Ms. Excel
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
Understanding Protein Synthesis
Interactive video
•
7th - 10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
