
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
20 questions
SOAL PBO KELAS XII RPL
Quiz
•
2nd Grade
20 questions
2324tx6
Quiz
•
9th - 12th Grade
25 questions
Logo
Quiz
•
4th - 5th Grade
20 questions
WML & WAP
Quiz
•
University
22 questions
HTML Quiz
Quiz
•
9th Grade
20 questions
Evaluare sumativă C++ clasa a 9 - a
Quiz
•
9th Grade
20 questions
Android AsyiQuizz
Quiz
•
11th Grade
23 questions
ÔN TẬP HK II TIN 8
Quiz
•
8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
4 questions
Conflict Resolution
Lesson
•
KG
20 questions
Place Value
Quiz
•
KG - 3rd Grade
20 questions
CVC Words
Quiz
•
KG - 1st Grade
24 questions
CKLA Unit 5 assessment K
Quiz
•
KG
10 questions
STAAR Review - Editing & Revising Clusters
Quiz
•
KG
10 questions
Reflexive Pronouns
Quiz
•
KG - 5th Grade
10 questions
Long i- igh, ie, and y Quiz
Quiz
•
KG - 3rd Grade
12 questions
Quarter Past, Half Past, and Quarter To
Quiz
•
KG - 12th Grade