
Python-Kiểu xâu
Authored by Nhan Le Ngoc
Computers
KG
Used 204+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, để khai báo kiểu dữ liệu xâu thì dữ liệu phải được đặt trong cặp dấu ngoặc nào sau đây?
Cặp đấu ngoặc vuông []
Cặp dấu ngoặc tròn ()
Cặp dấu ngoặc móc {}
Cặp dấu nháy đơn ‘’
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, để khai báo biến x là kiểu xâu, ta khai báo như thế nào là đúng nhất:
x=int(input(’mời nhập’))
x=float(input(’mời nhập’))
x=string(input(’mời nhập’))
x=input(’mời nhập’)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, để cho ra kết quả là độ dài xâu thì ta sử dụng hàm nào sau đây?
upper(<tên biến xâu>)
find(<tên biến xâu>)
lower(<tên biến xâu>)
len(<tên biến xâu>)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, để cho ra kết quả các chữ cái trong xâu IN HOA thì ta sử dụng hàm nào sau đây?
<tên biến xâu>.lower()
<tên biến xâu>.find()
<tên biến xâu>.len()
<tên biến xâu>.upper()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, để cho ra kết quả các chữ cái trong xâu từ chữ hoa sang thường thì ta sử dụng hàm nào sau đây?
<tên biến xâu>.upper()
<tên biến xâu>.find()
<tên biến xâu>.len()
<tên biến xâu>.lower()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, để cho ra kết quả là vị trí xuất hiện đầu tiên của một xâu hoặc kí tự có trong xâu ta sử dụng hàm nào sau đây?
<tên biến xâu>.upper(<xâu hoặc kí tự cần tìm>)
<tên biến xâu>.lower(<xâu hoặc kí tự cần tìm>)
<tên biến xâu>.len(<xâu hoặc kí tự cần tìm>)
<tên biến xâu>.find(<xâu hoặc kí tự cần tìm>)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, khi muốn thay thế một từ hoặc cụm từ bằng từ hoặc cụm từ khác thì ta sử dụng hàm nào sau đây?
upper()
find()
len()
replace()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
10A16_L1_HK1
Quiz
•
10th Grade
20 questions
Quiz về Toán và Tiếng Việt
Quiz
•
1st - 5th Grade
15 questions
Dictionary Python
Quiz
•
University
20 questions
On-tap-chu-de-C
Quiz
•
6th Grade
20 questions
Vấn đề Môi trường 02
Quiz
•
Professional Development
15 questions
Review Komputer Mid SMP (1)
Quiz
•
8th Grade
19 questions
Programación Básica Prácticas Tema 2
Quiz
•
University
16 questions
ĐỀ CƯƠNG ÔN TẬP HỌC KÌ I - TIN HỌC 8 NĂM HỌC 2022 - 2023
Quiz
•
9th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Place Value
Quiz
•
KG - 3rd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
10 questions
Subject Verb Agreement
Quiz
•
KG - 2nd Grade
22 questions
Oh, Canada (Test Review)
Quiz
•
KG
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
16 questions
CHARACTERIZATION
Quiz
•
KG - 8th Grade
18 questions
Great Lakes States
Quiz
•
KG - University