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

postest

postest

7th Grade

15 Qs

Ulangan Harian Bekerja dengan Data Terstruktur

Ulangan Harian Bekerja dengan Data Terstruktur

8th Grade

12 Qs

Data, soubory, počítačová síť

Data, soubory, počítačová síť

7th Grade

16 Qs

Variables, tipos de datos y operadores

Variables, tipos de datos y operadores

8th Grade

15 Qs

IC3_GS6_Level 2_Bài 3: Thiết lập và Tùy chỉnh Phần cứng (2)

IC3_GS6_Level 2_Bài 3: Thiết lập và Tùy chỉnh Phần cứng (2)

7th Grade

15 Qs

UTS S1 (Berpikir Kompotasional & Ms. Excel)

UTS S1 (Berpikir Kompotasional & Ms. Excel)

8th Grade

20 Qs

Tổng kết CLB Minecraft Education

Tổng kết CLB Minecraft Education

1st Grade - University

20 Qs

Quiz về Kiểu Dữ Liệu List và Set (1)

Quiz về Kiểu Dữ Liệu List và Set (1)

7th 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?