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
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
15 questions
HTML
Quiz
•
Professional Development
10 questions
PLSQL and Cursor Quiz
Quiz
•
Professional Development
11 questions
JavaScript
Quiz
•
Professional Development
10 questions
Kiểm tra đợt 15 phút
Quiz
•
Professional Development
15 questions
Introduction to PHP
Quiz
•
Professional Development
15 questions
JavaScript ( part I )
Quiz
•
Professional Development
10 questions
Python quiz
Quiz
•
10th Grade - Professi...
10 questions
php- basics
Quiz
•
Professional Development
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade