Visual Basic - Chapter 3
An access key is a key that you press in combination with the ___________________ key to access a control such as a button quickly.
Alt
The ________________________ function converts an expression to an integer
CInt
The ________________________ format string, when passed to the ToString method, produces a number in Currency format.
Currency
A __________________ structure allows a program to execute some statements only under certain circumstances.
Decision
A control whose Visible property is set to False still receives the focus. True or False
False
A local variable may be accessed by any other procedure in the same Form file. True or False
False
A named constant's value can be changed by a programming statement while the program is running. True or False
False
A variable's scope is the time during which the variable exists in memory. True or False
False
The CDbl function converts a number to a string. True or False
False
The string concatenation operator automatically inserts a space between the joined strings. True or False
False
To group controls in a group box, add the controls to a form first, then draw the group box around them. True or False
False
When a string variable is created in memory, Visual Basic assigns it the initial value of 0. True or False
False
While single-stepping through an application's code in debugging mode, the highlighted execution point is the line of code that has already executed. True or False
False
You can cause a control to be skipped in the tab order by setting its TabPosition property to False. True or False
False
A(n) __________ _____________ appears as a rectangular border with an optional title.
Group Box
When Option Strict is set to _________________, only widening conversions are permitted.
On
You can modify the tab order by changing a control's ________________________ property.
TabIndex
If you do not want a control to receive the focus when the user presses the [Tab] key, set its ________________________ property to False.
TabStop
The __________ control allows you to capture input the user has typed on the keyboard.
TextBox
A runtime error will occur if you assign a negative value to the TabIndex property in code. True or False
True
A variable declared inside a procedure is only visible to statements inside the same procedure. True or False
True
GroupBox and Label controls have a TabIndex property, but they are skipped in the tab order. True or False
True
If the CInt function cannot convert its argument, it causes a runtime error. True or False
True
Only controls capable of receiving input, such as TextBox and Button controls, may have the focus. True or False
True
The TextBox control's Text property holds the text entered by the user into the TextBox control at runtime. True or False
True
The multiplication operator has higher precedence than the addition operator. True or False
True
The statement lblMessage.BackColor = Color.Green will set lblMessage control's background color to green. True or False
True
When you assign an access key to a button, the user can trigger a Click event by typing [Alt] + the access key character. True or False
True
You can access a TextBox control's Text property in code. True or False
True
You can change the same property for multiple controls simultaneously. True or False
True
You can select multiple controls simultaneously with the mouse. True or False
True
Boolean expressions can only be evaluated as ___________________ or ___________________.
True or False
A(n) ________________________ is information that is being passed to a function.
argument
A(n) ________________________ is a line of code that causes a running application to pause execution and enter break mode.
breakpoint
A variable's _____________________ determines whether a variable can hold a string, an integer, a date, or some other kind of data.
declaration
A(n) ___________________ is a Boolean variable that signals when some condition exists in the program.
flag
The control that has the ________________________ is the one that receives the user's keyboard input or mouse clicks.
focus
A(n) ________________________ is a specialized routine that performs a specific operation and then returns a value.
function
A form's ____________ ____________ procedure executes each time a form loads into memory.
load event
A(n) _________________ variable is declared inside a procedure.
local
A(n) ___________ _____________ is like a variable whose content is read-only; it cannot be changed while the program is running.
named constant
When two operators share an operand, the operator with the highest ________________________ executes first.
precedence
A(n) ___________________ operator determines if a specific relationship exists between two values.
relational
___________ _____________ means that one string is appended to another
string concatenation
The order in which controls receive the focus is called the ________ _____________
tab order
You define a button's access key through its ________________________ property.
text
__________________ is a commonly used prefix for TextBox control names.
txt
A(n) ___________ _____________ error is generated anytime a nonnumeric value that cannot be automatically converted to a numeric value is assigned to a numeric variable or property
type conversion
A(n) ____________ is a storage location in the computer's memory, used for holding information while the program is running.
variable
A(n) _________________ is a statement that causes Visual Basic to create a variable in memory.
variable declaration