0
Alien head

Visual Basic (VB) .net Quiz

Description: Visual Basic (VB) .net Quiz
Number of Questions: 10
Created by:
Tags: .net vb
Attempted 0/10 Correct 0 Score 0

Which event is activated when a RadioButton is selected?

  1. Checked

  2. CheckedChanged

  3. Selected

  4. SelectedChanged

  5. SelectionChanged


Correct Option: B

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.


Correct Option: E

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.


Correct Option: D

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.


Correct Option: A

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

  1. 1

  2. 2

  3. 3

  4. As many times as needed.


Correct Option: D

Which parameter is found in an event procedure?

  1. e

  2. Sender

  3. Receiver

  4. Both a and b.

  5. All of the above.


Correct Option: E

Which is an optional element of an event procedure?

  1. End Sub

  2. Handles

  3. Object_Event

  4. Statements

  5. Sub


Correct Option: D

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.


Correct Option: C

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.


Correct Option: E

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.


Correct Option: D
+ View questions