Top 50+ Solved Dot Net Architecture and Program MCQ Questions Answer
Q. What is the correct statement when declaring and assigning the value of 100 to an Integer variable called numPeople
a. dim numpeople =
b. dim numpeople = int(100)
c. numpeople = 100
d. dim numpeople as integer = 100
Q. Which of the following arithmetic operations has the highest level of precedence?
a. + –
b. * /
c. ^ exponentiation
d. ( )
Q. Keywords in Visual Basic are words that
a. should be used when naming variables.
b. are used to name controls, such as textbox1, command2, etc.
c. have special meaning and should not be used when naming variables.
d. are used as prefixes for control names (such as txt, btn, lbl, and lst).
Q. To continue a long statement on another line, use:
a. an underscore character.
b. an ampersand character.
c. ctrl + enter.
d. a space followed by an underscore character.
Q. What is the proper syntax when using a message dialog box?
a. messagebox.show(“hi there”, “hi”)
b. messagebox.show(hi there, hi)
c. messagebox.show “hi there”, “hi”
d. messagebox.show hi there, hi
Q. What will be the output of the following statement? txtBox.Text = FormatCurrency(1234.567)
a. $1234.567
b. 1,234.57
c. $1234.57
d. $1,234.57