Visual Basic (VB) .net Quiz

Visual Basic (VB) .net Quiz

10 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which event is activated when a RadioButton is selected?

  1. Checked
  2. CheckedChanged
  3. Selected
  4. SelectedChanged
  5. SelectionChanged
Question 2 Multiple Choice (Single Answer)

Which is a type of procedure found in VB.Net?

  1. Event
  2. Function
  3. Sub
  4. Both a and b.
  5. All of the above.
Question 3 Multiple Choice (Single Answer)

The methodology where code is broken into small, logical procedures is called:

  1. event-driven programming.
  2. functional programming.
  3. granular programming.
  4. modular programming.
  5. procedural programming.
Question 4 Multiple Choice (Single Answer)

When using a procedure the calling code sends data via the:

  1. actual argument to the formal parameter of the procedure.
  2. formal argument to the actual parameter of the procedure.
  3. actual parameter to the formal argument of the procedure.
  4. formal parameter to the actual argument of the procedure.
  5. All of the above.
Question 5 Multiple Choice (Single Answer)

From how many places in the code can a procedure be called?

  1. 1
  2. 2
  3. 3
  4. As many times as needed.
Question 6 Multiple Choice (Single Answer)

Which parameter is found in an event procedure?

  1. e
  2. Sender
  3. Receiver
  4. Both a and b.
  5. All of the above.
Question 7 Multiple Choice (Single Answer)

Which is an optional element of an event procedure?

  1. End Sub
  2. Handles
  3. Object_Event
  4. Statements
  5. Sub
Question 8 Multiple Choice (Single Answer)

What happens when a parameter in a procedure is declared ByVal?

  1. Only arguments of numeric data types are allowed.
  2. A reference to the argument is sent to the procedure.
  3. A copy of the argument is sent to the procedure.
  4. Both a and b.
  5. All of the above.
Question 9 Multiple Choice (Single Answer)

Which is a valid way to write the procedure stub for an object’s default event?

  1. Use the Class and Method combo boxes in the Code Editor window.
  2. Double click on the object in the Form Designer window.
  3. Type the procedure declaration in the Code Editor window.
  4. Both a and b.
  5. All of the above.
Question 10 Multiple Choice (Single Answer)

A sub procedure is valuable because it:

  1. makes code easier to maintain.
  2. splits the logic to solve a problem into small, manageable units.
  3. limits the number of times the code can be accessed.
  4. Both a and b.
  5. All of the above.