
B28.2-Tin10
Authored by TRUC Ng
Instructional Technology
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là bao nhiêu?
>>>def f(a,b):
return a + b + N
>>> N = 5
>>>f(3, 3)
5.
6.
11.
Chương trình bị lỗi.
2.
MULTIPLE CHOICE QUESTION
30 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
30 sec • 1 pt
Hoàn thiện (…) trong phát biểu sau "Trong Python tất cả các biến khai báo bên trong hàm đều có tính …, không có hiệu lực ở bên … hàm"
địa phương, trong.
cục bộ, ngoài.
địa phương, ngoài.
toàn cục, ngoài.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nếu biến bên ngoài hàm muốn có tác dụng bên trong hàm ta dùng từ khóa nào?
global.
def.
len().
int().
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hãy sửa lỗi cho chương trình sau?
def f():
n = n + 1
return n
n = 15
a = f()
print(a)
Đưa n vào hàm số khi khai báo hàm f().
Khai báo biến n là global trong hàm f().
Sử dụng cách sửa A hoặc B đều đúng.
Cách sửa A và B không đúng.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nếu muốn biến bên ngoài vẫn có tác dụng bên trong hàm thì cần khai báo lại biến này bên trong hàm với từ khoá nào?
global.
def.
Không thể thực hiện
all.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là bao nhiêu?
def kq(name):
s = "Tôi tên là: "
s = s+ name
return s
print(kq("Xuân"))
"Tôi tên là: ".
"Xuân".
"Tôi tên là: Xuân".
Chương trình bị lỗi
Access all questions and much more by creating a free account
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
15 questions
ôn thi học kì 1. CN6
Quiz
•
1st - 12th Grade
15 questions
Excel
Quiz
•
12th Grade
10 questions
Fun with Numpy
Quiz
•
9th - 12th Grade
10 questions
Teste de Robótica
Quiz
•
6th Grade - University
11 questions
Linh kiện bán dẫn IC ( Tiếp)
Quiz
•
12th Grade - University
10 questions
2/3.BGU - HTML
Quiz
•
12th Grade
10 questions
KTTX - BÀI 7 - K12
Quiz
•
12th Grade
13 questions
Instrucțiuni simple C++
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Instructional Technology
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
23 questions
TSI Math Vocabulary
Quiz
•
10th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
Predicting Products
Quiz
•
9th - 12th Grade
20 questions
Presidents Day challenge
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
20 questions
Banking
Quiz
•
9th - 12th Grade