Робота з файлами в 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
12 questions
Експорт документів

Quiz
•
7th Grade - University
14 questions
Работа с файлами

Quiz
•
10th Grade
12 questions
Цикл for

Quiz
•
7th Grade - University
12 questions
1.5 і 1.6 Зберігання даних в Інтернеті. Онлайн-середовища

Quiz
•
1st - 12th Grade
13 questions
PyQT Notes

Quiz
•
9th - 12th Grade
8 questions
Робота з електронною поштою

Quiz
•
1st - 12th Grade
12 questions
Python1 Functions

Quiz
•
7th - 11th Grade
12 questions
"Основні поняття комп'ютерної графіки" - 6 клас

Quiz
•
1st - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade