Invitation: Chapter 2 Flashcards

1
Q

Definition of Pseudocode

A

an informal design notation used solely to express algorithms. includes instructions to carry out the three basic sequential operations: computation, input and output

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

3 qualities of good pseudocode

A

its intent is clear, it is effectively computable, and it is unambiguous

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

definition of sequential algorithm

A

a “straight line” algorithm that executes its instructions in a straight line from top to bottom and then stops.

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

Name two types of control operations, one conditional, and one iterative

A

conditional: if/then/else
iterative: while/do

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

definition of variable

A

a named storage location that can hold a data value

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

definition of library

A

a collection of useful, pre-written algorithms

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