
Работа с файлове
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
Kaloyan Tsonev
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какъв клас използваме за запис в текстов файл?
StreamReader
StreamWriter
FileReader
FileWriter
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какво ще направи следният код?
Ще запише "Hello, world!" в test.txt
Ще прочете "Hello, world!" от test.txt
Ще изтрие test.txt
Ще даде грешка
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Каква е основната разлика между StreamReader и StreamWriter?
StreamWriter е по-бърз от StreamReader
StreamReader може да записва в текстов файл
StreamReader се използва за четене, а StreamWriter за писане
Няма разлика между тях
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как да добавим нов текст към съществуващ файл без да трием стария?
StreamWriter writer = new StreamWriter("file.txt");
StreamWriter writer = new StreamWriter("file.txt", false);
StreamReader reader = new StreamReader("file.txt", true);
StreamWriter writer = new StreamWriter("file.txt", true);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Какво ще направи този код?
Ще запише ред в names.txt
Ще прочете само първия ред от names.txt
Ще прочете всички редове от names.txt
Ще изтрие names.txt
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как можем да се уверим, че StreamWriter винаги ще затваря файла автоматично?
Използваме Close()
Викаме writer.Shutdown()
Обграждаме го с using(...)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Каква е разликата между презаписване (overwrite) и добавяне (append)?
Overwrite изтрива старото съдържание и пише ново, докато append добавя към съществуващото.
Append изтрива старото съдържание, докато overwrite само добавя.
Няма разлика между тях.
Append винаги изтрива първия ред на файла.
Create a free account and access millions of resources
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?
Similar Resources on Wayground
12 questions
Windows 10 Installation
Quiz
•
11th - 12th Grade
10 questions
Soal Ujian Komputer
Quiz
•
10th - 12th Grade
15 questions
Входной тест по информатике_1 курс
Quiz
•
9th - 10th Grade
15 questions
MVC-PHP
Quiz
•
12th Grade
13 questions
வகுப்பு 12 - அடோப் இன்டிசைன் CC 2019
Quiz
•
12th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade
