
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
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
Similar Resources on Wayground
20 questions
BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON

Quiz
•
10th Grade - University
20 questions
Câu Hỏi Ôn Tập CodeCombat

Quiz
•
10th Grade
10 questions
MICROSOFT EXCEL

Quiz
•
10th Grade
10 questions
Kiểu Dữ Liệu Xâu Kí Tự

Quiz
•
10th Grade
16 questions
9 Weeks Test

Quiz
•
9th - 12th Grade
10 questions
Методы сортировки в Python

Quiz
•
10th Grade
15 questions
Prova PR: Algoritmos: HTML, CSS, JS

Quiz
•
9th - 12th Grade
20 questions
INFORMATIKA

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
21 questions
Lab Safety

Quiz
•
10th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade