Q5) what are the values will be printed by the following? 1. For i As Integer = 4 To 15 If (i Mod 2 = 0) Then sum = sum + i Next TextBox1.Text = sum 2. Dim sum As Integer = 0 For i As Integer 15 To 10...


Q5) what are the values will be printed by the following?<br>1. For i As Integer = 4 To 15<br>If (i Mod 2 = 0) Then sum = sum + i<br>Next<br>TextBox1.Text = sum<br>2. Dim sum As Integer = 0<br>For i As Integer 15 To 10<br>If (i < 0) Then sum = sum - i<br>Next<br>TextBox1.Text sum<br>3. Dim numbers(3) As Integer<br>For i As Integer = 0 To numbers.Length - 1<br>numbers(i) = i+ 1<br>ListBox1.Items.Add(numbers(2))<br>Next<br>4. Dim i As Integer = 4<br>Do<br>ListBox1.Items.Add(6)<br>i=i+1<br>Loop While i <= 2<br>5. Dim i As Integer 0<br>Do Until i = 10<br>If (i Mod 2 = 0) Then<br>ListBox1.Items.Add(0)<br>End If<br>i =i+1<br>Loop<br>

Extracted text: Q5) what are the values will be printed by the following? 1. For i As Integer = 4 To 15 If (i Mod 2 = 0) Then sum = sum + i Next TextBox1.Text = sum 2. Dim sum As Integer = 0 For i As Integer 15 To 10 If (i < 0)="" then="" sum="sum" -="" i="" next="" textbox1.text="" sum="" 3.="" dim="" numbers(3)="" as="" integer="" for="" i="" as="" integer="0" to="" numbers.length="" -="" 1="" numbers(i)="i+" 1="" listbox1.items.add(numbers(2))="" next="" 4.="" dim="" i="" as="" integer="4" do="" listbox1.items.add(6)="" i="i+1" loop="" while="" i=""><= 2="" 5.="" dim="" i="" as="" integer="" 0="" do="" until="" i="10" if="" (i="" mod="" 2="0)" then="" listbox1.items.add(0)="" end="" if="" i="i+1">

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here