Vidyalelo
Computer Science · Q412

Visual Basic MCQs: Test Your Proficiency in Visual Basic Programming

Engineering and GATE · Computer Science · question 412

Q412

What will the following code display in the lblAsterisks control? For intX As Integer = 1 To 2 For intY As Integer = 1 To 3 lblAsterisks.Text = lblAsterisks.Text & "*" Next intY lblAsterisks.Text = lblAsterisks.Text & ControlChars.NewLine Next intX

A.
***
***
Answer
B.
***
***
***
C.
***
D.
***
***
***
***

Answer: Option A

Solution

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