
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
Similar Resources on Wayground
50 questions
AI and IoT Quiz

Quiz
•
1st Grade
50 questions
AZ-204 Practice Exam 3

Quiz
•
1st Grade
55 questions
CSQA_Test for FUN_1

Quiz
•
1st - 10th Grade
47 questions
Các loại mạng

Quiz
•
KG - 10th Grade
50 questions
CHKP2 - 51 to 100

Quiz
•
1st Grade
50 questions
Fun with Word Processing

Quiz
•
1st Grade
50 questions
Computer Science ( Test Your Knowledge )

Quiz
•
1st Grade
50 questions
Wireless 1 a 50

Quiz
•
1st 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
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
addition

Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences

Quiz
•
1st - 3rd Grade
20 questions
Addition and Subtraction facts

Quiz
•
1st - 3rd Grade
20 questions
Place Value

Quiz
•
KG - 3rd Grade
10 questions
Exploring Properties of Matter

Interactive video
•
1st - 5th Grade
10 questions
Odd and even numbers

Quiz
•
1st - 2nd Grade