
PYTHON FILES
Authored by Сергей Тращенков
Computers
9th - 12th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой способ является правильным для открытия файла в Python с использованием функции open()?
open(file_name)
open_file(file_name)
open_file(file_name, "r")
file_open(file_name)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой режим является значением по умолчанию при использовании функции open() в Python?
чтение
запись
добавление
ни один из предложенных
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как закрыть файл после того, как он был открыт с помощью функции open() в Python?
close_file()
end_file()
file.close()
stop_file()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как прочитать содержимое файла в Python после того, как он был открыт с помощью функции open()?
read_file()
file.read()
get_contents()
file.readme()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как записать в файл в Python после того, как он был открыт с помощью функции open()?
write_file(data)
file.write(data)
put_data(data)
data.write()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какой способ является правильным для открытия файла в режиме записи в Python с использованием функции open()?
open(file_name, "w")
open_file(file_name, "write")
open_file(file_name)
file_open(file_name, mode ="w")
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что происходит с файлом, когда блок кода выполняется внутри оператора with open() as в Python?
Файл остается открытым
Файл закрывается автоматически
Файл удаляется
Ничего, файл остается неизменным
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?