
Питон 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
Similar Resources on Wayground
13 questions
Списки в python

Quiz
•
10th Grade
8 questions
Марафон. ОГЭ. Задания 1 и 4

Quiz
•
9th - 12th Grade
10 questions
Quiz 16 - Arrays and Loops

Quiz
•
11th Grade
10 questions
Python Programming

Quiz
•
7th - 9th Grade
10 questions
Python Boolean and If

Quiz
•
9th - 12th Grade
10 questions
KS4 Programming Techniques (1)

Quiz
•
8th - 10th Grade
15 questions
Методы строк

Quiz
•
10th Grade
10 questions
Функции def

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
CTEA Computer Vocab Terms #1

Quiz
•
12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade