
Kiểm thử chương trình Python
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Medium
Lê Long
Used 2+ times
FREE Resource
Enhance your content in a minute
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
Komputer
Quiz
•
10th Grade
15 questions
Binary Addition Quiz
Quiz
•
10th Grade
15 questions
BÀI 26: HÀM TRONG PYTHON
Quiz
•
10th Grade
15 questions
Understanding Loops in C Programming
Quiz
•
1st Grade - University
15 questions
Lesson 4: Sourcing and Collection of Data
Quiz
•
9th - 12th Grade
15 questions
Bài 26
Quiz
•
10th Grade - University
15 questions
Bài 25
Quiz
•
10th Grade - University
20 questions
POST TEST-ANALISIS DATA
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
18 questions
SAT Prep: Ratios, Proportions, & Percents
Quiz
•
9th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Parallel Lines Cut by a Transversal
Quiz
•
10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
