HÀM TRONG PY BYE
Quiz
•
English
•
10th Grade
•
Practice Problem
•
Medium
vy the
Used 1+ times
FREE Resource
Enhance your content in a minute
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 1 (Mã câu 527077): Chương trình khi chạy phát sinh lỗi ngoại lệ NameError, nên xử lí như thế nào?
A. Kiểm tra lại chỉ số trong mảng.
B. Kiểm tra lại tên các biến và hàm.
C. Kiểm tra giá trị của số bị chia.
D. Kiểm tra kiểu dữ liệu nhập vào.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 4 (Mã câu 527144): Chương trình chạy phát sinh lỗi ngoại lệ TypeError, nên xử lí như thế nào?
A. Kiểm tra lại chỉ số trong mảng
B. Kiểm tra lại giá trị số chia.
C. Kiểm tra giá trị của số bị chia
D. Kiểm tra kiểu dữ liệu nhập vào
Answer explanation
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5 (Mã câu 527203): Khi gặp lỗi liên quan đến giá trị của đối tượng Python sẽ báo lỗi gì?
A. ValueError
B. IndentationError.
C. TypeError.
D. ZeroDivisionError
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6 (Mã câu 527231): Thế nào là lỗi ngoại lệ trong Python?
A. Lỗi khi viết một câu lệnh sai cú pháp của ngôn ngữ lập trình
B. Lỗi khi truy cập một biến chưa được khai báo.
C. Lỗi khi không thể thực hiện một lệnh nào đó của chương trình.
D. Lỗi khi chương trình biên dịch sang tệp exe.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 7 (Mã câu 527234): Chương trình chạy phát sinh lỗi ngoại lệ ZeroDivision, nên xử lí như thế nào?
A. Kiểm tra lại giá trị số chia.
B. Kiểm tra lại chỉ số trong mảng
C. Kiểm tra giá trị của số bị chia.
D. Kiểm tra kiểu dữ liệu nhập vào.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 8 (Mã câu 527526): Cho đoạn chương trình sau:
a=int(input()
print(a)
Lỗi trong chương trình trên là lỗi
A. Cú pháp
B. Ngữ nghĩa
C. Ngoại lệ
D. Tất cả các lỗi trên
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 9 (Mã câu 527559): Chương trình sau nên sửa như thế nào. Chọn phương án đúng nhất:
f = [1,3,4]
print(f[4])
A. Thay đổi kiểu dữ liệu của từng phần tử trong mảng
B. Kiểm tra chỉ số của mảng khi thực hiện lệnh.
C. Thay đổi tên mảng.
D. Chương trình không có lỗi.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
26 questions
can can't
Quiz
•
1st Grade - University
31 questions
English File Intermediate Unit 3B - Dependent Prepositions
Quiz
•
6th Grade - Professio...
26 questions
ÔN LUYỆN ANH CUỐI KÌ 1 (24-25)
Quiz
•
10th Grade
26 questions
Revision 1
Quiz
•
3rd Grade - University
26 questions
Test primero medio, miercoles 28 (identificar y aplicar)
Quiz
•
9th - 12th Grade
26 questions
REVIEW UNIT 4 - 5
Quiz
•
9th - 12th Grade
26 questions
Gateway to the World B1+ Unit 2 WB Reading
Quiz
•
3rd Grade - University
26 questions
PRE B-MONTH 3-UNIT 7
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for English
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Identifying Main Ideas and Supporting Details
Interactive video
•
6th - 10th Grade
10 questions
Exploring Figurative Language Concepts
Interactive video
•
6th - 10th Grade
5 questions
E2 STAAR Blitz Day 3: Informational
Lesson
•
9th - 12th Grade
12 questions
Direct vs. Indirect Characterization
Quiz
•
7th - 10th Grade
