Multiple Choice
Each record of the file UN.txt contains four pieces of information (name, continent, population in millions, area) about one of the 192 member countries of the United Nations. The first two lines of the file are
Afghanistan,Asia,28.2,251772
Albania,Europe,3.2,11100
What is the first line of the file created by the following code?
Dim query = From line In IO.File.ReadAllLines("UN.txt")
Let data = line.Split(","c)
Let country = data(0)
Let continent = data(1)
Select country & " is in " & continent
IO.File.WriteAllLines("NewFile.txt", query)
A) Afghanistan is in Asia
B) Albania is in Europe
C) country is in continent
D) The new file will be empty.
Correct Answer:

Verified
Correct Answer:
Verified
Q17: End tags always begin with a less
Q18: Assume the file Alphabet.txt contains 26 records,
Q19: If an attempt is made to access
Q20: If any record in a text file
Q21: In order to use the OpenFileDialog control,
Q23: If the value of IO.File.Exists(filespec) is True,
Q24: Which one of the following is NOT
Q25: If an existing text file is opened
Q26: Which exception will the following code generate?
Q27: Consider the following code. The Catch block