Search Header Logo

Luyện tập

Authored by Tuyen Tran

Computers

9th - 12th Grade

Used 3+ times

Luyện tập
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Hãy nêu mã lỗi ngoại lệ của lệnh sau nếu xảy ra lỗi:

A[1.5]

TypeError

NameError

IndexError

Không có lỗi

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Hãy nêu mã lỗi ngoại lệ của lệnh sau nếu xảy ra lỗi:

int("abc")

ZeroDivisionError

ValueError

SyntaxError

IndentationError

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

NameError

Lỗi này xảy ra khi lệnh thực hiện phép chia cho giá trị 0.

Lỗi cú pháp.

Lỗi xảy ra khi lệnh cố gắng truy cập phần tử của danh sách nhưng chỉ số vượt quá giới hạn.

Lỗi xảy ra khi chương trình muốn tìm một tên nhưng không thấy

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Hãy nêu mã lỗi ngoại lệ của lệnh sau nếu xảy ra lỗi:

"10"*3.5

TypeError

ValueError

SyntaxError

ZeroDivisionError

5.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Điền vào chỗ trống mã lỗi của lệnh sau:

if a<b

print('a nhỏ hơn b')

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?