πŸ“Š Visual Basics
Q. In most applications, the code to define a user-defined data type is entered in the form's.
  • (A) Declarations section
  • (B) Definition section
  • (C) Load event procedure
  • (D) User-defined section
πŸ’¬ Discuss
βœ… Correct Answer: (A) Declarations section
πŸ“Š Visual Basics
Q. Variables declared in a form's declaration section have . . . . . . . . scope.
  • (A) Class
  • (B) Procedure
  • (C) Block
  • (D) Object
πŸ’¬ Discuss
βœ… Correct Answer: (A) Class
πŸ“Š Visual Basics
Q. A structure variable named address contains a member variable named strStreet. Which of the following statements assigns the string "Maple" to the member variable?
  • (A) address&strStreet = "Maple"
  • (B) address.strStreet = "Maple"
  • (C) strStreet.address = "Maple"
  • (D) strStreet&address="Maple"
πŸ’¬ Discuss
βœ… Correct Answer: (B) address.strStreet = "Maple"
πŸ“Š Visual Basics
Q. ControlChars.NewLine constant is a . . . . . . . . constant.
  • (A) Pure
  • (B) Invariable
  • (C) Character
  • (D) Intrinsic
πŸ’¬ Discuss
βœ… Correct Answer: (D) Intrinsic
πŸ“Š Visual Basics
Q. Using array in a program is efficient because . . . . . . . .
  • (A) It shortens the program.
  • (B) The program compiles faster
  • (C) Number of variables are reduced.
  • (D) Data is accessed faster
πŸ’¬ Discuss
βœ… Correct Answer: (D) Data is accessed faster
πŸ“Š Visual Basics
Q. . . . . . . . . function is used to format numbers.
  • (A) toString
  • (B) toNumber
  • (C) toFormat
  • (D) toSpecify
πŸ’¬ Discuss
βœ… Correct Answer: (A) toString
πŸ“Š Visual Basics
Q. Which is used to restore a property's value?
  • (A) Restore button
  • (B) Reset button
  • (C) Default button
  • (D) Back button
πŸ’¬ Discuss
βœ… Correct Answer: (B) Reset button
πŸ“Š Visual Basics
Q. Writing data to a file is referred to as . . . . . . . .
  • (A) Reading a file
  • (B) Writing a file
  • (C) Appending a file
  • (D) Executing a file
πŸ’¬ Discuss
βœ… Correct Answer: (B) Writing a file
πŸ“Š Visual Basics
Q. The intNums array is declared as follows: Dim intNums() As Integer = {10, 5, 7, 2}. Which of the following blocks of code correctly calculates the average value stored in the array? The intTotal, intSub, and dblAvg variables contain the number 0 before the loops are processed.
  • (A) Do While intSub < 4 intNums(intSub) = intTotal + intTotal intSub = intSub + 1 Loop dblAvg = intTotal / intSub
  • (B) Do While intSub < 4 intTotal = intTotal + intNums(intSub) intSub = intSub + 1 Loop dblAvg = intTotal / intSub
  • (C) Do While intSub < 4 intTotal = intTotal + intNums(intSub) intSub = intSub + 1 Loop dblAvg = intTotal / intSub − 1
  • (D) Do While intSub < 4 intTotal = intTotal + intNums(intSub) intSub = intSub + 1 Loop dblAvg = intTotal / (intSub − 1)
πŸ’¬ Discuss
βœ… Correct Answer: (B) Do While intSub < 4 intTotal = intTotal + intNums(intSub) intSub = intSub + 1 Loop dblAvg = intTotal / intSub
πŸ“Š Visual Basics
Q. The main Property of check box is . . . . . . . .
  • (A) check
  • (B) value
  • (C) stretch
  • (D) load picture
πŸ’¬ Discuss
βœ… Correct Answer: (A) check