Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
11 Cards in this Set
- Front
- Back
five tenets of structured programming
|
a. No goto statements are to be used in writing code.
b. All programs can be written in terms of three control structures: sequence, selection, and iteration. c. Each control structure has one entrance point and one exit point. We will sometimes allow for multiple exit points from a control structure using the break statement. d. Control structures may be stacked (sequenced) one after the other. e. Control structures may be nested inside other control structures. |
|
ALGORITHM
|
a solution to a problem
|
|
The three logical operators and their symbols of programming
|
AND &&
OR || (two vertical bars) NOT ! |
|
general syntax of the if-else statement
|
if (expression)
statement1; else statement2; |
|
STEPWISE REFINEMENT
|
is the process of gradually developing a more detailed description of an algorithm
|
|
CONDITIONAL OPERATOR general syntax
|
(condition) ? statement1 : statement2;
If the condition is true, statement1 is executed. If the condition is false, statement2 is executed. |
|
ITERATION
|
refers to looping
|
|
PSEUDOCODE
|
a rough-draft outline of an answer, written in English-like terms
|
|
RELATIONAL OPERATOR
|
a binary operator that compares two values
|
|
COMPOUND STATEMENT
|
created by enclosing any number of single statements by braces as shown in the following example:
if (expression) { statement1; statement2; statement3; } else { statement4; statement5; statement6; } |
|
BOOLEAN IDENTIFIER
|
no definition - deals with true / false of statements
|