
Работа с файлове

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Kaloyan Tsonev
Used 2+ times
FREE Resource
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
Similar Resources on Wayground
14 questions
T-Level DPDD: File Handling Quiz

Quiz
•
11th Grade
15 questions
Просвещения Web-программирование №10 Тест 2024

Quiz
•
9th - 12th Grade
10 questions
Windows 10 System Management Tools

Quiz
•
9th Grade - University
10 questions
QUIZ PHP

Quiz
•
10th Grade
8 questions
14. Hafta Quiz

Quiz
•
9th - 12th Grade
10 questions
BAHASA C++

Quiz
•
11th Grade
8 questions
СОР (пересдача) 10 класс

Quiz
•
10th Grade
11 questions
simplificación de una Función lógica por el mapa de Karnaugh

Quiz
•
12th 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
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th 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