Answer to Question #27563 in Visual Basic for desi

Question #27563
Which of the following will not display four asterisks on each of three lines in the lblMsg control?

a) lblMsg.Text = "****" &
ControlChars.NewLine & "****" &
ControlChars.NewLine & "****"

b) For intCounter As Integer= 1 to 3
lblMsg.Text = lblMag.Text &
"****" & ControlChars.NewLine
Next intCounter

c) For intX As Integer = 1 to 4
Fir intY As Integer = 1 to 3
lblMsg.Text = lblMag.Text & "*"
Next intY
lblMsg.Text = lblMsg.Text &
ControlChars.NewLine
Next intX

d) For intX As Integer = 1 to 3
Fir intY As Integer = 1 to 4
lblMsg.Text = lblMag.Text & "*"
Next intY
lblMsg.Text = lblMsg.Text &
ControlChars.NewLine
Next intX

Could you help me get the answer please?
1
Expert's answer
2013-04-10T09:12:36-0400

The answer C will not display four asterisks on each of three lines in the lblMsg control

c) For intX As Integer = 1 to 4
Fir intY As Integer = 1 to 3
lblMsg.Text = lblMag.Text & "*"
Next intY
lblMsg.Text = lblMsg.Text &
ControlChars.NewLine
Next intX

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS