An advantage of Pseudo code is that it requires no special
tools and can easily be written on a word processor.
tools and can easily be written on a word processor.
Select one:
True
False
a. Input/output
b. Decision
c. Start/End of
process
d. Sub-routine
process
process
d. Sub-routine
process
Pseudo code is a newer tool and has features that make it
more reflective of the structured concepts.
more reflective of the structured concepts.
Select one:
True
False
What does the following symbol mean when used in a
flowchart?
flowchart?
Select one:
a. Sub-routine
process
process
b. Decision
c. Input/Output
d. Process
d. Process
A flowchart with more than 15 symbols is considered poor
form.
form.
Select one:
True
False
An advantage of Pseudo code is that it is a visual
technique.
technique.
Select one:
True
False
Every flowchart must have a START and STOP symbol.
Select one:
True
False
False
The use of arrows in flowcharts is optional because the flow
direction is obvious.
direction is obvious.
Select one:
True
False
False
Which of the following is NOT one of the rules for pseudo
code:
code:
Select one:
a. Indent to show
hierarchy
hierarchy
b. Keep statements
language independent
language independent
c. Write only one
statement per line
d. Capitalize every
word
statement per line
d. Capitalize every
word
Select one:
a. Start/End of
process
process
b. Input/output
c. Sub-routine
process
d. Decision
process
d. Decision
What
will the output of the following program be?
will the output of the following program be?
i=0
while
(i < max(1, 22-4*5, 3*5-3*4, 2**2)):
(i < max(1, 22-4*5, 3*5-3*4, 2**2)):
i+= 1
print
(i)
(i)
Select
one:
one:
a. 0
b. 5
c. 3
d. 4
d. 4
A
loop where the terminating condition is never achieved is called an _______
loop where the terminating condition is never achieved is called an _______
Select
one:
one:
a. infinite loop
b. universal loop
c. while loop
d. for .. ever loop
d. for .. ever loop
What
is the output of the following statements?
is the output of the following statements?
pi
= int(3.14159)
= int(3.14159)
print
(pi)
(pi)
Select
one:
one:
a. 3
b. 3.0
c. 3.14159
d. 0
d. 0
What
output will the following code produce?
output will the following code produce?
n =
10
10
while
n != 1:
n != 1:
print (n,)
if n % 2 == 0: # n is even
n = n / 2
else: # n is odd
n = n * 3 + 1
Select
one:
one:
a. 10 5 16 8 4 2
b. None an error will be displayed
c. 8 4 2
d. 9 28 14 7 22 11 34 17 52 26 13 40 20 10 5
16 8 4 2
d. 9 28 14 7 22 11 34 17 52 26 13 40 20 10 5
16 8 4 2
No comments:
Post a Comment