Solved

What Numbers Are Displayed in the List Box by the Following

Question 40

Multiple Choice

What numbers are displayed in the list box by the following program segment?
Dim numbers As String = "1492,1776,1945"
Dim temp As String = numbers.Split(","c)
Dim nums(2) As Integer
For i As Integer = 0 to 2
nums(i) = CInt(temp(i) )
Next
lstBox.Items.Add(nums(1) )
lstBox.Items.Add(nums.First)


A) 1776 and 1492
B) 1776 and 1776
C) 1492 and 1492
D) 1945 and 1492

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents