Exam code: H446
1/16
0Still learning
Know0
Define structured programming.
Structured programming is a method of writing programs using only sequence, selection and iteration constructs to improve the readability, understanding and maintainability of code.

Join for free to unlock a full flashcard set, track what you know,
and turn revision into real progress.
What are the three main control structures used in structured programming?
The three main control structures used in structured programming are sequence, selection and iteration.
A is a diagram used to visually show the flow of control in a program and highlight decision points.
A flowchart is a diagram used to visually show the flow of control in a program and highlight decision points.
Was this flashcard deck helpful?
Define structured programming.
Structured programming is a method of writing programs using only sequence, selection and iteration constructs to improve the readability, understanding and maintainability of code.
What are the three main control structures used in structured programming?
The three main control structures used in structured programming are sequence, selection and iteration.
A is a diagram used to visually show the flow of control in a program and highlight decision points.
A flowchart is a diagram used to visually show the flow of control in a program and highlight decision points.
True or False?
Python only uses sequence, selection, and iteration to control flow in a program.
True.
Python is a block-structured language that uses only sequence, selection and iteration to control program flow.
When designing algorithms, it is best to plan using , or before coding.
When designing algorithms, it is best to plan using flowcharts, pseudocode or structured English before coding.
Define selection in programming.
Selection is a control structure that allows a program to branch or make decisions based on Boolean conditions, such as in if/then/else or switch/case statements.
What is the main risk when creating complex Boolean conditions in code?
The main risk is that errors may occur when evaluating the Boolean condition, especially with long or complex conditions involving multiple clauses.
In structured programming, each block of code should have a single and .
In structured programming, each block of code should have a single entry and exit.
Define Boolean condition.
A Boolean condition is an expression that evaluates to either True or False and is used to control the flow of a program, especially in decision making.
The operator returns True if both conditions are True, while the operator returns True if either or both conditions are True.
The AND operator returns True if both conditions are True, while the OR operator returns True if either or both conditions are True.
What is the purpose of using break in a loop?
The break statement is used to immediately exit a loop before it has iterated over all items, usually when a certain condition is met.
A is used to repeat a set of instructions as long as a condition remains True.
A while loop is used to repeat a set of instructions as long as a Boolean condition remains True.
True or False?
A condition using only the '==' operator can evaluate to more than two possible values.
False.
A condition using the '==' operator always evaluates to either True or False.
Define selection in programming.
In programming, selection means using Boolean conditions to decide which set of instructions to run, such as using if statements.
Which logical operator returns True only if one of its conditions is True but not both?
The XOR (exclusive or) operator returns True only if one of its conditions is True but not both.
In the pseudocode, is set to False if a digit is found in the string, causing the element to be from the list.
In the pseudocode, valid_element is set to False if a digit is found in the string, causing the element to be removed from the list.
By signing up you agree to our Terms and Privacy Policy