0
Alien head

Visual Basic (VB) .net Quiz

Description: Visual Basic (VB) .net Quiz
Number of Questions: 10
Created by:
Tags: .net vb

Which event is activated when a RadioButton is selected?

  1. Checked

  2. CheckedChanged

  3. Selected

  4. SelectedChanged

  5. SelectionChanged

Answer: 2

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.

Answer: 5

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.

Answer: 4

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.

Answer: 1

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

  1. 1

  2. 2

  3. 3

  4. As many times as needed.

Answer: 4

Which parameter is found in an event procedure?

  1. e

  2. Sender

  3. Receiver

  4. Both a and b.

  5. All of the above.

Answer: 5

Which is an optional element of an event procedure?

  1. End Sub

  2. Handles

  3. Object_Event

  4. Statements

  5. Sub

Answer: 4

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.

Answer: 3

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.

Answer: 5

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.

Answer: 4
+ View questions