
Методы работы со строками в C#
Authored by Alisa Rozanova
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что делает метод string.Split в C#?
Метод string.Split разбивает строку на массив подстрок по заданным разделителям.
Метод string.Split заменяет символы в строке.
Метод string.Split удаляет пробелы из строки.
Метод string.Split объединяет строки в одну.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой результат возвращает метод string.Join?
Строка без разделителя.
Числовое значение.
Массив строк.
Объединенная строка с указанным разделителем.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как можно удалить лишние пробелы из строки в C#?
string result = inputString.Replace(" ", "");
string result = System.Text.RegularExpressions.Regex.Replace(inputString.Trim(), "\s+", " ");
string result = inputString.RemoveExtraSpaces();
string result = inputString.Trim();
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что делает регулярное выражение \s+?
Заменяет пробелы на символы табуляции.
Находит один или более пробелов.
Находит только один пробел.
Удаляет пробелы из строки.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой метод используется для объединения элементов массива в строку?
concat
join
merge
combine
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой параметр передается в метод string.Split для удаления пустых элементов?
StringSplitOptions.RemoveEmptyEntries
StringSplitOptions.TrimEntries
StringSplitOptions.None
StringSplitOptions.IncludeEmptyEntries
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой метод позволяет заменить все пробелы в строке на один пробел?
str.strip()
str.join(' ')
str.replace(r'\s+', ' ')
str.replace(' ', '')
str.split(' ')
Access all questions and much more by creating a free account
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
25 questions
JavaScript Console & Graphics Review
Quiz
•
9th - 12th Grade
25 questions
Chapter 2 Review
Quiz
•
10th - 12th Grade
25 questions
T1005R-BASIC HOUSE DESIGNS
Quiz
•
9th - 12th Grade
25 questions
Pemrograman Berorientasi Objek
Quiz
•
12th Grade
25 questions
Quiz Informatike
Quiz
•
6th Grade - University
26 questions
Python Files Class XII
Quiz
•
12th Grade
25 questions
SAINS KOMPUTER TINGKATAN 4 - 1.6 STRUKTUR DATA DAN MODULAR
Quiz
•
7th - 12th Grade
30 questions
Թեստային աշխատանք (Word 10-րդ դասարան)
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade