Tin 10_CĐ5_Bài 25. Một số lệnh làm việc với xâu kí tự

Quiz
•
Computers
•
10th Grade
•
Hard
Võ Thị Thúy Đồng Võ
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào dưới đây dùng kiểm tra một xâu s1 có trong xâu s2 hay không?
s1 is s2
s2 is s1
s1 in s2
s2 in s1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây dùng để tìm vị trí xuất hiện đầu tiên của xâu s1 trong xâu s2?
s1 in s2
s1.find(s2)
s2.find(s1)
Không có đáp án đúng
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho xâu s = “0, 1, 2, 3, 4, 5, 6, 10”. Kết quả trả về là gì sau khi thực hiện lệnh s.split(“,”)?
[0, 1, 2, 3, 4, 5, 6, 10]
['0', '1', '2', '3', '4', '5', '6', '10']
['0', '1', '2', '3', '4', '5', '6', '1', '0']
[0, 1, 2, 3, 4, 5, 6, 1, 0]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho xâu st = [‘0’, ‘1’, ‘2’, ‘3’, ‘4’, ‘5’, ‘6’, ‘10’]. Kết quả trả về là gì sau khi thực hiện lệnh “;”.join(st)?
“012345610”
“0 1 2 3 4 5 6 10”
“0; 1; 2; 3; 4; 5; 6; 10”
“0; 1; 2; 3; 4; 5; 6; 1; 0”
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho xâu s = "abcdefghiabc". Xác định phát biểu nào dưới đây là sai?
Biểu thức "abc" in s sẽ trả về giá trị True.
Biểu thức s.find("def") sẽ trả về giá trị 3.
Biểu thức s.find("abc", 1) sẽ trả về giá trị 9.
Biểu thức s.find("xyz") sẽ trả về giá trị 0.
Similar Resources on Wayground
10 questions
AI NHANH TAY HƠN

Quiz
•
10th Grade
10 questions
trắc nghiệm tin

Quiz
•
10th Grade
10 questions
Bài 25-Một số lệnh làm việc với xâu kí tự

Quiz
•
10th Grade
10 questions
TEST -BÀI 24 XÂU KÍ TỰ

Quiz
•
10th Grade
10 questions
Kiến thức về kiểu dữ liệu trong NNLT

Quiz
•
1st Grade - University
7 questions
Datenschutz in der Sparkasse

Quiz
•
KG - Professional Dev...
5 questions
WHO IS THE FASTEST?

Quiz
•
10th Grade
10 questions
A6_LUYỆN TẬP

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade