
Lệnh làm việc với xâu kí tự
Quiz
•
Computers
•
1st Grade
•
Practice Problem
•
Hard
Vũ Thị Lành
Used 1+ times
FREE Resource
Enhance your content in a minute
51 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to find the position of a substring in another string?
test()
in()
find()
split()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is inaccurate regarding the 'in' operator?
The expression checks if string 1 is in string 2:
The 'in' operator returns True if string 1 is in string 2.
The 'in' operator returns False if string 1 is not in string 2.
The 'in' operator is the only operator that can solve the problem of checking if a string is contained in another string.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following commands? s = "12 34 56 ab cd de " print(s.find(" ")) print(s.find("12")) print(s.find("34"))
2, 0, 3.
2, 1, 3.
3, 5, 2.
1, 4, 5.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is correct regarding methods in Python?
Python has a special command dedicated to strings.
The syntax of the find command is:
The find command will find the first position of the substring in the parent string.
The find command has a unique syntax.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What value does the following command return? >> "abcdabcd".find("cd") >> "abcdabcd".find("cd", 4)
2, 6.
3, 3.
2, 2.
2, 7.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to split a string?
split()
join()
remove()
copy()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to split a string?
split()
join()
remove()
copy()
Create a free account and access millions of resources
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
50 questions
Latihan Soal TIK
Quiz
•
1st Grade
50 questions
LATIHAN SOAL PAT TIK KELAS 5
Quiz
•
1st - 5th Grade
52 questions
TIN 4. ÔN TẬP ck2 (23.24)
Quiz
•
1st - 5th Grade
50 questions
KUIS TKJ KE-2
Quiz
•
KG - University
50 questions
TIK KELAS 8
Quiz
•
1st - 4th Grade
50 questions
INFORMATIKA ( X MIPA ) SMT 1
Quiz
•
1st Grade
48 questions
Máy tính căn bản 182023
Quiz
•
1st - 5th Grade
50 questions
Teori Kejuruan-TKJ
Quiz
•
1st Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
10 questions
Christmas/Winter
Quiz
•
KG - 2nd Grade
16 questions
Christmas 1st grade
Quiz
•
1st Grade
10 questions
Exploring the Water Cycle
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
20 questions
Modules 4 - 6 CBA Review
Quiz
•
1st Grade
10 questions
Exploring the American Revolution
Interactive video
•
1st - 5th Grade
