Pseudocode Flashcards

1
Q

What is Pseudocode?

A

A high level language A non programming Language Used for writing algorithms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are 6 basic operations for a computer program?

A

Input

Output

Evaluate

Assign a value to a variable Selection

Repeat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are 8 basic keywords used?

A

SET GET READ PRINT WRITE DISPLAY Arithmetic Variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are selection statements

A

IF condition THEN if true do something ENDIF

IF condition THEN if true do something ELSE If the condition is false do this ENDIF

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a Repetition statement?

A

WHILE, DO, REPEAT and ENDWHILE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can you check your algorithm is correct?

A

Use a desk check

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Top Down Development?

A

Is to design a solution

A method of steps to refine a solution with subtasks into smaller tasks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Modular Developent

A

A process of sub-dividing a computer program

A module consists of data and code statements.

Teams can develope modules seperatly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How many statements are required to write a structure Theorem?

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the items in a defining diagram?

Problem statements - explains what the defining diagram will do.

A
  • Inputs (nouns and adjectives)
  • Processing (Verbs and adjectives)
  • Outputs (nouns and adjectives)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a Case Statement?

A

Works from TOP to Bottom of a statement and is executed with the value of a variable matches.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What should Modular Programming do?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly