
Bài 28
Authored by Gia Đặng
Other
10th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
16 questions
Show all answers
1.
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”.
toàn cục, ngoài.
địa phương, ngoài.
cục bộ, ngoài.
địa phương, trong.
Chọn đáp án khác biệt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Số phát biểu đúng trong các phát biểu sau là:
1) Tất cả các biến bên trong hàm đều có tính cục bộ.
2) Tất cả các biến bên trong hàm chỉ có tính cục bộ.
3) Biến cục bộ trong hàm nếu gọi bên ngoài hàm sẽ bị lỗi.
1.
2.
3.
0.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chọn phát biểu sai trong các phát biểu sau:
Chương trình chính có thể sử dụng biến cục bộ bên trong hàm.
Các biến bên trong hàm không có hiệu lực ở bên ngoài hàm.
Tất cả các biến trong hàm đều có tính cục bộ.
Biến bên trong hàm có thể trùng tên với biến đã khai bao trước đó bên ngoài hàm.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giá trị của x, y là bao nhiêu khi thực hiện lệnh f(1, 3)
>>> x, y = 3, 4
>>> def f(x, y):
x = x + y
y = y + 2
return x
2, 3
4, 5
5, 4
3, 4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình này là bao nhiêu?
s = "Tôi tên là: "
def kq(name):
s = s+ name
print(kq("Long"))
Chương trình bị lỗi.
“Tôi tên là: ”.
“Long”.
"Tôi tên là: Long”.
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
Không thể thực hiện
Global
Def
All
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết kết quả của chương trình sau:
def changeme(mylist):
mylist.append([1,2,3,4])
mylist = [10,20,30]
changeme( mylist)
print(mylist)
[10, 20, 30, 1, 2, 3, 4].
[10, 20, 30].
[10, 20, 30, [1, 2, 3, 4]].
[1, 2, 3, 4].
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
14 questions
Fault Finding
Quiz
•
1st - 12th Grade
17 questions
Elementele de bază ale limbajului C++
Quiz
•
10th Grade
20 questions
KWSH - Volunteer Orientation
Quiz
•
9th - 12th Grade
15 questions
Grundlagen der Ernährung
Quiz
•
10th Grade
20 questions
Topographic Maps Practice
Quiz
•
8th - 10th Grade
18 questions
Genetics- Animal Science
Quiz
•
10th - 12th Grade
20 questions
Chemical Engineering
Quiz
•
9th - 12th Grade
14 questions
Ôn tập kỳ I lớp 4 0405
Quiz
•
3rd Grade - University
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 Other
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
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
10 questions
Plotting Points on a Coordinate Plane: Quadrant 1 Essentials
Interactive video
•
6th - 10th Grade
10 questions
Exploring Abiotic and Biotic Factors in Ecosystems
Interactive video
•
6th - 10th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade