Week 2: Logic Flashcards

1
Q

What are the 3 classes of constructs in programming?

A

Sequence
Selection
Iteration

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

Selection constructs:

A

Represent different paths through the set of instructions

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

Iteration constructs:

A

Represent repetition of the same set of instructions until a specified condition has been met

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

Sequential constructs:

A

One statement follows another and the statements are executed in order

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

Structured program consists of…

A

Sets of simple constructs, each of which has one entry and one exit point.

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

Preliminary design techniques include:

A

Pseudo-coding

Flow charting

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

Pseudo-code:

A

A set of shorthand notes in a human (non-programming) language that itemizes the key steps in the sequence of instructions that produce a programming solution.

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

Flow charts:

A

A set of conventional symbols connected by arrows that illustrate the flow of control through a programming solution.

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

C Programming supports 3 selection constructs:

A

Optional paths
Alternative paths
Conditional expression

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