Q. After defining a class you can instantiate one or more . . . . . . . .

  • (A) Objects
  • (B) Classes
  • (C) Attributes
  • (D) Methods
πŸ’¬ Discuss
βœ… Correct Answer: (A) Objects

Q. What is used to add a Label control to a form?

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

Q. Which button is used to display the names in the property list by category?

  • (A) Categorized button
  • (B) Alphabetical button
  • (C) Lexicographical button
  • (D) Group button
πŸ’¬ Discuss
βœ… Correct Answer: (A) Categorized button

Q. The name of the button control is changed using . . . . . . . .

  • (A) Button Tool Window
  • (B) Change Name
  • (C) Edit Window
  • (D) Properties window
πŸ’¬ Discuss
βœ… Correct Answer: (D) Properties window

Q. A . . . . . . . . occurs when you break the rules of the language.

  • (A) Logical errors
  • (B) Syntax errors
  • (C) Exceptions
  • (D) Application shut down
πŸ’¬ Discuss
βœ… Correct Answer: (B) Syntax errors

Q. . . . . . . . . is insert from component , it is used to load ADO control.

  • (A) microsoft activex data control 6
  • (B) microsoft combo control 6
  • (C) microsoft data grid control.
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (A) microsoft activex data control 6

Q. The strItems array is declared as follows: Dim strItems(20) As String. The intSub variable keeps track of the array subscripts and is initialized to 0. Which of the following Do clauses will process the loop instructions for each element in the array?

  • (A) Do While intSub > 20
  • (B) Do While intSub < 20
  • (C) Do While intSub >= 20
  • (D) Do While intSub <= 20
πŸ’¬ Discuss
βœ… Correct Answer: (B) Do While intSub < 20

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

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

Q. . . . . . . . . property disables the Minimize button on the form's title bar.

  • (A) Minimize property
  • (B) Maximize property
  • (C) Close property
  • (D) Control Box property
πŸ’¬ Discuss
βœ… Correct Answer: (A) Minimize property

Q. Variables declared in a block have . . . . . . . . scope.

  • (A) Class
  • (B) Procedure
  • (C) Block
  • (D) Object
πŸ’¬ Discuss
βœ… Correct Answer: (C) Block