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

A

DECREMENT

25
Q

COMMON OPERATORS:

← or :=

A

Assignment

26
Q

COMMON OPERATORS:

+, −, ×, /, mod

A

Arithmetic

27
Q

COMMON OPERATORS:

=, ≠, <, >, ≤, ≥

A

Comparison (Relational)

28
Q

COMMON OPERATORS:

and, or

A

Logical

29
Q

During _________, we need statements which evaluate expressions and execute instructions depending on whether the expression evaluated to True or False.

A

algorithm development

30
Q

During algorithm development, we need statements which evaluate expressions and execute instructions depending on whether the expression evaluated to _______ or ________

A

True or False.

31
Q

Here are some common conditions used in Pseudocode:

A
  • IF — THEN – ENDIF
  • IF – ELSE IF — ENDIF
  • IF — ELSE IF — ELSE – ENDIF
  • CASE – OTHERS – ENDCASE
32
Q

_______ is to repeat a set of instructions in order to generate a sequence of outcomes.

A

ITERATION/LOOPING

33
Q

ITERATION/LOOPING:

iteration bounds
sequence

A

FOR

34
Q

ITERATION/LOOPING:

condition
sequence

A

WHILE

35
Q

_______ is a pictorial representation of an ordered, step-by-step solution to a problem.

A

Flowchart

36
Q

__________ 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.

A

Program Flowchart

37
Q

Flowcharts can be used to express different structures: (3)

A

sequence
selection/conditional
loop.

38
Q

In drawing a proper flowchart, all necessary requirements should be listed out in _________.

A

logical order

39
Q

The usual direction of the flow of a procedure or system is from ________ or __________

A

left to right or top to bottom.

40
Q

Only ___ flow line should come out from a process symbol

A

one

41
Q

Only one flow line should enter a decision symbol, but __________, one for each possible answer, should leave the decision symbol.

A

two or three flow lines

42
Q

Ensure that the flowchart has a logical __ and __

A

start and finish.

43
Q

If the flowchart becomes complex, it is better to use _________ to reduce the number of flow lines

A

connector symbols

44
Q

Avoid the ______ of flow lines if you want to make it more effective and better way of communication.

A

intersection