Each line 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 population = 1000000 * CDbl(data(2) )
Select country & "," & population
IO.File.WriteAllLines("NewFile.txt", query)
A) Afganistan,28.2
B) Afganistan,28,200,000
C) Afganistan,28200000
D) country,population
Correct Answer:
Verified
Q15: When an existing file is opened for
Q16: In order to use the OpenFileDialog control,
Q17: When a file is opened for Append,
A)
Q18: Assume the file Alphabet.txt contains 26 records,
Q19: When you place the OpenFileDialog control on
Q21: The following statements are valid.
Dim filespec As
Q22: In the following statement, sw is
Q23: If a text file is opened for
Q24: To get rid of an existing closed
Q25: When a text file is created in
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents