
test thử bài ktra sở
Authored by Song Song
Computers
10th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Tìm lỗi SAI trong khai báo biến nguyên Max sau đây?
Max = 2021:
Thừa dấu (:).
Thừa dấu (=).
Câu lệnh đúng.
Tên biến trùng với từ khoá.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho đoạn lệnh sau giải bài toán tìm UCLN của 2 số M, N:
while M != N:
if M > N
M = M – N
else:
N = N – M
Cho biết các câu lệnh trên có lỗi gì? (tên mã lỗi)
NameError
SyntaxError
TypeError
ValueError
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn lệnh sau, kết quả khi chạy là:
j = 0
for i in range(10):
if i%3 == 0:
j = j + i
print(j)
18
25
45
15
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Kết quả của chương trình sau là:
x = 8
y = 2
while y < x:
x = x - 2
print(x, end = " ")
8, 6, 4, 2
8, 6, 4, 2, 0
6, 4, 2
8, 6, 4
5.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Câu lệnh nào sau đây KHÔNG báo lỗi?
float(4)
int(“1+3”)
int(“3”)
float(“1+2+3”)
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Kết quả của chương trình sau:
x = 8
y = 9
if x > y: print('x=8')
else:
if x==y: print('x bằng y')
else: print('y=9')
x=8
y=9
Chương trình bị lỗi.
x bằng y
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phần mở rộng nào sau đây là ĐÚNG của tệp Python?
.pl
.py
.python
.pt
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?