
Питон 2035: строки
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Лада Торчик
Used 13+ times
FREE Resource
Enhance your content in a minute
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()
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
История ЭВМ
Quiz
•
9th Grade
13 questions
Loops Review
Quiz
•
12th Grade
10 questions
Основные понятия робототехники
Quiz
•
5th - 9th Grade
10 questions
Python- Operators
Quiz
•
12th Grade
10 questions
Комп'ютерна графіка
Quiz
•
6th - 9th Grade
10 questions
Lesson 01 Unit 1 Excel 2019/365 MOAC
Quiz
•
9th - 12th Grade
12 questions
Електронні таблиці Exel
Quiz
•
1st - 12th Grade
11 questions
Google Slides Quiz
Quiz
•
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
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
