Multiple Choice
Select the example statement below that would open a text file for output.
A) Dim sw As IO.StreamWriter = IO.File.OpenText("IncomeData.txt")
B) Dim sw As IO.StreamWriter = IO.File.CreateText("IncomeData.txt")
C) Dim sr As IO.StreamReader = IO.File.OpenText("IncomeData.txt")
D) Dim sr As IO.StreamReader = IO.File.AppendText("IncomeData.txt")
Correct Answer:

Verified
Correct Answer:
Verified
Q33: Which exception will the following code generate?
Q34: Each line of the file UN.txt contains
Q35: XML files must be loaded into XElement
Q36: Which of the following terms is NOT
Q37: In a Try-Catch-Finally block, the code in
Q39: What method is used to copy the
Q40: The following statement could be used to
Q41: In the line of code sw =
Q42: Element names are case sensitive.
Q43: Each line of the file UN.txt contains