Chapter 2 Flashcards

1
Q

What is Natural Language?

A

Expressive and easy to use.

Is verbose, unstructured, and ambiguous.

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

What are Programming Languages?

A

Structured and designed for computers.

Grammatically fussy and cryptic.

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

What is Pseudocode?

A

Used to design algorithms prior to coding them.

In between Natural and Programming Language.

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

What are the differences between flowcharts and pseudocode

A

Pseudocode can be done on any word processor, while flowcharts require special programs.

Pseudocode is not visual or standard, while flowcharts are visual and standardized.

Pseudocode implements design elements well, while flowcharts are more difficult to modify.

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

What does an rounded square mean in a flowchart?

A

It means to start or to stop.

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

What does a parallelogram mean in a flowchart?

A

It means to input or output something.

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

What does a normal rectangle mean in a flowchart?

A

They usually indicate a process occurring like addition, subtraction, multiplication, or division.

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

What does a diamond mean in a flow chart?

A

Diamond indicates a conditional/while statement.

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

How many tasks does a sequential operation handle?

A

It handles one task at a time.

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

What are the three basic sequential operations?

A

Input: Retrieves data

Output: Sends data

Computation: A single numeric calculation

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

What is a sequential algorithm comprised of?

A

Sequential operations.

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

What is a variable?

A

A named storage location.

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

What is a control operation?

A

It changes the normal flow of control.

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

What statement asks a question and selects among alternative options?

A

A conditional statement.

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

What is an iteration?

A

An operation that causes looping of instructions.

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

What statement causes repetition when a condition remains true, but can also prevent a loop from being performed?

A

A while loop.

17
Q

What is a continuation condition?

A

A test to see of looping should continue.

18
Q

What do you call the instructions that get repeated?

A

The loop body.

19
Q

What is a Do/While statement?

A

A process where the continuation condition appears at the end and the loop body happens at least once.

20
Q

What are the three primitive operations?

A

Sequential, conditional, and iterative.

21
Q

What is algorithm discovery?

A

When you work towards a correct, efficient solution.

22
Q

A collection of pre-written, useful algorithms is called a what?

A

Library.

23
Q

What are the two parts to an algorithm?

A

1 - Sliding the pattern along the text

2 - Determine if there’s a match at that location

24
Q

What is the abstraction method?

A

Focusing on high level, not details

25
Q

Which method starts with the big picture and gradually elaborate parts?

A

Top-down design.

26
Q

What is the IPO Table?

A

Also known as Input Processing Output table, it’s a table that helps identify all inputs, outputs, and processes.

27
Q

What figure(s) of speech are Inputs and Outputs?

A

Nouns and Adjectives.

28
Q

What category in the IPO table encapsulates verbs and adverbs?

A

The processing section.

29
Q

What does the truth table for the & statement look like?

A

Anything that isn’t both true is false.

30
Q

What does the truth table for or look like?

A

Anything that isn’t both false is true.

31
Q

What does a data type do?

A

It tells compiler how much space it can dedicate.