Search Header Logo

Py1.1-2. Scalar Type

Authored by Dat Huu

Science

Professional Development

15 Questions

Used 7+ times

Py1.1-2. Scalar Type
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kiểu dữ liệu nào lưu trữ các ký tự đơn lẻ?

int
float
str
bool

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào được sử dụng để tìm kiểu dữ liệu của một biến trong Python?

define()
type()
data()
showType()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phép toán nào sau đây sẽ cho kết quả là một số thập phân?

3 + 4
3 * 4
5 / 2
Tất cả các phép toán trên

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chuỗi Python (str) là:

Có thể thay đổi
Không thể thay đổi

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào được sử dụng để lấy độ dài của một chuỗi?

getLong()
len()
size()
getLength()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm thế nào để truy cập một ký tự cụ thể trong chuỗi bằng cách sử dụng vị trí (chỉ số) của nó?

slice(index)
string[index]
string(index)
getChar(index)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lập chỉ mục âm trong chuỗi Python bắt đầu từ:

Đầu chuỗi
Cuối chuỗi
Giữa chuỗ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?