Question
Dim intSum As Integer
Dim intY As Integer
Do While intY < 3
For intX As Integer = 1 To 4
intSum = intSum + intX
Next intX
intY = intY + 1
Loop
lblSum.Text = Convert.ToString(intSum)
a.
5
b.
8
c.
15
d.
30
Posted under Visual Basic
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 lblSum control?
Similar Questions
Discover Related MCQs
Q. A _______________displays a list of choices.
View solution
Q. The number of choices the user can select is controlled by the list box’s ________________
View solution
Q. The items in a list box belong to a collection called the ______________
View solution
Q. You specify each item to display in a list box using the Items collection’s______________
View solution
Q. Every variable has both a value and _____________
View solution
Q. Passing a copy of the variable is referred to as _____________________
View solution
Q. Passing a variable’s address is referred to as _____________________
View solution
Q. To pass a variable by value, you include the keyword ________________ before the name of its corresponding parameter.
View solution
Q. The ___________statement does not indicate whether a variable is passed by value or by reference.
View solution
Q. The position of an item in a list box depends on the value stored in the list box’s ____________________
View solution
Q. The items in a list box are sorted based on the ___________ characters in each item.
View solution
Q. The ___________ keyword tells the computer to pass the variable’s address rather than its contents.
View solution
Q. The items listed in the Call statement are referred to as ____________________
View solution
Q. Which of the following is false?
View solution
Q. _____________________ returns a value after performing its specific task.
View solution
Q. The functions header and footer contains the _______________ keyword.
View solution
Q. A function’s header includes the ___________ data type.
View solution
Q. A function can receive information either by value or by _________________
View solution
Q. Between the function’s _____________ and ___________________ you enter the instructions to process when the function is invoked.
View solution
Q. ________________ statement is the last statement in the function.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Visual Basic? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!