
bài 29,30
Authored by Đỗ Hiếu
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 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.”
A. sai, lôgic.
B. đúng, Syntax Error.
C. đúng, lôgic.
D. sai, ngoại lệ.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Mã lỗi ngoại lệ của lệnh sau là float(“2 + 3”)
A. IndexError.
B. TypeError.
C. ValueError.
D. SyntaxError.
Answer explanation
value là giá trị
value errol lỗi liên quan gtri
float(....) trong ngoặc gọi là giá trị
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Chương trình sau mắc lỗi gì?
#Tính tích của 3 số nguyên dương đầu tiên.
>>>s = 1
>> for i in range(3)
>>>s = s * i
>>>print(s)
0
A. Lôgic.
B. Sai cú pháp.
C. Lỗi ngoại lệ.
D. Không có lỗi.
Answer explanation
chương trình chạy ko lỗi mà kết quả sai
--> lỗi logic
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Chương trình sau thông báo lỗi gì?
for i in range(10) print(i)
A. Type Error.
B. NameError.
C. SyntaxError.
D. ValueError.
Answer explanation
bị sai cú pháp thiếu dấu :
nên suy ra syntaxError là lỗi cú pháp
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Mã lỗi ngoại lệ của lệnh sau là
s = “12” + 12
A. ZeroDivisionError.
B. TypeError.
C. IndentationError
D. SyntaxError.
Answer explanation
type là kiểu dữ liệu
typeError là lỗi kiểu dữ liệu
Sai ở chỗ đang cộng phép toán mà có kí tự " "
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Mã lỗi nào được đưa ra khi lệnh thực hiện phép chia cho giá trị 0
A. ZeroDivisionError.
B. TypeError.
C. ValueError.
D. SyntaxError.
Answer explanation
mẹo nhớ có chữ zero
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong lời gọi hàm, nếu các đối số được truyền vào hàm bị thiếu thì lỗi ngoại lệ phát sinh thuộc loại nào dưới đây?
A. SyntaxError.
B. NameError.
C. TypeError
D. Không phát sinh lỗi ngoại lệ.
Answer explanation
type là dữ liệu cho nên các lỗi như kiểu về biên hay đối số các kiểu thì đưa về lỗi typeError
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
18 questions
HTML - podstawy
Quiz
•
9th Grade
20 questions
Ինֆորմատիկա 10 II կիսամյակի ամփոփիչ աշխատանք
Quiz
•
10th - 12th Grade
20 questions
ตอบปัญหาคอมพิวเตอร์st
Quiz
•
9th - 12th Grade
19 questions
Python Year 9 Quiz
Quiz
•
8th - 10th Grade
22 questions
LÀM QUEN VỚI TRÍ TUỆ NHÂN TẠO
Quiz
•
12th Grade
20 questions
Tin 9 KT15 23-24
Quiz
•
9th Grade
17 questions
ICT Service Solutions 2
Quiz
•
8th - 12th Grade
20 questions
ਜਮਾਤ 10 ਵੀਂ ਕੰਪਿਊਟਰ ਕੁਇਜ਼ (ਸਾਰੇ ਪਾਠ ) ਮਾਰਚ 2024 : shivesh narang
Quiz
•
10th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade