Chapter 6 - 7 Flashcards
one of the most important structures in programming that is used to repeat a sequence of statements a number of times
Loops
A repetition of a loop
Pass
repeats a sequence of statements either as long as or until a certain condition is true
Do Loop
the statements inside the loop are repeatedly executed as long as the condition is true
Do While Loop
the parameters of a loop
Condition
the condition is checked at the bottom of a Do While Loop
Posttest
the condition is checked at the top of a Do While Loop
Pretest
loop that never ends
Infinite Loop
the type of loop used when the programmer knows exactly how many times a loop should be executed
For . . . Next Loop
a numeric variable declared in the For statement; it is initialized and then automatically changes after each pass through the loop
Counter Variable
where a For Next loop starts counting
Initial Value
where a For Next loop stops counting
Terminating Value
an indexed list of simple variables of the same type, to and from which Visual Basic can efficiently assign and access a list of values
Array Variable
a collection of variables
Array
the numbers inside the parentheses of the array variables
Subscripts or Indexes
each individual variable in an array
Subscripted Variable or Element
reserving space in memory to hold the values of the subscripted variables in an array
Declaration
the value of the last element in an array
Upper Bound
the number of elements in an array
Size
the data to be placed in an array are known at the time the program begins to run
Form Load Event
Count, Max, Min, First, Last
Array Methods
the size of the array
Count
the highest value (alphabetically or numerically)
Max
the lowest value (alphabetically or numerically)
Min
the first element
First
the last element
Last
after an array has been declared, its upper bound (but not its type) can be given a value (Integer literal, variable, or expression) with this procedure-level statement
ReDim
a procedure-level statement that maintains all of the original array’s contents after a ReDim
Preserve
iterate through all the elements of the array in order with no mention whatsoever of the lower or upper bounds
For Each Loops
a boolean value generally used to determine the outcome of an If statement
Flag Variable
the argument in the calling statement consists of the name of the array; the corresponding parameter in the header for the procedure must consist of an array name followed by an empty set of parentheses; entire arrays are always passed by reference
Passing an Array
provides a standardized way to retrieve information from data sources
LINQ
Language-INtegrated Query
declarative (that is, self-evident) code that describes what you want to retrieve from the array
LINQ Query
eliminate duplicates in a LINQ query
Distinct
converting the results of a LINQ query into an array
ToArray
gives a name to an expression and makes queries easier to read
Let
putting elements found by a LINQ query in aplphabetical or numeric order
OrderBy
placing information of different data types into a single array of a composite data type that is user defined
Structure
variables in a structure
Members