Xâu, mảng trong Python

Xâu, mảng trong Python

University

43 Qs

quiz-placeholder

Similar activities

chương trình con

chương trình con

1st Grade - University

43 Qs

Simulasi dan Komunikasi Digital SMK Asyuhada

Simulasi dan Komunikasi Digital SMK Asyuhada

University

39 Qs

QuizBuzz

QuizBuzz

University

45 Qs

KIỂM TRA 1 TIẾT TIN HỌC K11 HK1 (đến bài 9)

KIỂM TRA 1 TIẾT TIN HỌC K11 HK1 (đến bài 9)

11th Grade - University

40 Qs

TỔNG HỢP CHƯƠNG 2 - TIN 12

TỔNG HỢP CHƯƠNG 2 - TIN 12

12th Grade - University

40 Qs

Data Structures & Algorithm

Data Structures & Algorithm

University

40 Qs

UAS STATISTIKA FARMASI

UAS STATISTIKA FARMASI

1st Grade - University

40 Qs

Révisions TLM3A - CPMB - Colombier

Révisions TLM3A - CPMB - Colombier

10th Grade - Professional Development

42 Qs

Xâu, mảng trong Python

Xâu, mảng trong Python

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Lương Thị Thế Trân THPT Trảng Bàng

Used 13+ times

FREE Resource

AI

Enhance your content in a minute

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

43 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho xâu st='abc'. S[0] = ?

a

b

c

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh y.find(x) thực hiện:

Vị trí xuất hiện đầu tiên của x trong y.

Vị trí xuất hiện cuối cùng của x trong y.

Cho biết số kí tự của xâu x+y

Đếm số lần xuất hiện không giao nhau của x trong y.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho xâu st='abc'. Hàm len(st) có giá trị là:

1

2

3

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm y.count(x) cho biết:

Vị trí xuất hiện đầu tiên của x trong y.

Vị trí xuất hiện cuối cùng của x trong y.

Cho biết số kí tự của xâu x+y

Đếm số lần xuất hiện không giao nhau của x trong y.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để thêm phần tử vào cuối danh sách ta dùng hàm:

append()

pop()

insert()

sort()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để gọi đến phần tử đầu tiên trong danh sách a ta dùng lệnh:

a[1]

a[0]

a0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Xâu rỗng là xâu có độ dài bằng:

0

1

2

3

Create a free account and access millions of resources

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?