
Lệnh làm việc với xâu kí tự
Quiz
•
Computers
•
1st Grade
•
Hard
Vũ Thị Lành
Used 1+ times
FREE Resource
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
52 questions
Ulangkaji ASK Ting 2 Bab 3.1 Persekitaran Kod Arahan
Quiz
•
1st - 12th Grade
49 questions
Quiz Robotik
Quiz
•
1st Grade
50 questions
Computer Literacy Midterm
Quiz
•
1st Grade
50 questions
TLJ - Pert Akhir Semester Genap
Quiz
•
1st Grade
50 questions
Databricks Certified Data Engineer Quiz part 2
Quiz
•
1st Grade - University
50 questions
UH 1 SISKOM
Quiz
•
1st Grade
50 questions
Security, Networking, and Windows Operating System Final
Quiz
•
KG - University
50 questions
Domestic Data Entry Operator 50 to 100
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
4 questions
What is Red Ribbon Week
Interactive video
•
1st - 5th Grade
10 questions
History of Halloween
Interactive video
•
1st - 5th Grade
18 questions
It's Halloween!
Quiz
•
1st - 4th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
21 questions
Halloween
Quiz
•
KG - 5th Grade
18 questions
Pushes & Pulls
Quiz
•
1st - 4th Grade
28 questions
Halloween Trivia
Quiz
•
1st - 5th Grade
