1/17
Vocabulary flashcards covering QB64 conditional statements (IF...THEN, IF...THEN...ELSE) and iterational looping structures (FOR...NEXT, DO WHILE...LOOP, DO UNTIL...LOOP).
Conditional Statements
Statements used in programming when the further execution of a program depends on a condition evaluating to True or False based on relational operators.
IF…THEN
A conditional statement in QB64 where the statements inside the IF block are executed only if the given condition is true.
IF…THEN…ELSE
A conditional statement used when output or action is required even after a condition evaluates to FALSE, splitting execution between two branches.
ELSE
A keyword that acts like a dividing line between the true branch and the false branch in a conditional block.
Iteration (Loop)
The process of repeating a set of statements more than once based on a certain condition.
Initialisation
The component of a looping statement that specifies the value from where the loop starts.
Termination
The component of a looping statement that specifies the value at which the loop ends.
Step up/down
The component of a looping statement that specifies how the loop moves forward and backward.
Body of the Loop
The statements inside a loop that are to be executed repeatedly.
FOR…NEXT
A looping structure in QB64 used to execute a set of instructions a specific number of times.
Counter Variable
The variable in a loop (also called the control or index variable) that is incremented or decremented with each repetition.
STEP Value
The amount by which the counter variable is changed each time through a FOR…NEXT loop, which can be positive, negative, or decimal, but cannot be zero.
NEXT Statement
The statement that marks the end of a FOR…NEXT loop.
DO…LOOP
A loop structure preferred over FOR…NEXT when the execution of statements depends on a condition.
DO WHILE…LOOP
A loop executed as long as the specified condition is true; control transfers to the statement after LOOP once the condition becomes false.
Infinite Loop
An endless loop that does not terminate, which can occur if the counter variable is not incremented or decremented properly.
Ctrl + Break
The key combination used in QB64 to stop the execution of an endless or infinite loop.
DO UNTIL…LOOP
A loop structure in QB64 that is executed until the condition is false and exits if the condition is true.