Unit 1 - Section 2 Flashcards

1
Q

Pseudocode

A

A set of English language constructs designed to resemble statements in a programming language but that do not actually run on a computer.

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

Sequential Operations in Pseudocode

A

Pseudocode must include 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
3
Q

Computation

A

Set the value of a “ variable” to “ arithmetic expression”

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

Variable

A

A named stored location that can hold a data value.

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

Input and Output

A

Enables the computing agent to communicate with the outside world,
Input => Get values for variable
Output => Print the values of variable

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

Sequential Algorithm ( Or straight-line algorithm)

A

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
7
Q

Control Operations

A

Allow us to alter the normal sequential flow of control in an algorithm

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

Looping operations reminds

A

Operations within the loop body should be indented so that it is clear to the reader of the algorithm which operations belong inside the loop

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

Infinite loop

A

When a continuation condition never becomes false

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

Pretest loop

A

the continuation condition is tested at the beginning of each pass through the loop, and therefore it is possible for the loop to never be executed.

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

Posttest loop

A

The test is done at the end of the loop body. The loop is typically expressed using the do/while statement.

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

Algorithm discovery

A

Finding a solution to a given problem

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

Sequential Search

A

is the standard algorithm for searching an unordered list of values

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

Selecting an algorithm to solve a problem

A

greatly influence by the way the input data for that problem are organized

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

Library

A

A collection of useful, prewritten algorithms. An important tool in the design and development of algorithms.

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

Pattern Matching

A

The process of searching for a special pattern of symbols within a larger collection of information

17
Q

Top-down design

A

Big complex items first, then smaller parts - Viewing an operation at a higher level of abstraction and fleshing out the details of its implementation at a later time - problem solving strategy