
Ktra TX_tin 10_l2
Quiz
•
Computers
•
Professional Development
•
Hard
Vi Thị Chiến
Used 12+ times
FREE Resource
10 questions
Show all answers
1.
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
3,4
4,5
5,4
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
“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”.
3.
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
int
out
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là:
def add(x,y):
print(x+y)
x=15
add(x ,10)
add(x,x)
y=20
add(x,y)
25,35,30
25,30,35
35,30,25
chương trình bị lỗi
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau thông báo lỗi gì?
for i in range(10) print(i)
TypeError
NameError
SyntaxError
ValueError
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau thông báo lỗi gì?
n = 5
for i in range(n):
prin(t)
Type Error
NameError
SyntaxError
ValueError
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau thông báo lỗi gì?
lst = [1, 2, 3, 4, 5]
for i in range(10):
print(lst[i])
ValueError
SyntaxError
NameError
IndexError
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
15 questions
Code X Trade
Quiz
•
Professional Development
15 questions
JS
Quiz
•
Professional Development
10 questions
Who developed C language
Quiz
•
Professional Development
7 questions
Flutter_Q2 G4
Quiz
•
Professional Development
15 questions
DOT NET-SET1
Quiz
•
Professional Development
11 questions
CNPM C1 P1
Quiz
•
Professional Development
10 questions
List
Quiz
•
Professional Development
10 questions
Java Increment & Decrement Operators
Quiz
•
Professional Development
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
