
Строки в Python
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Hard
Мария Гришкина
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Что такое строка в Python?
Answer explanation
Строка в Python — это упорядоченная последовательность символов (букв, цифр, пробелов, знаков).
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Дан код: s = "ПИТОН"; print(s[2]). Что будет выведено на экран?
Answer explanation
Индексация в строках начинается с 0. s[0]="П", s[1]="И", s[2]="Т".
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Дан код: s = "ИНФОРМАТИКА"; print(s[3:7]). Что будет выведено на экран?
Answer explanation
Срез [3:7] возвращает подстроку от индекса 3 (включительно) до индекса 7 (не включительно). Символы: ИНФО(3)Р(4)М(5)А(6)Т(7) -> индексы 3,4,5,6 -> "ОРМА".
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Какой метод используется для приведения строки к нижнему регистру?
Answer explanation
Правильный метод для приведения строки к нижнему регистру — s.lower(). Методы s.low(), s.down(), s.small() в Python не существуют.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Что произойдет в результате выполнения кода: result = "12" + "34"?
Answer explanation
Оператор + для строк выполняет конкатенацию (слияние), а не математическое сложение. Поэтому "12" + "34" = "1234".
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Выберите ВСЕ правильные варианты, которые выведут длину строки s (s = "ЕГЭ"):
Answer explanation
В Python для получения длины строки используется функция len(s). Методы s.len() и s.length() не существуют. Функция length(s) также не является встроенной.
7.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Какая строка получится в результате выполнения среза "ЕГЭ"[::-1]? (Введите ответ)
Answer explanation
Срез [::-1] означает "взять всю строку с шагом -1", то есть перевернуть её.
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
10 questions
Paragraph Formatting Quiz
Quiz
•
10th Grade
10 questions
Uji Pengetahuan Microsoft Word
Quiz
•
10th Grade
10 questions
REVIEW TIME
Quiz
•
9th Grade - University
15 questions
MakeCode Arcade Questions
Quiz
•
10th Grade - University
15 questions
Recap Handout 3 & 4
Quiz
•
6th Grade - University
15 questions
KEAMANAN DATA
Quiz
•
9th - 12th Grade
10 questions
Quiz Perangkat Keras Komputer
Quiz
•
7th Grade - University
10 questions
Module 2.2.6 Quiz
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
Understanding Protein Synthesis
Interactive video
•
7th - 10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
