Робота з файлами в Pytohn

Quiz
•
Computers
•
10th Grade
•
Hard
Тетяна Сокол
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Функція open() ...
закриває файл
відкриває файл
зчитує усі дані з текстового файла
записує у файл символьний рядок
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Яка функція записує у файл послідовність символьних рядків?
write()
writelines()
read()
readline()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
В якому з поданих режимів файл відкривається для читання?
r (Read)
w (Write)
a (Append)
b (Binary)
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
З поданих розширень файлів оберіть ті, які відносяться до текстових файлів:
html
jpeg
avi
txt
xlsx
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Оберіть всі можливі режими відкриття файлу:
s (Speak)
a (Append)
c (Clean)
r (Read)
w (Write)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
i = open('input.txt','r')
o = open('output.txt','w')
З якого файлу програма зчитує вхідні дані?
i
output.txt
input.txt
o
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
i = open('input.txt','r')
o = open('output.txt','w')
В який файл програма записує вихідні дані (результат виконання програми)?
input.txt
output.txt
і
о
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Тест. Урок 25. Використання форм

Quiz
•
10th - 11th Grade
15 questions
Javascript

Quiz
•
10th - 12th Grade
12 questions
Python1 Functions

Quiz
•
7th - 11th Grade
15 questions
Linux-2 Quiz 2 -- LAMP

Quiz
•
1st - 12th Grade
14 questions
Работа с файлами

Quiz
•
10th Grade
13 questions
PyQT Notes

Quiz
•
9th - 12th Grade
8 questions
Файлове. Четене и запис на файлове

Quiz
•
9th - 12th Grade
15 questions
Промежуточная аттестация информатика 10 класс

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade