QB64 Conditional and Iterational Statements

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering QB64 conditional statements (IF...THEN, IF...THEN...ELSE) and iterational looping structures (FOR...NEXT, DO WHILE...LOOP, DO UNTIL...LOOP).

18 Terms

1
New cards

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.

2
New cards

IF…THEN

A conditional statement in QB64 where the statements inside the IF block are executed only if the given condition is true.

3
New cards

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.

4
New cards

ELSE

A keyword that acts like a dividing line between the true branch and the false branch in a conditional block.

5
New cards

Iteration (Loop)

The process of repeating a set of statements more than once based on a certain condition.

6
New cards

Initialisation

The component of a looping statement that specifies the value from where the loop starts.

7
New cards

Termination

The component of a looping statement that specifies the value at which the loop ends.

8
New cards

Step up/down

The component of a looping statement that specifies how the loop moves forward and backward.

9
New cards

Body of the Loop

The statements inside a loop that are to be executed repeatedly.

10
New cards

FOR…NEXT

A looping structure in QB64 used to execute a set of instructions a specific number of times.

11
New cards

Counter Variable

The variable in a loop (also called the control or index variable) that is incremented or decremented with each repetition.

12
New cards

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.

13
New cards

NEXT Statement

The statement that marks the end of a FOR…NEXT loop.

14
New cards

DO…LOOP

A loop structure preferred over FOR…NEXT when the execution of statements depends on a condition.

15
New cards

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.

16
New cards

Infinite Loop

An endless loop that does not terminate, which can occur if the counter variable is not incremented or decremented properly.

17
New cards

Ctrl + Break

The key combination used in QB64 to stop the execution of an endless or infinite loop.

18
New cards

DO UNTIL…LOOP

A loop structure in QB64 that is executed until the condition is false and exits if the condition is true.