Q. The property values of the shape control are 0, 1, and 2,3,4,5 which will make it appear as a rectangle, a square, an oval shape, a circle, a rounded rectangle and a rounded square respectively.

  • (A) TRUE
  • (B) Writing a file
  • (C) ---
  • (D) ---
πŸ’¬ Discuss
βœ… Correct Answer: (A) TRUE

Q. Named constants are used because . . . . . . . .

  • (A) Because they take up less space in memory
  • (B) Value
  • (C) Because they can be easily accessed by procedures
  • (D) Because they are easily declared
πŸ’¬ Discuss
βœ… Correct Answer: (B) Value

Q. Reading data from a file is referred to as . . . . . . . .

  • (A) Reading a file
  • (B) Sub procedure
  • (C) Appending a file
  • (D) Executing a file
πŸ’¬ Discuss
βœ… Correct Answer: (A) Reading a file

Q. . . . . . . . . method allows you to insert anywhere in the string.

  • (A) Remove
  • (B) Insert
  • (C) Import
  • (D) Delete
πŸ’¬ Discuss
βœ… Correct Answer: (B) Insert

Q. As per the syllabus we study version of VB is . . . . . . . .

  • (A) 6
  • (B) 4
  • (C) 6.22
  • (D) 3.33
πŸ’¬ Discuss
βœ… Correct Answer: (A) 6

Q. Object Browser are open from the . . . . . . . . or pressing the key F2. The left column of the Object Browser lists the objects and classes that are available in the projects

  • (A) view menu
  • (B) tool menu
  • (C) insert menu
  • (D) object browser
πŸ’¬ Discuss
βœ… Correct Answer: (A) view menu

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

Code:
For intNum As Integer = 5 To 1 Step -1
MessageBox.Show("Hi")
Next intNum
  • (A) 6
  • (B) 5
  • (C) 4
  • (D) 7
πŸ’¬ Discuss
βœ… Correct Answer: (B) 5

Q. To delay program execution, you can use the . . . . . . . .

  • (A) Refresh Method
  • (B) Sleep method
  • (C) Count method
  • (D) Accumulator method
πŸ’¬ Discuss
βœ… Correct Answer: (B) Sleep method

Q. The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. Which of the following loops will correctly add 100 to each array element? The intSub variable contains the number 0 before the loops are processed.

  • (A) Do While intSub <= 4 intSub = intSub + 100 Loop
  • (B) Do While intSub <= 4 intSales = intSales + 100 Loop
  • (C) Do While intSub < 5 intSales(intSub) =intSales(intSub) + 100 Loop
  • (D) Do While intSub <6 intSales(intSub) = intSales(intSub) + 100 Loop
πŸ’¬ Discuss
βœ… Correct Answer: (C) Do While intSub < 5 intSales(intSub) =intSales(intSub) + 100 Loop

Q. . . . . . . . . is an activity that occurs during program execution such as mouse click or keystroke.

  • (A) event
  • (B) module
  • (C) code
  • (D) property
πŸ’¬ Discuss
βœ… Correct Answer: (A) event