Vous êtes sur la page 1sur 2

Visual Basic Chapter 1 Critical Thinking Questions

Ryan

Boparai

1. Menu Bar --Contains the names of drop-drown menus and commands


Tool Bar--Contains buttons that produce different actions
Start Page -- A window to help get started with programming.
Design Window--Displays the applications graphical interface.
Toolbox--Contains objects that can be used on the graphical Interface.
Solution Explorer--Window is used to switch between design and code
windows.
Properties WindowLists the different properties of an object
2. A) 7

B)28 C)10 D)5

E)34 F)90

G)5

H)-3

i)7

J)7

K)6.5 L)-22

3. Event-Driven describes a program which implements code when an action


is performed
4. The controls presented in this chapter were:
A Label displays modifiable text
A MenuStrip Displays a Drop-Down menu
A set of RadioButtons are used so the user can select a variety of
options
Button Objects are used to perform an action
5.

One difference between an application in the design window and an


application at run time, is an application at run-time doesnt display a box
around its labels.

6. One way to terminate a running application is the X in the top-right corner.


Another way is to select a button which runs the Close() command
7. The difference between text properties and name properties, is the text
property displays text in the design window, while the name property names
the control so it can be labeled and used in the code window.
8. It is better to write Me.lblMessage.Text = Hello World Since it is possible
you may be working with multiple forms and Me refers to the form you are
currently working on.
9. The command for radSum in this scenario is Me.lblResult.Text = The sum of
X and is 8. While the command for radDifference is Me.lbl.Result.Text =
The difference between x and y is 2.

10. One error is the second line does not begin with a single quotation. Another
is the third line reiterates the code by saying what the greeting was.
11.A) False, a Visual Basic Application can consist of multiple files
B) True
C) True
D) False, Properties can also be set in the code window
E) True
F) True
G) False, a menu strip can have multiple MenuItem objects
H) False, A line of code is called a line of code.
I) True
J) False Program Code is typed into the code window
K) False, buttons in the toolbox are used to be dragged onto the form
L) True
M) False Private means the element can only be accessed by the class,
module or structure, it is in
N) True
O)
P) False, only one radio button can be selected in a single set
Q) True
R) False, Comments are displayed only in the program code to tell other
programmers what the purpose of lines or blocks of code are.
S) False, Multiline comments start with a single quotation mark
T) True

Vous aimerez peut-être aussi