Introduction To Programming Flashcards
(13 cards)
What is an end-structure statement?
A statement that marks the end of a block of code, such as the end of a loop or an if statement.
What is a block in programming?
A group of statements that are executed together, typically enclosed in curly braces or defined by indentation.
What is a dual-alternative if?
An if statement that provides two paths: one for when the condition is true and another for when it is false (also known as if-else).
What is a loop structure?
A way to repeat a block of code multiple times based on a condition, such as for loops or while loops.
What is a loop body?
The set of statements inside a loop that are executed each time the loop runs.
What are nesting structures?
Placing one control structure, such as a loop or an if statement, inside another.
What is a null case?
A situation in which no action is taken, often used as the default case in a switch statement or when no conditions in an if statement are met.
What is a selection structure?
A control structure that chooses different paths of execution based on conditions, such as if statements or switch cases.
What is a sequence structure?
The simplest control structure where actions are performed one after another in order.
What is a single-alternative if?
An if statement that provides only one path of execution if the condition is true; no action is taken if the condition is false.
What are stacking structures?
Placing one control structure after another in sequence.
What is a structure in programming?
An organized way to control the flow of a program, such as sequences, selections, and loops.
What is a while loop?
A loop that repeats a block of code as long as a specified condition is true.