Search Header Logo

10. Bài 29

Authored by Tin học Nguyễn Bỉnh Khiêm undefined

Computers

10th Grade

Used 3+ times

10. Bài 29
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chương trình báo lỗi SyntaxError. Đây là lỗi gì?

Lỗi liên quan đến giá trị của đối tượng

Lỗi kiểu dữ liệu

Lỗi khi các dòng lệnh thụt vào không thẳng hàng hoặc không đúng vị trí

Lỗi cú pháp

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong lời gọi hàm, nếu các đối số được truyền vào hàm bị thiếu thì lỗi ngoại lệ phát sinh thuộc loại nào dưới đây?

Không phát sinh lỗi ngoại lệ.

NameError.

Syntax Error.

TypeError

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mã lỗi ngoại lệ của lệnh sau là float("2 + 3")

IndexError.

ValueError.

SyntaxError.

TypeError.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh sau có lỗi thuộc loại nào?

123ab = {1,2,3]

print(123ab)

Không có lỗi.

Lỗi ngoại lệ.

Lỗi cú pháp.

Lỗi khác.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hãy nêu mã lỗi ngoại lệ của lệnh int("abc")?

TypeError

NameError

ValueError

SyntaxError

6.

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)

ValueError.

NameError.

Type Error.

SyntaxError.

7.

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)

SyntaxError.

Type Error.

ValueError.

NameError.

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?