PYTHON FILES

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Сергей Тращенков
Used 6+ times
FREE Resource
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?
Файл остается открытым
Файл закрывается автоматически
Файл удаляется
Ничего, файл остается неизменным
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как открыть файл в режиме чтения с использованием оператора with open() as в Python?
with open("file.txt") as f:
with open("file.txt", "w") as f:
with open("file.txt", "a") as f:
with open("file.txt", mode="read") as f:
Similar Resources on Wayground
10 questions
files + pyQt notes

Quiz
•
9th - 12th Grade
12 questions
Файлы в Pascal

Quiz
•
11th Grade
10 questions
Python Basic files

Quiz
•
10th - 12th Grade
10 questions
Концепции программирования

Quiz
•
10th Grade
10 questions
Викторина по Python (Урок 1-2)

Quiz
•
5th - 11th Grade
12 questions
тест Python 7 class

Quiz
•
1st - 12th Grade
12 questions
Входной контроль 11 класс

Quiz
•
11th Grade
10 questions
Django Start

Quiz
•
12th Grade
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Introduction to Desktop Computer Systems

Quiz
•
9th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Computer Hardware and Input/Output Devices

Interactive video
•
6th - 10th Grade