32.
What will be assigned to the dblAvg variable after the code has been executed?

Do While intSub < 4
intTotal = intTotal + intNums(intSub)
intSub = intSub + 1
Loop
dblAvg = intTotal / intSub
Dim intNums() As Integer = {10, 5, 7, 2}. The intTotal, intSub, and dblAvg variables contain the number 0 before the loops are processed.

37.
In the following Visual Basic code, what will be in msg, if str contains "ik"?

Dim str as String
Dim  msg as String
If str.toUpper="IK" 
   msg="Hi"
Else
   msg="Bye"
EndIf

38.
. . . . . . . . format. In this format, the windows associated with the project will stay within a single container known as the parent. Code and form-based windows will stay within the main container form.

Read More Section(Visual Basic)

Each Section contains maximum 100 MCQs question on Visual Basic. To get more questions visit other sections.