Documente Academic
Documente Profesional
Documente Cultură
1. Describe how the windows, components, and the features of the Visual Basic
IDE are used to develop, run, and debug an application.
A: Drag a control from the tool bar into the design er then code the
component to do a certain action then run it with debugger to make sure
there is no errors.
2. Indicate what would be displayed if each of these expressions were assigned
to a label:
A) 10 + 3 6 A: 7
B) 2 ^ 3 + 5 * 4 A: 28
C) 4 + 3 * 2 A: 10
D) 2 + 9 ^ (1 / 2) A: 5
E) 15 * 2 + 4 A: 34
F) 15 * (2 + 4) A: 90
G) 2 + 4 / 2 + 1 A: 5
H) 5 3 ^ 2 + 1 A: -3
I) 15 / 3 + 2 A: 7
J) 6 + 3 2 A: 6 + 3 2
K) 2 + 9 ^ 1 / 2 A: 6.5
L) 5 3 ^ (2 + 1) A: -22
3. Explain the term event-driven.
A: Executes code in response to events like a click.
4. List the controls presented in this chapter and explain if and how the user can
interact with each one.
A: A button to click, GroupBox to class an object to a form, Label to write
anything, MenuStrip to add an application, RadioButton to select something.
5. List at least one difference in the way a form looks between the Design
window and at run time.
A: The outlines to resize the controls.
6. List two ways to terminate a running application.
A: Click the close button in the upper right corner or code an exit command
7. Explain the difference between the (Name) and text properties of a control.
A: The (name) is what the computer uses and the text is what the reader
reads.
8. Why is it better to type the statement Me.lblMessage.Text = Hello, world!
rather than just lblMessage.Text = Hello, world!
A: Me means form object
9. Write the statements needed for the Click event procedures of radSum and
radDifference based on the following application. Assume the first label is
named lblMessage and the second is named lblResult.
A: radsum
lblResult.Text = 5 + 3
radDiffernece
lblResult.Text = 5 - 3
10.Explain the error(s) in the following comments:
This is my first program
9/9/12