Q. Object respond to an event by writing . . . . . . . .

  • (A) Operations
  • (B) Event procedures
  • (C) Defining events
  • (D) Defining actions
πŸ’¬ Discuss
βœ… Correct Answer: (B) Event procedures

Q. If array is of String type all values are . . . . . . . . by default.

  • (A) null
  • (B) Null
  • (C) 0
  • (D) Nothing
πŸ’¬ Discuss
βœ… Correct Answer: (D) Nothing

Q. Which of the following statements pauses program execution for 1 second?

  • (A) System.Threading.Thread.Pause(1000)
  • (B) System.Threading.Thread.Pause(1)
  • (C) System.Threading.Thread.Sleep(1000)
  • (D) System.Threading.Thread.Sleep(100)
πŸ’¬ Discuss
βœ… Correct Answer: (C) System.Threading.Thread.Sleep(1000)

Q. You refer to the member variable by preceding its name with the name of the . . . . . . . . in which it is defined.

  • (A) Variable
  • (B) Auto variable
  • (C) Structure variable
  • (D) Constant variable
πŸ’¬ Discuss
βœ… Correct Answer: (C) Structure variable

Q. During runtime radio button can be selected, if a radio button is already selected or not by using the . . . . . . . . property.

  • (A) Checked
  • (B) Unchecked
  • (C) On
  • (D) Selected
πŸ’¬ Discuss
βœ… Correct Answer: (A) Checked

Q. What will be in strName after the following code is executed?

Code:
strName="Joanne Hashen"
strName=strName.Insert(7,"C.");
  • (A) Joanne C. Hashen
  • (B) JoanneC.hashen
  • (C) Joanne
  • (D) C.Hashen
πŸ’¬ Discuss
βœ… Correct Answer: (A) Joanne C. Hashen

Q. What is wrong with the following statement?

Code:
Dim strCities As String = {"Bombay", "Chennai", "Ladakh", "Tamil Nadu"}
  • (A) static keyword missing
  • (B) array elements should be initialized using single quotes
  • (C) array elements should be in square brackets
  • (D) array name should be strCities()
πŸ’¬ Discuss
βœ… Correct Answer: (D) array name should be strCities()

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

  • (A) Collection
  • (B) Items Collection
  • (C) Items Add
  • (D) Add
πŸ’¬ Discuss
βœ… Correct Answer: (B) Items Collection

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

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

Q. . . . . . . . . in the Tool Box is used to add a button control to a form.

  • (A) Button Tool
  • (B) Add Button
  • (C) New Button
  • (D) Add new Button
πŸ’¬ Discuss
βœ… Correct Answer: (A) Button Tool