Module 2 Flashcards

1
Q

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

A

Input

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

Pseudocode is a formal way of writing a program.

A

False

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

When writing pseudocode, we assume that the order of execution of the statements is from bottom to top.

A

False

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

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

A

Processing

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

In writing Pseudocode, which of the following is best used when there are many possible outcomes to a condition?

A

case-others-endcase

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

Jay-ar wants to compute for the area of a circle. Which of the following serves as the processing item?

A

Area = pi r^2

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

Pseudocode represents the algorithm of the program in natural language and mathematical notations.

A

True

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

An algorithm helps to simplify and understand the problem while pseudocode is a method of developing an algorithm.

A

True

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

Which of the following is not true about pseudocode?

A

Pseudocode is a formal way of writing a program.

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

In decision symbol, two or three flow lines should leave one for each possible answer.

A

True

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

If the flowchart becomes complex, it is better to use intersection of flow lines.

A

False

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

Flow lines indicate the approximate sequence in which instructions are executed.

A

True

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

There could be two or more flow lines that should enter a decision symbol.

A

False

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

A flowchart shape that is used for making decisions

A

Diamond

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

It is a flowchart symbol that is used as a connector to show a jump from one point int the process flow to another within the same page.

A

Circle

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

Flowcharts play an extremely important role in displaying information and assisting reasoning.

A

True

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

Identify the correct flowcharting symbol that represents the statement “PRINT Stud, Ave”

A

Parallelogram

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

The flowchart should be clear, neat and easy to follow.

A

True

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

To iterate is to repeat a set of instructions in order to generate a sequence of outcomes. Which of the following keyword is used for iteration?

A

FOR - ENDFOR

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

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

A

True

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

Use appropriate naming conventions and be consistent in writing pseudocodes.

A

True

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

Pseudocode is called false code because, it has no syntax like any of the programming language

A

True

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

Most algorithms end with instruction to display, print, or store the ________ items.

A

output

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

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

A

Print, Output, Display, Show

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Identify the correct flowcharting symbol that represents the statement "ctr = ctr + 1"
Rectangle
26
It is a flowchart symbol that shows a process or an action step.
Rectangle
27
They help us visualize complex processes, or make explicit the structure of problems and tasks.
Flowchart
28
flowchart symbol that represents a connector to a logical flow on different page
Home plate-shaped pentagon
29
It is a step-by-step sequence of instructions that describe how the data is to be processed to produce the desired output
Algorithm
30
The following are all ways of expressing an algorithm except one. - Natural Languages - Flowcharts - Expressions - Pseudocode
Expressions
31
IF-THEN-ENDIF expression is used to express a conditional statement
False
32
Flowcharts play an extremely important role in displaying information and assisting reasoning
True
33
Jay-ar wants to compute for the area of a circle. Which of the following serves as the input item?
Area
34
In writing Pseudocode, which of the following is best used in three or more conditions?
IF-ELSE IF-ELSE IF-ELSE-ENDIF
35
Every programmer has his or her own version of a pseudocode
True
36
Which keyword is not used to calculate the result of an expression?
Set
37
We can execute pseudocode on a computer
False
38
Program Flowchart is a diagram that uses a set of standard graphic symbols to represent the sequence of coded instructions fed into a computer
True
39
In drawing a proper flow chart, all necessary requirements should be listed out in ____ order.
logical
40
During algorithm development, we need statements which evaluate expressions and execute instructions depending on whether the expression evaluated. EXCEPT
FOR-ENDFOR
41
A keyword is a word that is reserved by a program because the word has a special meaning. Keywords are used for the following except _______
Hardware operations
42
Programmers often use it as a program- planning tool to solve a problem.
Flowchart
43
Every step in an algorithm has its own logical sequence so it is easy to debug
True
44
When writing pseudocode, we assume that the order of execution of the statements is from
Top to Bottom
45
Which keyword is used to show your output to a screen or the relevant output device? A. INPUT B. ENTER C. READ D. PRINT
D. PRINT
46
Which keyword is not used to retrieve data from the user through typing or through an input device? A. ENTER B. INPUT C. READ D. DISPLAY
D. DISPLAY
47
Write the algorithm in the ________ column of the Input-Process-Output (IPO) chart
Processing
48
Avoid the intersection of flow lines if you want to make it more effective and better way of communication
True
49
Whenever flowchart becomes complex or it is spreads over more than one page it is useful to use connection to avoid any confusion
True
50
INPUT Flowchart symbol
Parallelogram
51
Keywords are written in lowercase
False
52
A statement used to close the IF block
ENDIF
53
Pseudocode is more plain and human understandable form of algorithm where natural language is also combined with the high-level programming language constructs
True
54
Problem Specification: Jay-ar wants to determine if the following inputted number is a positive number. Which of the following is an input item?
Number
55
All arithmetic processes such as adding, subtracting, multiplication and division are indicated by action or process symbol
True
56
Flow lines indicate the Approximate sequence in which instructions are executed
True
57
It is a flowchart symbol that contains the initial values of variable or variable declaration
Hexagon
58
In writing Pseudocode, which of the following is best used when there are two possible outcomes to a condition?
IF-ELSE IF-ENDIF
59
Each instruction in an algorithm should start with a verb
True
60
Flowcharting symbols that shows a step that decides the next step in a process
Diamond
61
In pseudocode, the symbol ______ is used when you want to assign value to a variable
:=
62
A finite list of instructions, most often used in solving problems or performing tasks
Algorithm
63
Identify the correct flowcharting symbol that represents the statement "INPUT firstnum, secondnum".
Parallelogram
64
In the given pseudocode below, which line is requiring for an output from the user? Line 1 ENTER TotalBill, TipPercentage Line 2 COMPUTE tip := TotalBill x TipPercentage Line 3 DISPLAY tip
Line 3
65
Which of the flowcharting symbols shows a step that decides the next step in a process?
Diamond (Decision Symbol)
66
All arithmetic processes such as adding, subtracting, multiplication, and division are indicated by
Process Symbol
67
Indicate the exact sequence in which instructions are executed
Flow lines
68
Which of the flowcharting symbols represents a process such as calculations?
Rectangle (Process Symbol)
69
Each instruction in an algorithm should start with a ____.
verb
70
Decision based operations such as yes/no question or true/false are indicated by ________ in flowchart.
decision symbol
71
In pseudocode, the symbol _______ is used when you want to assign value to a variable.
:=
72
Problem Specification. Jay-ar wants to determine if the inputted number is a negative number. Which of the following serves as the processing item? - Number - Number < 0 - It is a negative number or not.
Number < 0
73
Identify the correct flowcharting symbol that represents the statement "DISPLAY Name, Age"
Rectangle (Process Symbol)
74
Two flow lines could come out from a ________ symbol.
Decision
75
Problem Specification. Jay-ar wants to compute for the area of a rectangle. Which of the following serves as the processing item?
Area = length x width
76
Which of the flowcharting symbols shows the process’ direction?
Arrows (Flow lines)