FA2 Flashcards
To produce the boolean values (i.e. true and false) the logical operators and, or , and not and relational operators <, =<, +, +, =>, > are provided
true or false
False
Programs instructions that input from input devices and display output on output devices are indicated with process symbol in a flowchart
true or false
False
An implementation of an algorithm in the form of annotation and informative text written in plain English
procedures
structures
pseudocodes
flowchart
pseudocodes
In pseudocode, the symbol _____ is used when you want to assign value to a variable
<=
>=
==
:=
:=
What are the three algorithm constructs?
Group of answer choices
Input, output, process
Loop, input/output, process
Input/output, decision, terminator
Sequence, selection, repetition
Sequence, selection, repetition
Most algorithms begin with instruction to enter the input items into the computer.
Group of answer choices
True
False
True
In writing Pseudocode, which of the following is best used in two conditions?
Group of answer choices
IF — ELSE IF — ELSE – ENDIF
WHILE – ENDWHILE
FOR - ENDFOR
B. IF – ELSE IF — ENDIF
IF – ELSE IF — ENDIF
Pseudocode can be compiled or interpreted by the computer.
Group of answer choices
True
False
False
An algorithm helps to simplify and understand the problem while pseudocode is a method of developing an algorithm.
Group of answer choices
True
False
True
Pseudocode is a formal way of writing a program.
Group of answer choices
True
False
False
In writing Pseudocode, which of the following is best used when there are many possible outcomes to a condition?
Group of answer choices
CASE – OTHERS – ENDCASE
WHILE – ENDWHILE
FOR - ENDFOR
IF – ELSE IF — ENDIF
CASE – OTHERS – ENDCASE
All are ways in expressing an algorithm except one.
Group of answer choices
Natural Languages
Pseudocode
Flowcharts
Expressions
Expressions
Decision symbol represent the direction of flow of control and relationship among different symbols of flowchart.
Group of answer choices
True
False
False
In the given pseudocode below, which line is checking if numberCounter has already reached a value of 3?
Line 1 SET numberCounter = 1, sum = 0
Line 2 WHILE numberCounter < =3
Line 3 INPUT number
Line 4 CALCULATE sum := sum + number
Line 5 INCREMENT numberCounter
Line 6 ENDWHILE
Line 7 PRINT sum
Line 2
In writing Pseudocode, which of the following is best used in three or more conditions?
Group of answer choices
FOR - ENDFOR
WHILE – ENDWHILE
IF — ELSE IF — ELSE IF — ELSE – ENDIF
IF – ELSE IF — ENDIF
IF — ELSE IF — ELSE IF — ELSE – ENDIF