What is the output of the following program segment?

```
Dim temp() As String = IO.File.ReadAllLines('Data.txt")
Dim n As Integer = temp.Count - 1
Dim numbers(n) As Double, h As Double = 0
For i As Integer = 0 To n
numbers(i) = CDbl(temp(i))
Next
For k As Integer = 0 to n
h += numbers(k)
Next
txtBox.Text = CStr(h)
```
Assume the four rows of the file Data.txt contain the following entries: 2, 4, 2, 3
(A) 11
(B) 2
(C) 7
(D) 4


(A) 11

Computer Science & Information Technology

You might also like to view...

When data is processed into a meaningful form, it becomes information.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

To test a data macro, open the table and perform whatever the event was to which the macro has been attached and see if the proper action is performed

Indicate whether the statement is true or false

Computer Science & Information Technology

Evolutionary software process models...

A. Do not generally produce throwaway systems. B. Can easily accommodate product requirements changes. C. Are iterative in nature. D. All of these.

Computer Science & Information Technology

Lucy and Margarita are collaborating on a document. Lucy opens the Reviewing pane to view Margarita’s changes. Which of the following is NOT true about the Reviewing pane?

A. The Reviewing pane can be shown vertically or horizontally. B. You cannot edit comments in the Reviewing pane. C. At the top, a summary shows the number of revisions. D. You can use the scroll bar to view additional comments.

Computer Science & Information Technology