Search Header Logo

bài 29 Nhận biết lỗi chương trình

Authored by Anh Đức

Computers

10th Grade

Used 4+ times

bài 29 Nhận biết lỗi chương trình
AI

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ương trình sau thông báo lỗi gì? n = 5 for i in range(n): prin(t)

A. Type Error.

B. NameError.

C. SyntaxError.

D. ValueError.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mã lỗi nào được đưa ra khi lệnh gọi một hàm nhưng không có hàm đó

ZeroDivisionError

TypeError

IndentationError

NameError

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mã lỗi nào được đưa ra khi lệnh thực hiện phép chia cho giá trị 0

ZeroDivisionError

TypeError

ValueError

SyntaxError

4.

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)

A. Type Error.

B. NameError.

C. SyntaxError.

D. ValueError.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chương trình sau thông báo lỗi gì? lst = [10, 20, 30, 40] print(lst[6])

NameError

SyntaxError

ValueError

IndexError

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dòng lệnh sau bị lỗi gì? >>>A = [1, 2] >>>A[0.5]

Lỗi lôgic

Lỗi ngoại lệ

Lỗi cú pháp

Không có lỗi

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chương trình sau thông báo lỗi gì? >>>n = int(input('Nhập n: ')) >>>Nhập n: a

A. Type Error.

B. NameError.

C. SyntaxError.

D. ValueError.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?