
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
Already have an account?
Similar Resources on Wayground
19 questions
Тест по Циклам Python (Cycles2)
Quiz
•
9th Grade - University
10 questions
“Elektron pochtada ishlashni boshlash” (5-sinf))
Quiz
•
5th Grade - University
15 questions
Quiz Pemrograman Arduino
Quiz
•
10th Grade - University
11 questions
Python (basics)
Quiz
•
1st Grade - University
10 questions
TRẮC NGHIỆM BÀI 1 - TIN HỌC 10 CÁNH DIỀU
Quiz
•
10th Grade
20 questions
Kelas 8 - Halaman 10 (UH Bab 1)
Quiz
•
8th Grade - University
20 questions
Kuis Ms Word 1
Quiz
•
7th Grade - University
20 questions
PENGAYAAN ULANGAN HARIAN PYTHOON
Quiz
•
10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
10 questions
Exploring Christmas Traditions Through Cartoons
Interactive video
•
6th - 10th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
33 questions
Algebra 1 Semester 1 Final 2025
Quiz
•
8th - 10th Grade
