Q. . . . . . . . . prevents you from using undeclared variable in your code.

  • (A) Option Explicit On
  • (B) Option Implicit On
  • (C) Explicit Off
  • (D) Implicit Off
πŸ’¬ Discuss
βœ… Correct Answer: (A) Option Explicit On

Q. . . . . . . . . data types hold either a true or false value

  • (A) string
  • (B) boolean
  • (C) variant
  • (D) date
πŸ’¬ Discuss
βœ… Correct Answer: (B) boolean

Q. . . . . . . . . ensures every variable and named constant is declared with a data type.

  • (A) Option Infer Off
  • (B) Option Infer On
  • (C) Option On
  • (D) Option off
πŸ’¬ Discuss
βœ… Correct Answer: (A) Option Infer Off

Q. Variable declared in a procedure have . . . . . . . . scope.

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

Q. In vb . . . . . . . . is the extension to represent project file.

  • (A) .frm
  • (B) .vbp
  • (C) .cls
  • (D) .vb
πŸ’¬ Discuss
βœ… Correct Answer: (B) .vbp

Q. What is wrong with the expression "const dblPi As Double = 3.141593"?

  • (A) Double is written
  • (B) Name should be DBLPi
  • (C) "const" starts with a "C"
  • (D) Value is too large
πŸ’¬ Discuss
βœ… Correct Answer: (C) "const" starts with a "C"

Q. A form's . . . . . . . . event is triggered when you click the Close button on its title bar.

  • (A) Close
  • (B) CloseForm
  • (C) FormClose
  • (D) FormClosing
πŸ’¬ Discuss
βœ… Correct Answer: (D) FormClosing

Q. Which of the following is the caption part for the following Visual Basic command?

Code:
MessageBox.Show("Delete Visual Basic?","VB.Net",MessageBoxButtons.YesNo,
MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2).
  • (A) MessageBoxButtons.YesNo
  • (B) MessageBoxIcon.Exclamation
  • (C) "VB.Net"
  • (D) "Delete Visual Basic?"
πŸ’¬ Discuss
βœ… Correct Answer: (C) "VB.Net"

Q. Files that contain lines of text are known as . . . . . . . .

  • (A) Binary files
  • (B) Text files
  • (C) Character files
  • (D) Array files
πŸ’¬ Discuss
βœ… Correct Answer: (B) Text files

Q. What is the result of the expression 10-2+20>2*14-2?

  • (A) Syntax error
  • (B) No resulting value found
  • (C) False
  • (D) True
πŸ’¬ Discuss
βœ… Correct Answer: (D) True