Search Header Logo

trắc nghiệm tin

Authored by Khoa Phong

Others

KG

Used 1+ times

trắc nghiệm tin
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 1. Trong Python, kiểu dữ liệu dùng để lưu trữ dãy các ký tự gọi là gì?

A. list

B. int

C. string

D. float

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 2. Xâu kí tự trong Python được đặt trong dấu nào?

A. Dấu ngoặc vuông [ ]

B. Dấu nháy đơn ' ' hoặc nháy kép " "

C. Dấu ngoặc tròn ( )

D. Dấu ngoặc nhọn { }

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 3. Kết quả của lệnh type("Hello") trong Python là gì?

A. int

B. str

C. list

D. bool

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 4. Để nối hai xâu kí tự với nhau trong Python, ta dùng phép toán nào?

A. +

B. -

C. *

D. /

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 5. Hàm nào dưới đây được dùng để tính độ dài của xâu kí tự trong Python?

A. len()

B. count()

C. length()

D. size()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 6.

Khi thực hiện lệnh s = "Hello" + "World", giá trị của s là:

A. Hello World

B. HelloWorld

C. Hello+World

D. Hello World!

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 7.

Giá trị của biểu thức "Python"[0] là gì?

A. P

B. y

C. 0

D. Python

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?