
Строки python
Authored by HI, Guy
Computers
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как создать пустую строку в Python?
Как создать пустую строку в Python?
empty_string = " "
empty_string = ' '
empty_string = str()
Все варианты верны
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как получить длину строки в Python?
length = len(my_string)
length = string_length(my_string)
length = count(my_string)
length = count(my_string)
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Как объединить две строки в Python?
result = str1 - str2
result = str1 + str2
result = concat(str1, str2)
result = join(str1, str2)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как проверить, содержит ли строка подстроку в Python?
substring in my_string
my_string.contains(substring)
contains(substring, my_string)
my_string.isSubstring(substring)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как заменить все вхождения подстроки в строке в Python?
new_string = replace(substring, replacement, my_string)
new_string = my_string.replace(substring, replacement)
new_string = substitute(substring, replacement, my_string)
new_string = my_string.sub(substring, replacement)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как преобразовать строку в верхний регистр в Python?
new_string = to_upper(my_string)
new_string = my_string.upper()
new_string = convert_case(my_string, 'upper')
new_string = case_upper(my_string)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как удалить лишние пробелы в начале и конце строки в Python?
trimmed_string = trim(my_string)
trimmed_string = my_string.remove_whitespace()
trimmed_string = my_string.strip()
trimmed_string = strip_whitespace(my_string)
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
20 questions
Ôn tập học kỳ I
Quiz
•
9th - 12th Grade
13 questions
Python Fundamentals and Programming
Quiz
•
11th - 12th Grade
19 questions
Unity. Lesson 1
Quiz
•
9th - 12th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
16 questions
Python Basics
Quiz
•
KG - University
15 questions
Grade 12-Python selection&iteration
Quiz
•
11th - 12th Grade
20 questions
Python Recap
Quiz
•
7th Grade - University
15 questions
Lua Review Corona SDK with Notepad++
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade