FA2 Flashcards

1
Q

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

A

False

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

Programs instructions that input from input devices and display output on output devices are indicated with process symbol in a flowchart

true or false

A

False

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

An implementation of an algorithm in the form of annotation and informative text written in plain English

procedures

structures

pseudocodes

flowchart

A

pseudocodes

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

In pseudocode, the symbol _____ is used when you want to assign value to a variable

<=
>=
==
:=

A

:=

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

What are the three algorithm constructs?
Group of answer choices

Input, output, process

Loop, input/output, process

Input/output, decision, terminator

Sequence, selection, repetition

A

Sequence, selection, repetition

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

Most algorithms begin with instruction to enter the input items into the computer.
Group of answer choices

True

False

A

True

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

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

A

IF – ELSE IF — ENDIF

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

Pseudocode can be compiled or interpreted by the computer.
Group of answer choices

True

False

A

False

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

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

True

False

A

True

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

Pseudocode is a formal way of writing a program.
Group of answer choices

True

False

A

False

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

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

A

CASE – OTHERS – ENDCASE

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

All are ways in expressing an algorithm except one.
Group of answer choices

Natural Languages

Pseudocode

Flowcharts

Expressions

A

Expressions

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

Decision symbol represent the direction of flow of control and relationship among different symbols of flowchart.
Group of answer choices

True

False

A

False

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

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

A

Line 2

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

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

A

IF — ELSE IF — ELSE IF — ELSE – ENDIF

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
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?
Group of answer choices

FOR - ENDFOR

IF – ELSE IF — ENDIF

IF — ELSE IF — ELSE – ENDIF

CASE – OTHERS – ENDCASE

A

FOR - ENDFOR

17
Q

Most algorithms end with instruction to display, print, or store the _______ items.
Group of answer choices

Sale

Output

Processing

Input

A

Output

18
Q

Program instructions that take input from input devices and display output on output devices are indicated with process symbol in a flowchart.
Group of answer choices

True

False

A

False

19
Q

Every step in an algorithm has its own logical sequence so it is easy to debug.
Group of answer choices

True

False

A

True

20
Q

IF — THEN – ENDIF expression is used to express a conditional statement.
Group of answer choices

True

False

A

True

21
Q

Pseudocode is a more plain and human understandable form of algorithm where natural language is also combined with the high-level programming language constructs.
Group of answer choices

True

False

A

True

22
Q

Pseudocode is not easy to understand and interpret as compared to an algorithm.
Group of answer choices

True

False

A

False