VB.NET Windows Forms Controls and Events

This quiz covers VB.NET Windows Forms controls, event handling, and fundamental software development concepts. Topics include Button, Form, and Timer controls, common control events, event-driven programming, the Rnd function, and software development lifecycle phases.

10 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

The Button control can be activated:

  1. programmatically through the click event.
  2. by clicking the button with the mouse.
  3. with the form’s DefaultButton property.
  4. Both a and b.
  5. All of the above.
Question 2 Multiple Choice (Single Answer)

The CancelButton property belongs to which object?

  1. Button
  2. Form
  3. Label
  4. TextBox
  5. Timer
Question 3 Multiple Choice (Single Answer)

A click event procedure stud for the label control can be created by:

  1. selecting the object and event from the code editor window’s drop-down boxes.
  2. typing the code in the code editor window.
  3. by double clicking the control.
  4. Both a and b.
  5. All of the above.
Question 4 Multiple Choice (Single Answer)

In event-driven programming an event is generated by:

  1. the system.
  2. a user’s action.
  3. the program itself.
  4. Both a and b.
  5. All of the above.
Question 5 Multiple Choice (Single Answer)

Which is not a common control event?

  1. Click
  2. SingleClick
  3. DoubleClick
  4. MouseMove
  5. MouseDown
Question 6 Multiple Choice (Single Answer)

The Tick event is found only in which object?

  1. Form
  2. Button
  3. TextBox
  4. Label
  5. Timer
Question 7 Multiple Choice (Single Answer)

The Activated event is found only in which object?

  1. Form
  2. Button
  3. TextBox
  4. Label
  5. Timer
Question 8 Multiple Choice (Single Answer)

The Rnd statement will generate a(n):

  1. decimal value between 0.01 and 1.00.
  2. integer value between 0.01 and 1.00.
  3. decimal value between 0.0 and 1.0.
  4. integer value between 0.0 and 1.0.
  5. decimal value between 0.0 and up to 1.0, but not including 1.0.
Question 9 Multiple Choice (Single Answer)

The analysis phase of software development involves:

  1. collecting the requirements about what the program will accomplish.
  2. creating a detailed plan on how the program will accomplish the requirements.
  3. writing the software with a program such as VB.NET.
  4. Both a and b.
  5. All of the above.
Question 10 Multiple Choice (Single Answer)

Which phase of project development typically costs the most?

  1. Analysis
  2. Design
  3. Implementation
  4. Maintenance
  5. Documentation