Bài 29. Nhận biết lỗi chương trình - Tin học 10

Quiz
•
Other
•
11th Grade
•
Hard
Dangthingoc Im
Used 16+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chọn phát biểu sai trong các phát biểu sau:
Có thể phân biệt lỗi chương trình Python làm 3 loại
Khi có lỗi sai cú pháp, chương trình lập tức dừng và thông báo lỗi
Lỗi ngoại lệ là lỗi không thể thực hiện một lệnh trong chương trình
Cách xử lí các loại lỗi giống nhau
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Điền vào “…” hoàn thành phát biểu sau:
“Chương trình chạy không lỗi ngoại lệ nhưng kết quả đưa ra …. Đây là lỗi … bên trong chương trình.”
sai, lôgic.
đúng, Syntax Error.
đúng, lôgic.
sai, ngoại lệ.
3.
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)
Type Error
NameError
SyntaxError
ValueError
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình sau thông báo lỗi gì?
A= [10, 20, 30, 40]
print(A[6])
NameError
SyntaxError
ValueError
IndexError
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dòng lệnh sau bị lỗi gì?
>> >A = [1, 2]
>>>A[0.5]
Lỗi lôgic
Lỗi ngoại lệ
Lỗi cú pháp
Không có lỗi
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mã lỗi nào được đưa ra khi lệnh gọi một hàm nhưng không có hàm đó?
ZeroDivisionError
TypeError
IndentationError
NameError
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mã lỗi ngoại lệ của lệnh sau là?
s = “12” + 12
ZeroDivisionError
TypeError
IndentationError
SyntaxError
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi dòng lệnh thụt vào không thẳng hàng chương trình đưa ra mã lỗi ngoại lệ nào?
ZeroDivisionError
TypeError
IndentationError
SyntaxError
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mã lỗi nào được đưa ra khi lệnh thực hiện phép chia cho giá trị 0?
ZeroDivisionError
TypeError
ValueError
SyntaxError
Similar Resources on Wayground
6 questions
2. Hidráulica Quiz #1

Quiz
•
9th - 12th Grade
10 questions
3 Examen Temperatura y humedad

Quiz
•
11th Grade
12 questions
Wilson Softball 2023-2024

Quiz
•
9th - 12th Grade
10 questions
Understanding Fire Safety

Quiz
•
8th Grade - University
12 questions
Psychology Student Experiment Key Words

Quiz
•
11th Grade
14 questions
Intro to Python Programming Quiz 9D

Quiz
•
1st Grade - University
8 questions
Test Python

Quiz
•
9th - 12th Grade
10 questions
Quiz về lớp 3A3

Quiz
•
3rd Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University