ExamVeda
Login
Home
21
In C#, which class provides information about a specific file?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
22
In C#, which method is used to open an existing text file for reading?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
23
What is the purpose of the File.SetAttributes() method in C#?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
24
Which class in C# is used to perform synchronous and asynchronous read and write operations to a file in a managed application?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
25
In C#, which method is used to write a string to a text file?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
26
In C#, what happens if you attempt to read from a file that does not exist using File.OpenRead() method?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
27
What is the purpose of the File.Create() method in C#?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
28
In C#, which class represents a writer that provides a fast, non-cached, forward-only way of generating sequences of characters from streams of bytes?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
29
What is the purpose of the File.WriteAllText() method in C#?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
30
In C#, what method is used to create a new file if it does not exist, or overwrite the existing file if it does exist?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board