CH_2_Input_Processing_Output Flashcards

1
Q

Program Development Cycle

A
  • Design
  • Write
  • Correct Syntax Erros
  • Test
  • Correct Logic Errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Logic Error

A

A mistake that does not prevent the program from running, but causes it to produce incorrect results. Mathematical mistakes are common logic errors.

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

Debug

A

Find and correct errors.

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

Two Steps of Software Design

A
  • Understand the task that the program is to perform.
  • 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

Software Requirement

A

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

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

Algorithm

A

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

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

3 Types of flowchart symbols

A
  • Ovals: Also called terminal symbols, marks the programs start and end points.
  • Parallelograms: Used as input and output symbols. Represent the steps that the program uses to read inputs or display outputs.
  • Rectangles: Used as processing symbols. Represent the steps in which the program performs some process on data, such as a mathematical calculation.

Note: The symbols are connected on the flowchart by ARROWSA that represent the “flow” of the program.

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

Function

A

Prewritten code that performs an operation.

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

String

A

A sequence of characters.

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

String Literal

A

A string that appears in the actual code of a program.

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

Multiline Strings (Python)

A

Strings enclosed in Triple Quotes

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

Comments

A

Notes of explanation that document lines or sections of a program. Comments are part of the program, but are ignored by the Python interpreter.

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

Variable

A

A name that represents (references) a storage location in the computer’s memory

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

Assignment Statement

A

A statement that assigns a value to a variable.

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

Real Number

A

Number with a fractional part

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

Exception Error

A

An error that occurs while the program is running.

17
Q

Math Operator

A

A symbol that performs arithmetic on its operands.

18
Q

Operand

A

A value of piece of data that an operator uses to perform an operation.

19
Q

Named Constant

A

A name that represents a special value.