What are 2 synonyms for Selection?
Selection is also called conditional or decision making.
Array
an ordered list of values
loop
A structure that allows repeated execution of a block of statements
Zoom
The SizeMode property that resizes to fit the PictureBox, but maintains its original ratio is used.
What are the 3 types of Selection?
Three types of selection are one way selection, two way selection, and multiple way selection.
Swapping
Three assignment statements that use a temporary value to replace two values with each other.
Definite loop
performs a task a predetermined number of times, also called a counted loop
Image property
The property of the PictureBox control contains the picture to be displayed:
What does program flow follow?
Program flow follows the exact sequence of listed program statements, unless directed otherwise by a Java control structure.
Two dimensional Array -
An array that has two dimensions (like rows and collums).
Indefinite loop
altered by user input, controlled by the user, executed any number of times
StretchImage
SizeMode property used to fit the PictureBox:
In one-way selection, when does the program flow branch off?
The value of the condition determines if the program flow will "branch off" from the main program sequence
Selection sort
A sort that finds the minimum, replaces it with the first number, moves the second number, finds the next minimum and replaces with the second number and so on.
Loop control variable
A variable that is altered and stored with a new value (ex. loopCount = loopCount + 1, the equal sign assigns a value to the variable on the left), the variable should be altered within the body of the loop
Dim frmDrawSurface As Graphics = Me.CreateGraphics
Correctly declares the Form as a drawing surface:
Explain Multiple-Way Selection.
Multiple selection is a commonly used control structure that simulates many situations in real life. The program flow encounters a group of conditions, one after the other.
Binary search
A search that finds the middle value, determines whether the value is lower or higher than the middle value then halves the direction that the value is in until it finds the target. (Array must be in order) (returns negative 1 if not found)
While loop
The loop-controlling Boolean expression is the first statement, executes a body of statements continually as long as the Boolean expression that controls entry into the loop continues to be true, consists of, the keyword while followed by a Boolean expression within parentheses followed by the body of the loop; can be a single statement or a block of statements surrounded by curly braces
SizeMode Property
Changes how the PictureBox image is displayed at run time: