Quiz về kiểu dữ liệu Str

Quiz về kiểu dữ liệu Str

6th - 8th Grade

17 Qs

quiz-placeholder

Similar activities

3) Understanding Structural Concepts

3) Understanding Structural Concepts

8th Grade

16 Qs

Communications Essentials L1

Communications Essentials L1

6th - 8th Grade

19 Qs

NETWORK HARDWARE

NETWORK HARDWARE

8th Grade

15 Qs

Python 6 сынып

Python 6 сынып

6th Grade

18 Qs

QUIZ TIK Kelas 8

QUIZ TIK Kelas 8

8th Grade

20 Qs

G7 STS 2 Informatika

G7 STS 2 Informatika

7th Grade

20 Qs

Data Literacy Quizizz

Data Literacy Quizizz

6th Grade - University

15 Qs

Quiz về kiểu dữ liệu Str

Quiz về kiểu dữ liệu Str

Assessment

Quiz

Information Technology (IT)

6th - 8th Grade

Practice Problem

Medium

Created by

Khang Nghĩa

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn code sau là gì?

s = "Hello, world!"

print(len(s))

12

13

14

15

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách nào dưới đây tạo một chuỗi rỗng?

s = " "

s = str()

s = ' '

Tất cả đều đúng.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào dùng để truy xuất ký tự đầu tiên của chuỗi s = "Python"?

s(0)

s[0]

s{0}

s.first()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s = "Python"

print(s[-1])

P

n

o

h

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào dưới đây dùng để lấy chuỗi con "thon" từ chuỗi s = "Python"?

s[2:6]

s[-4:]

s[2:]

Cả ba cách.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn code sau là gì?

s = "Python"

print(s[: : -1]

"Python"

"nohtyP"

"n"

Lỗi.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào giúp nối hai chuỗi a = "Hello" và b = "World" thành "Hello World"?

a + b

a + " " + b

a.append(b)

a.join(b)

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?