
Строки в Python. Первое знакомство
Authored by Ольга Перескокова
Computers
10th Grade
Used 21+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Дана строка
s = "автомобиль"
С помощью среза получите новую строку q, в которой будет слово "авто".
Пробелы в ответе не ставьте
2.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
Дана строка s = "гипербола".
Какие команды нужно написать, чтобы получить слово "перо"
print(s[2:5] + s[6])
t = s[2:-2]
print(t[:3] + t[4])
t = s[2:-2]
print(t[:3] + t[6])
print(s[2:5] + s[7])
3.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Дана строка s = "еле-еле едет".
Что будет выведено командой
print(s.count('e'))
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой метод позволяет найти самое левое вхождение подстроки substr в строке str?
str.find(substr)
substr.find(str)
str.rfind(substr)
substr.rfind(str)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой метод позволяет найти самое правое вхождение подстроки substr в строке str?
str.find(substr)
substr.find(str)
str.rfind(substr)
substr.rfind(str)
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Дана строка s. Как с помощью среза получить последние два символа этой строки? В ответе пробелы не ставьте.
7.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Дана строка s = "перо".
Как можно сформировать новую строку q, в которой будет слово "опер"?
q = s[4]+s[1]+s[2]+s[3]
q = s[3]+s[:3]
q = s[-1]+s[-2::-1][::-1]
q = s[len(s)] + s[:-1:-1]
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
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
14 questions
Bài 29. Nhận biết lỗi chương trình
Quiz
•
9th - 12th Grade
11 questions
CAPÍTULO 1 NETWORKING ESSENTIALS
Quiz
•
1st - 12th Grade
14 questions
Formularios de Google
Quiz
•
1st Grade - University
13 questions
Networks - Introduction
Quiz
•
10th Grade
10 questions
Avaliação 1T - JavaScript
Quiz
•
9th - 12th Grade
10 questions
Innovations of Technology
Quiz
•
7th - 10th Grade
14 questions
ÔN TINHK1, K4
Quiz
•
10th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade