Module 2 "Program Logic Design and Formulation" Flashcards

1
Q

______ is a procedure or formula for solving a problem, based on conducting a sequence of specified actions.

A

Algorithm

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

Algorithm can be expressed using __________ or ________.

A

pseudocode or flowchart

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

Plan the ______ that will transform the problem’s input into its output.

A

algorithm

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

Write the algorithm in the Processing column of the _____________.

A

Input- Process-Output (IPO) chart.

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

Each instruction in the _________ will describe an action that the computer needs to take.

A

algorithm

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

Thus, each instruction should start with a ______.

A

verb

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

Most algorithms begin with instruction to enter the _______ into the computer.

A

input items

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

record instructions to process the _______ to achieve the problem’s output.

A

input items

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

The processing typically involves performing one or more calculations using the _______.

A

input items

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

Most algorithms end with instruction to __________

A

display, print, or store the output items.

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

___________ refer to the computer screen, printer, and a file on a disk, respectively.

A

Display, print, and store

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

_________ is called false code because, it has no syntax like any of the programming language and thus can’t be compiled or interpreted by the computer.

A

Pseudocode

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

Pseudocode is simply an implementation of an algorithm in the form of ______________________.

A

annotations and informative text written in plain English.

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

Pseudocode is not __________.

A

standardized

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

In Pseudocode, _________ are used to indicate common input- output and processing operations. They are written fully in uppercase.

A

keywords

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

Pseudocode also used mathematical, relational and logical operators to express ________ and ________

A

arithmetic and logical operations.

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

When writing pseudocode, we assume that the order of execution of the statements is from ________

A

top to bottom.

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

This is the start of your pseudocode.

A

START (Upper case)

19
Q

This is data retrieved from the user through typing or through an input device.

A

INPUT, ENTER, READ / GET
(Upper case)

20
Q

This will show your output to a screen or the relevant output device.

A

PRINT, OUTPUT, DISPLAY, SHOW (Upper case)

21
Q

This is used to calculate the result of an expression.

A

COMPUTE, CALCULATE, DETERMINE (Upper case)

22
Q

To initialize values

A

SET, INIT:

23
Q

To increase the value of a variable

A

INCREMENT, BUMP

24
Q

to reduce the value of a variable

25
COMMON OPERATORS: ← or :=
Assignment
26
COMMON OPERATORS: +, −, ×, /, mod
Arithmetic
27
COMMON OPERATORS: =, ≠, <, >, ≤, ≥
Comparison (Relational)
28
COMMON OPERATORS: and, or
Logical
29
During _________, we need statements which evaluate expressions and execute instructions depending on whether the expression evaluated to True or False.
algorithm development
30
During algorithm development, we need statements which evaluate expressions and execute instructions depending on whether the expression evaluated to _______ or ________
True or False.
31
Here are some common conditions used in Pseudocode:
* IF — THEN – ENDIF * IF – ELSE IF — ENDIF * IF — ELSE IF — ELSE – ENDIF * CASE – OTHERS – ENDCASE
32
_______ is to repeat a set of instructions in order to generate a sequence of outcomes.
ITERATION/LOOPING
33
ITERATION/LOOPING: iteration bounds sequence
FOR
34
ITERATION/LOOPING: condition sequence
WHILE
35
_______ is a pictorial representation of an ordered, step-by-step solution to a problem.
Flowchart
36
__________ is a diagram that uses a set of standard graphic symbols to represent the sequence of coded instructions fed into a computer, enabling it to perform specified logical and arithmetical operations.
Program Flowchart
37
Flowcharts can be used to express different structures: (3)
sequence selection/conditional loop.
38
In drawing a proper flowchart, all necessary requirements should be listed out in _________.
logical order
39
The usual direction of the flow of a procedure or system is from ________ or __________
left to right or top to bottom.
40
Only ___ flow line should come out from a process symbol
one
41
Only one flow line should enter a decision symbol, but __________, one for each possible answer, should leave the decision symbol.
two or three flow lines
42
Ensure that the flowchart has a logical __ and __
start and finish.
43
If the flowchart becomes complex, it is better to use _________ to reduce the number of flow lines
connector symbols
44
Avoid the ______ of flow lines if you want to make it more effective and better way of communication.
intersection