Что такое строка в Python?

Черепаха и текстовые данные

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
СМИТАП | Онлайн-школа
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Строка в Python - это последовательность символов.
Строка в Python - это число.
Строка в Python - это функция.
Строка в Python - это список элементов.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как объединить две строки в Python?
строка1 * строка2
строка1 / строка2
строка1 - строка2
строка1 + строка2 или ' '.join(['строка1', 'строка2'])
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какая функция используется для получения длины строки?
size()
len()
count()
length()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой метод позволяет заменить подстроку в строке?
concat
replace
trim
substring
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что делает метод strip() в Python?
Удаляет все символы из строки.
Заменяет пробелы на символы новой строки.
Удаляет пробелы и символы новой строки в начале и в конце строки.
Склеивает строки без пробелов.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как нарисовать квадрат с помощью библиотеки Turtle?
import turtle for i in range(4): t.forward(100) t.left(90)
t = turtle.Turtle() for _ in range(3): t.forward(100) t.right(90)
import turtle
t = turtle.Turtle()
for _ in range(4): t.forward(100) t.right(90)
import turtle t = turtle.Turtle() t.forward(100) t.forward(100) t.right(90)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как изменить цвет черепашки в Turtle?
turtle.changeColor('цвет')
turtle.setColor('цвет')
turtle.color('цвет')
turtle.paint('цвет')
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
Java

Quiz
•
9th - 12th Grade
15 questions
Итоговый тест по Word

Quiz
•
10th Grade - University
13 questions
Використання штучного інтелекту в освіті

Quiz
•
12th Grade
10 questions
Quiz di Coding su Python

Quiz
•
9th - 12th Grade
11 questions
prgramming

Quiz
•
6th Grade - University
15 questions
Quiz Pemrograman Python

Quiz
•
10th Grade - University
13 questions
Тест по Microsoft Office

Quiz
•
12th Grade - University
15 questions
Bài 24

Quiz
•
10th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University