Enhance your knowledge of integrating with .NET libraries, working with System.IO, and understanding interoperability between .NET languages with these 30 multiple-choice questions. Perfect for developers looking to level up their skills in these essential areas of VB.NET programming.
FileStream class is used to write data to a file?
DirectoryInfo in System.IO?
StreamReader and FileReader?
Trace class allows writing a message to the trace listener?
Debug class help with in VB.NET?
EventLog class can you use to write an entry to the Windows Event Log?
| Qno | Answer |
|---|---|
| 1 | A) System.IO |
| 2 | B) IO.File() |
| 3 | B) File.ReadAllText() |
| 4 | B) Write() |
| 5 | D) StreamWriter |
| 6 | A) File.AppendAllText() |
| 7 | B) It allows you to query directory properties |
| 8 | B) StreamReader is used for text files only |
| 9 | A) File.Exists() |
| 10 | B) File.Create() |
| 11 | D) All of the above |
| 12 | A) Trace.WriteLine() |
| 13 | B) Writing logs for debugging purposes |
| 14 | D) All of the above |
| 15 | C) EventLog.WriteEntry() |
| 16 | A) TraceListener |
| 17 | C) Trace.Listeners.Add() |
| 18 | C) Trace.Listeners.Clear() |
| 19 | A) AddListener() |
| 20 | C) FileTraceListener |
| 21 | C) .NET CLR (Common Language Runtime) |
| 22 | D) All of the above |
| 23 | D) Both B and C |
| 24 | D) All of the above |
| 25 | A) Using assemblies |
| 26 | A) Platform Invocation |
| 27 | D) All of the above |
| 28 | B) Assembly reference |
| 29 | C) CLR |
| 30 | D) All of the above |