Q. What will be the output of the following Visual Basic code?

Code:
Dim intScores As Integer = {78, 83, 75, 90}
Array.Reverse(intScores)
  • (A) 78, 83, 75,90
  • (B) 75,78, 83,90
  • (C) 78,75,83,90
  • (D) 90,75,83,78
πŸ’¬ Discuss
βœ… Correct Answer: (D) 90,75,83,78

Q. The main Property of radio button box is . . . . . . . .

  • (A) check
  • (B) value
  • (C) stretch
  • (D) load picture
πŸ’¬ Discuss
βœ… Correct Answer: (B) value

Q. Text that cannot be changed by the user is termed as . . . . . . . . text.

  • (A) Constant
  • (B) Dynamic
  • (C) Static
  • (D) Hardcoded
πŸ’¬ Discuss
βœ… Correct Answer: (C) Static

Q. The main property of . . . . . . . ., is LoadPicture and resize the picture .

  • (A) picture
  • (B) text
  • (C) list
  • (D) form
πŸ’¬ Discuss
βœ… Correct Answer: (A) picture

Q. While entering a numeric literal constant you need not enter a . . . . . . . .

  • (A) Number
  • (B) Special character
  • (C) Character
  • (D) Double variable
πŸ’¬ Discuss
βœ… Correct Answer: (B) Special character

Q. The convention is to use . . . . . . . . case for classname.

  • (A) Upper
  • (B) Lower
  • (C) Pascal
  • (D) Mixed
πŸ’¬ Discuss
βœ… Correct Answer: (C) Pascal

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

Code:
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) 30

Q. Radio buttons are used to . . . . . . . .

  • (A) make interface look better
  • (B) make coding easier
  • (C) limit user input
  • (D) fill unique information
πŸ’¬ Discuss
βœ… Correct Answer: (C) limit user input

Q. What output will be returned if the following Visual Basic code is executed?

Code:
strCityState = "Nashville, TN"
intCharIndex = strCityState.IndexOf("TN")
  • (A) True
  • (B) False
  • (C) 11
  • (D) 12
πŸ’¬ Discuss
βœ… Correct Answer: (C) 11

Q. How many times will the MessageBox.Show method in the following code be processed?

Code:
intCount =0;
Do
MessageBox.Show("Hello")
intCount += 1
Loop While intCount > 3
  • (A) 0
  • (B) 1
  • (C) 3
  • (D) 4
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1