adplus-dvertising
frame-decoration

Question

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.

***
***

b.

***
***
***

c.

***

d.

***
***
***
***

Posted under Visual Basic

Answer: (a).***
***

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will the following code display in the lblAsterisks control?

Similar Questions

Discover Related MCQs

Q. A _______________displays a list of choices.

Q. The number of choices the user can select is controlled by the list box’s ________________

Q. The items in a list box belong to a collection called the ______________

Q. You specify each item to display in a list box using the Items collection’s______________

Q. Every variable has both a value and _____________

Q. Passing a copy of the variable is referred to as _____________________

Q. Passing a variable’s address is referred to as _____________________

Q. To pass a variable by value, you include the keyword ________________ before the name of its corresponding parameter.

Q. The ___________statement does not indicate whether a variable is passed by value or by reference.

Q. The position of an item in a list box depends on the value stored in the list box’s ____________________

Q. The items in a list box are sorted based on the ___________ characters in each item.

Q. The ___________ keyword tells the computer to pass the variable’s address rather than its contents.

Q. The items listed in the Call statement are referred to as ____________________

Q. Which of the following is false?

Q. _____________________ returns a value after performing its specific task.

Q. The functions header and footer contains the _______________ keyword.

Q. A function’s header includes the ___________ data type.

Q. A function can receive information either by value or by _________________

Q. Between the function’s _____________ and ___________________ you enter the instructions to process when the function is invoked.

Q. ________________ statement is the last statement in the function.