
Питон 2035: строки
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Лада Торчик
Used 13+ times
FREE Resource
12 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
30 sec • 3 pts
x = len("Hello, world!")
Чему равен x?
2.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
s = "малако"
s[1] = "о"
print(s)
Что выведется на экран в результате выполнения кода?
молако
малако
молоко
ошибка
Answer explanation
Строки неизменяемы, поэтому изменять отдельные символы строки, обращаясь к ним по индексам, нельзя
3.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Как вывести все символы строки s, кроме последних трех?
print(s[2:])
print(s[:-3])
print(s[-3:])
print(s[:3])
print(s[3:])
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
s = "Abrakadabra"
print(s.count("a"))
Чтов выведется на экран в результате выполнения кода?
4
5
3
0
ошибка
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Какая функция разбивает разбивает строку на подстроки по заданному разделителю?
end
join
split
sep
6.
MULTIPLE CHOICE QUESTION
45 sec • 6 pts
x = ord("B")
print(chr(x - 1))
Что выведется на экран в результате выполнения кода?
A
B
66
65
ошибка
7.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
s = "ПрИвЕт"
print(s.____)
Что нужно поставить на место пропуска, чтобы вывелось привет ?
lower()
islower()
swapcase()
isalpha()
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
15 questions
Quiz No. 1 on Open Source Software
Quiz
•
11th - 12th Grade
15 questions
Знаток Paint
Quiz
•
1st - 10th Grade
15 questions
Program Implementation
Quiz
•
10th - 12th Grade
10 questions
10 класс повторение CSS and Внедрение мультимедиа
Quiz
•
10th Grade
10 questions
Электронные таблицы. Основные понятия.
Quiz
•
5th - 11th Grade
15 questions
Ôn tập kỳ 2 tin 6
Quiz
•
1st - 12th Grade
10 questions
Python
Quiz
•
3rd - 10th Grade
15 questions
Начала программирования на языке Паскаль
Quiz
•
8th - 11th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
