Chapter 2 Flashcards

(38 cards)

1
Q

A mistake in a program that does not prevent the program from running but causes it to produce incorrect results.

A

Logic Error

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

The process of finding and correcting errors in a program.

A

Debugging

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

The process of designing, writing, correcting, testing, and debugging software.

A

Program Development Cycle

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

The process of designing a program can be summarized in two steps:

A
  1. Understand the task that the program is to perform.
  2. Determine the steps that must be taken to perform the task.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

An informal language that has no syntax rules, and is not meant to be compiled or executed.

A

Pseudocode

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

A single function that a program must perform in order to satisfy the customer.

A

Software Requirement

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

A set of well-defined logical steps that must be taken to perform a task.

A

Algorithm

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

What are the three types of symbols in the flowchart?

A

Ovals, parallelograms, and rectangles

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

A diagram that graphically depicts the steps that take place in a program.

A

Flowchart

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

In a flowchart, the oval symbol is located?

A

At the top and bottom of the flowchart

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

The symbol that marks a program’s ending point in a flowchart.

A

End terminal

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

The oval symbols that designate the beginning and end of a flowchart.

A

Terminal symbols

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

The symbol that marks a program’s beginning point in the flowchart.

A

Start terminal

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

Between the terminal symbols are parallelograms which are used for?

A

Input symbols and out symbols

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

A rectangle symbol in a flowchart represents a process are known as?

A

Processing symbols

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

A parallelogram symbol in flowcharts represents an input operation and are known as?

10
Q

A parallelogram shaped symbol in flowcharts represents an output operation and are known as?

A

Output symbol

11
Q

A circle shaped symbol that connects the pieces of a flowchart that has been broken into segments.

A

Connector symbol

12
Q

A home plate shaped symbol that connects the pieces of a flowchart that appear on different pages.

A

Off-page connector symbol

13
Q

What value does the off-page connector symbol typically have listed?

14
Q

What do the numerical values mean if a flow-chart has an off-page connector symbol?

A

The numerical value will indicate where the next process begins, so if start is on page one then the number 2 will be listed in the home plate shape symbol on page one indicating to look at page 2. On page 2 the home plate shape symbol will have listed page 1 because it is connected to the process on page 1.

15
Q

What do the oval symbols represent in a flowchart?

A

Designate the beginning and end of a flowchart and are called terminal symbols.

16
Q

What do the parallelogram symbols represent in a flowchart?

A

Designate input or output processes such as:

Input payRate
Display “The employee’s gross pay is $”, grossPay

17
Q

What do the rectangle symbols represent in a flowchart?

A

Designate a process that in not input or output but a process such as:

Set grossPay = hours * payRate

18
What is the typical three step process a computer performs?
1. Input is received. 2. Some process is performed on the input. 3. Output is produced.
19
This chart describes a program's input, processing, and output.
IPO Chart
20
This structure is a set of statements that execute in the order that they appear in a program.
Sequence structure
21
This structure is a logical design that controls the order in which a set of statements executes.
Control structure
22
A string that is written into the code of program.
String literal
23
A storage location in memory that is represented by a name.
Variable
24
Summarize the three common rules for naming variables.
1. Variables must be one word. 2. Punctuation characters cannot be used. 3. First character of variable name cannot be a number.
25
What is a string?
A sequence of characters that is used as data.
26
What is a string literal?
A string that appears in the actual of a program.
27
What two steps usually take place when a program prompts the user for input?
1. Program pauses and awaits the user to type input then hit enter. 2. When enter is pressed, the data that was typed is stored in the variable.
28
A statement that sets a variable to a specific value.
Assignment statement
29
A piece of data that is operated on by an operator.
Operand
30
A statement that declares a variable's name and data type.
Variable Declaration
31