
bài 29,30
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
Đỗ Hiếu
Used 2+ times
FREE Resource
Enhance your content in a minute
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
Publisher Basics
Quiz
•
7th - 10th Grade
20 questions
Hoja de Calculo
Quiz
•
12th Grade
20 questions
Perangkat Lunak dan Struktur Pemrograman (UH 2)
Quiz
•
10th Grade
20 questions
Perakitan dan Pengujian Komputer - KJD
Quiz
•
10th Grade
20 questions
Operator Aritmetika dan Perbandingan
Quiz
•
10th Grade
18 questions
TRAC NGHIEM 12
Quiz
•
12th Grade
16 questions
Hour_of_Code
Quiz
•
5th - 12th Grade
20 questions
Câu hỏi ôn tập GK2
Quiz
•
9th 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
