click below
click below
Normal Size Small Size show me how
CIT166 Final Exam
CIT Visual Basic Final Exam Terms
Term | Definition |
---|---|
Application | a GUI along with its program instructions |
Assignment operator | the equal sign in an assignment statement |
Assignment statement | an instruction that assigns a value to something, such as to the property of an object |
Camel case | used when entering object names; the practice of entering the object’s ID characters in lowercase and then capitalizing the first letter of each subsequent word in the name |
Class | a pattern that the computer uses to create (instantiate) an object |
Class definition | a block of code that specifies (or defines) an object’s appearance and behavior |
Code | program instructions |
Code Editor window | where you enter the program instructions (code) for your application |
Coding | the process of translating a solution into a language that the computer can understand |
Comment | a line of text that serves to internally document a program; begins with an apostrophe |
Computer program | the directions given to computers; also called a program |
Controls | objects (such as a picture box or a button) added to a form |
Design time | occurs when you are building an interface |
Designer window | used to create an application’s GUI |
Dot member access operator | the period used to indicate a hierarchy |
Event procedure | a set of Visual Basic instructions that tell an object how to respond to an event |
Events | actions to which an object can respond; examples include clicking and double-clicking |
Executable file | a file that can be run outside of the IDE; the file name ends with the .exe extension |
Form | the foundation for the user interface in a Windows Forms application; also called a Windows Form object |
Form file | a file that contains the code associated with a Windows form |
Graphical user interface | what the user sees and interacts with while your program is running; also called a GUI |
GUI | graphical user interface |
IDE | integrated development environment |
Instance | an object created (instantiated) from a class |
Instantiated | the process of creating an object from a class |
Integrated development environment | an environment that contains all of the tools and features you need to create, run, and test your programs; also called an IDE |
Keyword | a word that has a special meaning in a programming language |
Me.Close() statement | tells the computer to close the current form |
Method | a predefined procedure that you can call (invoke) when needed |
Name property | assigns a name to an object; the name can be used to refer to the object in code |
Namespace | a block of memory cells inside the computer; contains the code that defines a group of related classes |
Object | anything that can be seen, touched, or used |
Object-oriented programming language | a programming language that allows theprogrammer to use objects to accomplish a program’s goal |
OOP | object-oriented programming |
Picture box | used to display an image |
Procedure footer | the last line in a procedure |
Procedure header | the first line in a procedure |
Program | the directions given to computers; also called a computer program |
Programmers | the people who write computer programs |
Programming | the process of giving a mechanism the directions to accomplish a task |
Programming languages | languages used to communicate with a computer |
Properties | the attributes that determine an object’s appearance and behavior |
Properties window | lists an object’s attributes (properties) |
Reference control | the first control selected in a group of controls; this is the control whose size and/or location you want the other selected controls to match |
Run time | occurs while an application is running |
Solution Explorer | displays a list of the projects contained in the current solution and the items contained in each project |
Source files | files that contain program instructions; in Visual Basic, the names of source files end with .vb |
Startup form | the form that appears automatically when an application is started |
Statements | Visual Basic instructions that are processed (executed) by the computer |
String literal | zero or more characters enclosed in quotation marks |
Sub procedure | a block of code that performs a specific task |
Syntax | the rules of a programming language |
Toolbox window | contains the tools used when creating an interface (each tool represents a class); referred to more simply as the toolbox |
Access key | the underlined character in an object’s identifying label or caption; allows the user to select the object using the Alt key in combination with the underlined character |
Focus | indicates that a control is ready to accept user input |
Label control | the control used to display text that the user is not allowed to edit while an application is running |
Sentence capitalization | the capitalization used for identifying labels and button captions; refers to capitalizing only the first letter in the first word and in any words that are customarily capitalized |
Tab order | the order in which each control receives the focus when the user either presses the Tab key or employs an access key while an application is running |
Text box | a control that provides an area in the form for the user to enter data |
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; when the AndAlso operator is used, the computer does not evaluate subcondition2 if subcondition1 is False; |
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 |
& | the concatenation operator in Visual Basic |
AcceptButton property | a property of a form; used to designate the default button |
Accumulator | a numeric variable used for accumulating (adding together) something |
Add method | the Items collection’s method used to add an item to a list box |
Block scope | scope of the variable declared in a For...Next statement’s For clause; indicates that the variable can be used only within the For...Next loop |
CancelButton property | a property of a form; used to designate the button that can be selected by pressing the Esc key |
Clear method | the Items collection’s method used to clear (remove) items from a list box |
Collection | a group of individual objects treated as one unit |
Concatenation operator | the ampersand (&); used to concatenate strings ControlChars.NewLine constant |
Count property | stores an integer that represents the number of items in the Items collection Counter |
Counter-controlled loop | a loop whose processing is controlled by a counter; the loop body will be processed a precise number of times |
Decrementing | decreasing a value Default button |
Default list box item | the item automatically selected in a list box when the application is started and the interface appears |
Dictionary order | numbers are sorted before letters, and a lowercase letter is sorted before its uppercase equivalent |
Do...Loop statement | a Visual Basic statement that can be used to code both pretest loops and posttest loops |
Endless loop | a loop whose instructions are processed indefinitely; also called an infinite loop Financial.Pmt method |
For...Next statement | a Visual Basic statement that is used to code a specific type of pretest loop, called a counter-controlled loop |
Incrementing | increasing a value |
Infinite loop | another name for an endless loop |
Items collection | the collection of items in a list box |
List box | a control used to display a list of items from which the user can select zero items, one item, or multiple items |
Load event | an event associated with a form; occurs when the application is started and the form is displayed the first time |
Loop | another name for the repetition structure Loop exit condition |
Looping condition | the requirement that must be met for the computer to continue processing the loop body instructions |
Multiline property | a property of a text box; indicates whether the text box can accept and display either one or multiple lines of text |
Overflow error | occurs when the value assigned to a memory location is too large for the location’s data type |
Posttest loop | a loop whose condition is evaluated after the instructions in its loop body are processed |
Pretest loop | a loop whose condition is evaluated before the instructions in its loop body are processed |
ReadOnly property | a property of a text box; specifies whether or not the user can change the contents of the text box |
Real numbers | numbers with a decimal place |
Repetition structure | the control structure used to repeatedly process one or more program instructions; also called a loop |
ScrollBars property | a property of a text box; specifies whether the text box has no scroll bars, a horizontal scroll bar, a vertical scroll bar, or both horizontal and vertical scroll bars |
SelectedIndex property | can be used to select an item in a list box and also to determine which item is selected; stores the index of the selected item |
SelectedIndexChanged event | occurs when an item is selected in a list box |
SelectedItem property | can be used to select an item in a list box and also to determine which item is selected; stores the value of the selected item |
SelectedValueChanged event | occurs when an item is selected in a list box |
SelectionMode property | determines the number of items that can be selected in a list box |
Sorted property | specifies whether the list box items should appear in the order they are entered in the list box or in sorted order |
String Collection Editor | provides an easy way to add items to a list box’s Items collection |
Child table | a table linked to a parent table |
Data form | a form for entering data |
Database query | a statement used to retrieve specific information from a database; also called a query |
DataSet object | stores the information you want to access from a database |
Exception | an error that occurs while an application is running |
Field | a single item of information about a person, place, or thing |
Foreign key | the field used to link one table to another table |
Parent table | a table linked to a child table |
Primary key | a field that uniquely identifies each record in a table |
Query | a statement used to retrieve specific information from a database; also called a database query |
Record | a group of related fields that contain all of the necessary data about a specific person, place, or thing |
Relational databases | databases that store information in tables composed of columns (fields) and rows (records); the information in these databases can be related in different ways |
Table | a group of related records |
Try…Catch statement | Used for exception handling in a procedure |