Python _ BT về Xâu

Python _ BT về Xâu

5th Grade

20 Qs

quiz-placeholder

Similar activities

Đề cương ôn tập tin học khối 4 hk1

Đề cương ôn tập tin học khối 4 hk1

1st - 5th Grade

20 Qs

K5_ÔN TẬP HỌC KỲ 2

K5_ÔN TẬP HỌC KỲ 2

5th Grade

15 Qs

5-Midterm

5-Midterm

5th Grade

15 Qs

Một số khái niệm về lập trình và ngôn ngữ lập trình

Một số khái niệm về lập trình và ngôn ngữ lập trình

KG - 12th Grade

15 Qs

BÀI THI THỬ MÔN TIN HỌC LỚP 4

BÀI THI THỬ MÔN TIN HỌC LỚP 4

1st - 8th Grade

20 Qs

Ôn tập HK 2 - TIN HỌC LỚP 5

Ôn tập HK 2 - TIN HỌC LỚP 5

5th Grade

15 Qs

Bài tập về thư điện tử

Bài tập về thư điện tử

5th Grade

15 Qs

Python _ BT về Xâu

Python _ BT về Xâu

Assessment

Quiz

Computers

5th Grade

Practice Problem

Hard

Created by

Duy Tran

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để tạo một chuỗi rỗng trong Python, dùng cú pháp nào?

str = ''

str = ""

str = str()

Tất cả đáp án trên

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

P

y

t

h

o

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Câu 3: Kết quả của đoạn mã sau là gì?

h

o

e

l

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào dùng để chuyển chuỗi thành chữ in hoa?

title()

capitalize()

upper()

lower()

Answer explanation

s = "python"

print(s.upper())


5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

 Đoạn mã sau in ra gì?

llo

Hel

ell

Lỗi

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào dùng để loại bỏ khoảng trắng ở đầu và cuối chuỗi?

rstrip()

lstrip()

trim()

strip()

Answer explanation

s = "   Hello   "

print(s.strip())  # Hello


7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

 Đoạn mã sau in ra gì?

5

6

7

8

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?