Pseudocode Flashcards
What is Pseudocode?
A high level language A non programming Language Used for writing algorithms
What are 6 basic operations for a computer program?
Input
Output
Evaluate
Assign a value to a variable Selection
Repeat
What are 8 basic keywords used?
SET GET READ PRINT WRITE DISPLAY Arithmetic Variable
What are selection statements
IF condition THEN if true do something ENDIF
IF condition THEN if true do something ELSE If the condition is false do this ENDIF
What is a Repetition statement?
WHILE, DO, REPEAT and ENDWHILE
How can you check your algorithm is correct?
Use a desk check
What is Top Down Development?
Is to design a solution
A method of steps to refine a solution with subtasks into smaller tasks
What is Modular Developent
A process of sub-dividing a computer program
A module consists of data and code statements.
Teams can develope modules seperatly
How many statements are required to write a structure Theorem?
There are only three code statements which are
necessary to write any program/algorithm.
1. Sequence Statements ( Formed by a sequence of one or more statements
2. Selection Statements (IF statement)
3. Repetition Statements (WHILE statement)
What are the items in a defining diagram?
Problem statements - explains what the defining diagram will do.
- Inputs (nouns and adjectives)
- Processing (Verbs and adjectives)
- Outputs (nouns and adjectives)
What is a Case Statement?
Works from TOP to Bottom of a statement and is executed with the value of a variable matches.
What should Modular Programming do?
must perform its task
must not do anything unrelated to its task
must always start the code at its top
should only have an exit at its end
must have a meaningful name to describe its task
must have appropriate:
cohesion (see chapter 10) //next week
Things that belong together should be kept together.
–
coupling (see chapter 10) //next week
One object doesn’t directly change or modify the
state or behaviour of another object.