Search Header Logo

Kiểu xâu kí tự

Authored by code khang

Computers

10th Grade

Used 1+ times

Kiểu xâu kí tự
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

24 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python biến được khai báo và sử dụng bên trong một hàm được gọi là biến gì?

Biến cục bộ

Biến toàn cục

Biến cơ bản

Biến riêng

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chương trình sau cho kết quả là:

10

16

15

11

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, câu lệnh nào dùng để tính độ dài của xâu s?

len(s)

length(s)

s.len()

s. length()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Các dòng lệnh sau đây cho kết quả là:

4

3

5

6

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hãy chọn phương án đúng mã lỗi ngoại lệ của lệnh int("abc")?

A. ValueError

B. NameError

C. SyntaxError

D. TypeError

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Có bao nhiêu xâu kí tự hợp lệ?

123_@##

python

346h7g84jd

01028475

hoa hậu

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương án nào đúng về kết quả chương trình sau:

6

2

5

3

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?