πŸ“Š Visual Basics
Q. What will be assigned to the dblAvg variable after the code has been executed?
The intTotal, intSub, and dblAvg variables contain the number 0 before the loops are processed.
Code:
Do While intSub < 4
intTotal = intTotal + intNums(intSub)
intSub = intSub + 1
Loop
dblAvg = intTotal / intSub
Dim intNums() As Integer = {10, 5, 7, 2}. 
  • (A) 0
  • (B) 5
  • (C) 6
  • (D) 8
πŸ’¬ Discuss
βœ… Correct Answer: (C) 6

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
95
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ritu Nagar
Publisher
πŸ“ˆ
83%
Success Rate