Search Header Logo

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

Authored by СМИТАП | Онлайн-школа

Information Technology (IT)

12th Grade

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

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.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Строка в 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('цвет')

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?