Vidyalelo
Visual Basic · Q432

Visual Basic MCQs: Test Your Proficiency in Visual Basic Programming

Programming · Visual Basic · question 432

Q432

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.

A.
0
B.
5
C.
6
Answer
D.
8

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board