Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/11

Click to flip

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