bài 29,30

bài 29,30

9th - 12th Grade

21 Qs

quiz-placeholder

Similar activities

Summative Test in EMPTECH 3rd

Summative Test in EMPTECH 3rd

12th Grade

20 Qs

Cyber Skills Quiz 1 - Y9

Cyber Skills Quiz 1 - Y9

9th Grade

19 Qs

12-րդ դասարան: Թեմատիկ աշխատանք: 2-րդ կիսամյակ

12-րդ դասարան: Թեմատիկ աշխատանք: 2-րդ կիսամյակ

9th - 12th Grade

17 Qs

KIỂM TRA GIỮA HK I (BỔ SUNG) TIN 9 NĂM HỌC 2023 - 2024

KIỂM TRA GIỮA HK I (BỔ SUNG) TIN 9 NĂM HỌC 2023 - 2024

9th Grade

20 Qs

Pointers

Pointers

12th Grade

20 Qs

Trắc nghiệm Tin học 9 (Phần mềm trình chiếu)

Trắc nghiệm Tin học 9 (Phần mềm trình chiếu)

9th Grade

20 Qs

Advantages and Disadvantages of Collecting Data

Advantages and Disadvantages of Collecting Data

10th Grade

20 Qs

Unit 8 Practice Test For CSP

Unit 8 Practice Test For CSP

9th Grade

16 Qs

bài 29,30

bài 29,30

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Easy

Created by

Đỗ Hiếu

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Điền vào “…” hoàn thành phát biểu sau: “Chương trình chạy không lỗi ngoại lệ nhưng kết quả đưa ra …. Đây là lỗi … bên trong chương trình.”

A. sai, lôgic.

B. đúng, Syntax Error.

C. đúng, lôgic.

D. sai, ngoại lệ.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

A. IndexError.

B. TypeError.

C. ValueError.

D. SyntaxError.

Answer explanation

value là giá trị

value errol lỗi liên quan gtri

float(....) trong ngoặc gọi là giá trị

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Chương trình sau mắc lỗi gì?

#Tính tích của 3 số nguyên dương đầu tiên.

>>>s = 1

>> for i in range(3)

>>>s = s * i

>>>print(s)

0

A. Lôgic.

B. Sai cú pháp.

C. Lỗi ngoại lệ.

D. Không có lỗi.

Answer explanation

chương trình chạy ko lỗi mà kết quả sai

--> lỗi logic

4.

MULTIPLE CHOICE QUESTION

1 min • 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.

Answer explanation

bị sai cú pháp thiếu dấu :

nên suy ra syntaxError là lỗi cú pháp

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Mã lỗi ngoại lệ của lệnh sau là

s = “12” + 12

A. ZeroDivisionError.

B. TypeError.

C. IndentationError

D. SyntaxError.

Answer explanation

type là kiểu dữ liệu

typeError là lỗi kiểu dữ liệu

Sai ở chỗ đang cộng phép toán mà có kí tự " "

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

A. ZeroDivisionError.

B. TypeError.

C. ValueError.

D. SyntaxError.

Answer explanation

mẹo nhớ có chữ zero

7.

MULTIPLE CHOICE QUESTION

1 min • 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?

A. SyntaxError.

B. NameError.

C. TypeError

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

Answer explanation

type là dữ liệu cho nên các lỗi như kiểu về biên hay đối số các kiểu thì đưa về lỗi typeError

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?