Строковые методы

Quiz
•
Computers
•
10th Grade
•
Medium
Луиза Асламбекова
Used 20+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что такое конкатенация строк в Python?
Процесс объединения двух или более строк в одну строку
Процесс разделения строки на подстроки
Процесс удаления символов из строки
Процесс изменения регистра символов в строке
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как получить подстроку из строки в Python?
Используйте срез строки для получения подстроки в Python.
Используйте функцию find() для получения подстроки в Python.
Используйте функцию replace() для получения подстроки в Python.
Используйте функцию split() для получения подстроки в Python.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как заменить текст в строке с помощью метода в Python?
string.modify(old, new)
string.update(old, new)
string.replace(old, new)
string.swap(old, new)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой метод используется для форматирования строк в Python?
Метод input()
Метод print()
Метод format()
Метод split()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что такое индексирование строк в Python?
Способ удаления символов из строки в Python
Процесс объединения строк в Python
Процесс доступа к отдельным символам в строке по их порядковому номеру.
Метод создания новых строк в Python
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как получить длину строки в Python?
length()
size()
count()
len()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как проверить наличие подстроки в строке в Python?
string_variable.index('substring') != -1
string_variable.search('substring')
string_variable.find('substring') != -1 or 'substring' in string_variable
string_variable.contains('substring')
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Programming basics

Quiz
•
10th - 11th Grade
15 questions
Python - Chpt 1 - Review

Quiz
•
9th - 12th Grade
14 questions
String Manipulation and Validation

Quiz
•
10th Grade
10 questions
Алгоритмы. Языки программирования

Quiz
•
10th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
15 questions
Data Types and Operations

Quiz
•
10th Grade
10 questions
Pyhton

Quiz
•
9th - 10th Grade
15 questions
Input Commands Quiz

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

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade