
Kiểm thử chương trình Python
Authored by Lê Long
Information Technology (IT)
10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
16 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 ba 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
Chương trình sau thông báo lỗi gì? For i in range(10) print(i)
Type Error.
NameError.
ValueError.
SyntaxError.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mã lỗi ngoại lệ của lệnh sau là float(2 + 3")
IndexError.
TypeError.
ValueError
SyntaxError
4.
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.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình chạy phát sinh lỗi ngoại lệ ZeroDivision, nên xử lí như thế nào?
Kiểm tra lại giá trị số chia.
Kiểm tra lại chỉ số trong mảng,
Kiểm tra giá trị của số bị chia.
Kiểm tra kiểu dữ liệu nhập vào.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chương trình chạy phát sinh lỗi ngoại lệ NameError, nên xử lí như thế nào?
Kiểm tra lại chỉ số trong mảng.
Kiểm tra lại tên các biến và hàm.
Kiểm tra giá trị của số bị chia.
Kiểm tra kiểu dữ liệu nhập vào.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu KHÔNG phải là công cụ để kiểm thử chương trình?
Công cụ điểm dừng trong phần mềm soạn thảo lập trình.
Công cụ thống kê dữ liệu.
Công cụ in biến trung gian.
Công cụ sinh các bộ dữ liệu test.
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
20 questions
Video Game Programming and Design Questions
Quiz
•
9th - 12th Grade
15 questions
Lesson 1: Online Services
Quiz
•
9th - 12th Grade
15 questions
Câu lệnh rẽ nhánh trong Python
Quiz
•
10th Grade
20 questions
Kiểm tra TX
Quiz
•
10th Grade
20 questions
Microsoft Word
Quiz
•
9th - 12th Grade
15 questions
Understanding OSI Model Layers 5-7
Quiz
•
10th Grade
20 questions
Pengenalan Bahasa Pemrograman Python
Quiz
•
9th Grade - University
15 questions
Selection Programming_If condition
Quiz
•
8th Grade - University
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 Information Technology (IT)
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
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade