Lesson 1 Flashcards

1
Q

How many steps are there in the programming cycle? What are those steps?

A

There are seven steps in the programming cycle:

  1. Defining the problem (planning)
  2. Designing a solution
  3. Writing the program
  4. Compiling the program
  5. Debugging the program
  6. Testing the program
  7. Documentation of the program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is input in the context of the input-process-output cycle?

A

Input is the data flowing into the system from an external source.

Example:
A thermometer linked to the system provides raw temperature data.

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

What happens during the processing stage of the cycle?

A

Processing is when the input data is manipulated into a more useful form.

Example:
A newspaper takes raw text from a news wire and formats it into a front page layout.

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

What is output in the input-process-output cycle?

A

Output is the information flowing out of the system, usually presented in a user-friendly way.

Example:
The keystrokes entered by a typist are displayed on the monitor.

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

What is a flowchart?

A
  • A flowchart is a tool for analyzing processes and shows the arithmetic and logical procedures required to solve a computer problem.

  • A flowchart helps to visually organize and sequence the steps required for solving a problem.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What do the symbols in a flowchart represent?

A
  • Each symbol represents a specific function or operation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How are the symbols in a flowchart connected?

A
  • Symbols are connected by directional arrows that indicate the sequence of operations.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What do the terms inside the flowchart symbols represent?

A
  • The terms represent the operation or activity the symbol stands for.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is program flow and the three types of program flow?

A
  • Program flow refers to the order in which individual statements, instructions, or function calls are executed or evaluated in a program.
    • The three types are sequence, Selection (branching), and Repetition (looping).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What happens in the sequence type of program flow?

A
  • In a sequence, the process is executed in a straightforward manner from one statement to the next.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is selection (branching) in program flow?

A
  • Selection involves making a choice between two alternatives based on a test. The logical expression is evaluated as True or False.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does selection work when the expression is true or false?

A
  • If the expression is true, a statement is executed, and the program continues. If false, the statement is skipped, and the next one is executed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is repetition (looping) in program flow?

A
  • Repetition involves repeating a sequence of statements until a specified condition is met.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly