Top 50+ Solved Dot Net Architecture and Program MCQ Questions Answer

From 31 to 41 of 41

Q. The value returned by InputBox is a string.

a. true

b. false

  • a. true

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

  • d. dim numpeople as integer = 100

Q. Which of the following arithmetic operations has the highest level of precedence?

a. + –

b. * /

c. ^ exponentiation

d. ( )

  • c. ^ exponentiation

Q. Which of the following is a valid name for a variable?

a. two_one

b. 2one

c. two one

d. two.one

  • a. two_one

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).

  • c. have special meaning and should not be used when naming variables.

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.

  • a. 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

  • a. 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

  • d. $1,234.57
Subscribe Now

Get All Updates & News