Search Header Logo

Câu hỏi trắc nghiệm về Python

Authored by HP FPT

Other

10th Grade

Used 5+ times

Câu hỏi trắc nghiệm về Python
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

Trong Python, kiểu dữ liệu nào dùng để lưu trữ chuỗi văn bản?

int

float

str

bool

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phép chia lấy dư trong Python là ký hiệu nào?

/

//

%

**

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào dùng để nhập dữ liệu từ bàn phím?

scanf()

input()

cin

get()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh print("Hello" + "World") sẽ in ra:

Hello + World

HelloWorld

Hello World

Lỗi

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu nào đúng về biến trong Python?

Biến phải khai báo kiểu dữ liệu trước khi dùng

Biến không cần khai báo kiểu trước

Biến có thể đặt trùng từ khóa

Không thể thay đổi giá trị biến

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh x = int("123") có ý nghĩa gì?

Ép kiểu chuỗi sang float

Ép kiểu chuỗi sang int

Ép kiểu int sang chuỗi

Lỗi

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh s = "Python" thì s[0] có giá trị gì?

P

y

n

Lỗi

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?