click below
click below
Normal Size Small Size show me how
CIT166 Ch 3 and 4
CIT166 Visual Basic Chapters 3 and 4 Terms
Term | Definition |
---|---|
Arguments | items within parentheses after the name of either a method or a procedure; represents information that the method or procedure needs to perform its task(s) |
Class scope | the scope of a class-level memory location (variable or named constant); refers to the fact that the memory location can be used by any procedure in the form class’s declarations section |
Class-level named constants | a named constant declared in a form class’s declarations section; it has class scope and should be declared using the keywords Private Const |
Class-level variables | a variable declared in a form class’s declarations section; it has class scope and should be declared using the keyword Private |
Const statement | the statement used to create a named constant |
Declaring a memory location | reserving a location in the computer’s main memory for use within an application’s code |
Demoted | the process of converting a value from one data type to another data type that can store only smaller numbers or numbers with less precision |
Dim statement | the statement used to declare procedure-level variables Enter event |
Flowchart | a planning tool that uses standardized symbols to illustrate the steps a procedure must take to accomplish its purpose |
Flowlines | the lines connecting the symbols in a flowchart |
Form class’s declarations section | the area located between the Public Class and End Class clauses in the Code Editor window; class-level memory locations are declared in this section |
Format | specifying the number of decimal places and the special characters to display in a number treated as a string |
Implicit type conversion | the process by which a value is automatically converted to fit the data type of the memory location to which it is assigned |
Input/output symbol | the parallelogram in a flowchart |
Integer division operator | represented by a backslash (\); divides two integers and then returns the quotient as an integer |
Lifetime | indicates how long a variable or named constant remains in the computer’s main memory |
Literal type character | a character (such as the letter D) appended to a literal for the purpose of forcing the literal to assume a different data type (such as Decimal) |
Modulus operator | represented by the keyword Mod; divides two numbers and then returns the remainder of the division |
Named constant | a computer memory location where programmers can store data that cannot be changed during run time |
Private keyword | used to declare class-level memory locations (variables and named constants) |
Procedure scope | the scope of a procedure-level memory location (variable or named constant); refers to the fact that the memory location can be used only by the procedure that declares it |
Procedure-level named constants | named constants declared in a procedure; the constants have procedure scope |
Procedure-level variables | variables declared in a procedure; the variables have procedure scope |
Process symbols | the rectangles in a flowchart |
Promoted | the process of converting a value from one data type to another data type that can store either larger numbers or numbers with greater precision |
Pseudocode | a planning tool that uses phrases to describe the steps a procedure must take to accomplish its purpose |
RAM | random access memory |
Random access memory | the main memory of a computer |
Scope | indicates where a memory location (variable or named constant) can be used in an application’s code |
SelectAll method | used to select all of the text contained in a text box |
Start/stop symbol | the ovals in a flowchart |
Static keyword | used to declare a static variable |
Static variable | a procedure-level variable that remains in main memory and also retains its value until the application (rather than its declaring procedure) ends |
String | a sequence of characters (numbers, letters, special characters, and so on) |
String.Empty | the value that represents the empty string in Visual Basic |
TextChanged event | occurs each time the value in a control’s Text property changes |
ToString method | formats a copy of a number and returns the result as a string |
TryParse method | used to convert a string to a specified numeric data type |
Variable | a computer memory location where programmers can temporarily store data, as well as change the data, during run time |
And operator | one of the logical operators; same as the AndAlso operator, but less efficient because it does not perform a short-circuit evaluation |
AndAlso operator | one of the logical operators; when used to combine two subconditions, the resulting compound condition evaluates to True only when both subconditions are True, and it evaluates to False only when one or both of the subconditions are False; |
Arithmetic assignment operators | composed of an arithmetic operator followed by the assignment operator; used to abbreviate some assignment statements; see Figure 4-50 for the syntax and examples |
Check box | used in an interface to offer the user one or more independent and nonexclusive choices |
Check box’s Checked property | contains a Boolean value that indicates whether the check box is selected (True) or not selected (False) |
Check box’s CheckedChanged event | occurs when the value in the check box’s Checked property changes |
Comparison operators | operators used to compare values in an expression; also called relational operators |
Condition | specifies the decision that the computer needs to make; must be phrased so that it evaluates to an answer of either True or False |
ControlChars.Back constant | the Visual Basic constant that represents the Backspace key on your keyboard |
Decision symbol | the diamond in a flowchart; used to represent the condition in a selection structure |
Default radio button | the radio button that is automatically selected when the application is started and the interface appears |
Dual-alternative selection structure | a selection structure that requires one set of instructions to be followed only when the structure’s condition evaluates to True and a different set of instructions to be followed only when the structure’s condition evaluates to False |
Extended selection structures | another name for multiple-alternative selection structures False path |
Group box | a control that is used to contain other controls; instantiated using the GroupBox tool, which is located in the Containers section of the toolbox |
Handled property | a property of the KeyPress event procedure’s e parameter; when assigned the value True, it cancels the key pressed by the user |
If...Then...Else statement | used to code single-alternative, dual-alternative, and multiple- alternative selection structures in Visual Basic |
KeyChar property | a property of the KeyPress event procedure’s e parameter; stores the character associated with the key pressed by the user |
KeyPress event | occurs each time the user presses a key while a control has the focus |
Logical operators | operators used to combine two or more subconditions into one compound condition; also called Boolean operators |
Multiple-alternative selection structures | selection structures that contain several alternatives; also called extended selection structures; can be coded using either If... Then...Else statements or the Select Case statement |
Nested selection structure | a selection structure that is wholly contained (nested) within either the true or false path of another selection structure |
Not operator | one of the logical operators; reverses the truth-value of a condition |
Or operator | one of the logical operators; same as the OrElse operator but less efficient because it does not perform a short-circuit evaluation |
OrElse operator | one of the logical operators; when used to combine two subconditions, the resulting compound condition evaluates to True when at least one of the subconditions is True and evaluates to False only when both subconditions are False; |
Parameter | an item contained within parentheses in a procedure header; stores information passed to the procedure when the procedure is invoked |
Radio buttons | controls used to limit the user to only one choice from a group of two or more related but mutually exclusive options |
Radio button’s CheckedChanged event | occurs when the value in the radio button’s Checked property changes |
Radio button’s Checked property | contains a Boolean value that indicates whether the radio button is selected (True) or not selected (False) |
Select Case statement | used to code a multiple-alternative selection structure in Visual Basic Selection structure |
Sequence structure | one of the three basic control structures; directs the computer to process a procedure’s instructions sequentially, which means in the order they appear in the procedure |
Short-circuit evaluation | refers to the way the computer evaluates two subconditions connected by either the AndAlso or OrElse operator; |
Single-alternative selection structure | a selection structure that requires a special set of actions to be performed only when the structure’s condition evaluates to True |
Statement block | in a selection structure, the set of statements terminated by an Else or End If clause |
ToLower method | temporarily converts a string to lowercase ToUpper method |
True path | contains the instructions to be processed when a selection structure’s condition evaluates to True |
Truth tables | tables that summarize how the computer evaluates the logical operators in an expression |
Unicode | the universal coding scheme that assigns a unique numeric value to each character used in the written languages of the world |
Xor operator | one of the logical operators; when used to combine two subconditions, resulting compound condition evaluates to True when only one of the subconditions is True; it evaluates to False when either both subconditions are True or both subconditions are False |