Python _ BT về Xâu

Quiz
•
Computers
•
5th Grade
•
Hard
Duy Tran
Used 5+ times
FREE Resource
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
Kết quả của đoạn mã sau là gì?
P
y
t
h
o
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Đ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
Đoạn mã sau in ra gì?
5
6
7
8
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
Bài 1,2,3,4,5

Quiz
•
5th Grade
15 questions
Ôn tập học HK 1 lớp 5

Quiz
•
5th Grade
15 questions
Ôn tập Soạn thảo - Đề 1

Quiz
•
5th Grade
20 questions
BÀI 6 ĐỊNH DẠNG TRANG TÍNH

Quiz
•
1st - 12th Grade
15 questions
ÔN THI HK2 LOP 3

Quiz
•
2nd - 5th Grade
20 questions
ÔN TẬP GS6 SPARK LEVEL 2 CHỦ ĐỀ 5

Quiz
•
1st - 5th Grade
20 questions
Bài ôn tập IC3 Spark

Quiz
•
1st - 5th Grade
15 questions
Scratch Junior_Final Quiz

Quiz
•
3rd - 8th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade