
7 класс. Работа с файлами. Подготовка к сору.
Authored by Инна Дреева
Computers
University
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MATCH QUESTION
5 mins • 5 pts
Создайте верно программный код для задачи, используя комментарии к строкам.
file_out.close()
# закрываем файл для ввода чисел Input
file_out = open("Output.txt", "w")
# создаем файл Output для записи результата
file_in.close()
# открываем файл для чтения Input
file_in = open("Input.txt", "r")
# закрываем файл вывода результата Output
p=file_in.read( ).split( )
# считываем строку и разделяем числа пробелом
2.
MATCH QUESTION
5 sec • 4 pts
Создайте верно программный код для задачи, используя комментарии к строкам.
file_in.close()
# закрываем файл для ввода чисел Input
file_out.write (str(a * b) +'\n')
# открываем файл для чтения Input
file_in = open("Input.txt", "r")
# вводим ( целые числа в файл)
a,b = map (int, p)
# находит произведение чисел из введенных в строку файла, записываем результат в файл Output
6.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
jsidm
idmmkkkddmdmd
аj
aj***idmmkkkddmdmd
7.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Текстовый файл содержит строку
“qwertyasdfgh”.
p=fin.readline(5)
Определите результат.
qwerty
qwertyasdfgh
qwert
ab***fghijklmnopqrstuvwxyz
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?