Midterm Exam 2 Quizzes
A flowchart is particularly valuable in that it enables us to... (Choose the best answer.) -
answer Enlarge the solution space.
**Break a process into its component parts.
Solve arithmetic problems.
Quickly solve a simple problem.
A proper flowchart progresses in what direction(s)? - answer To the right and either up
OR down (not both).
Upward
To the right only.
**Down and to the right.
Upward and to the right.
What is the maximum number of lines that can flow OUT of a process symbol? -
answer**1
0
There is no maximum.
2
My process needs to do one thing if I see a rabbit, but do something else entirely if
there are no rabbits to be seen. What symbol handles this situation? -
answerTerminator
**Decision
Connector
Input/Output
Action
And then, if I DO see a rabbit, then I follow 10 very specific steps. If I don't see a rabbit,
then I follow an entirely different set of 23 steps. This is an example of a(n)... -
answerImproper Flow
Paradox
Loop
**Fork
Output
While creating a flowchart, you reach a step that seems like an action, but also requires
input. This step should probably be shown as... (Choose the best answer.) -
answerAction
Connector
Decision
**Input
, At a certain point in the flowchart, different next steps need to be taken depending on
whether the sky is sunny vs. cloudy vs. rainy vs. full of burning sulfuric clouds (i.e.,
based on which of the four sky conditions are currently in effect, the process follows one
of four wholly unique sets of steps). Which of the following would facilitate the flowchart
moving off into the correct set of steps based on the sky condition? - answerUsing one
decision symbol with four different out-flows.
Using four different decision symbols.
**Using three different decision symbols.
Using one decision symbol with three different connectors.
Sometimes it's useful to "store information" within a flowchart (e.g., something that the
user has inputted). We often do this by using which of the following? - answerA Disk
Symbol
**A Variable
A Database Symbol
An Asterisk
A Connector
An IDE allows you to... (Choose the best answer.) - answerCreate visual diagrams of
your program before you start coding.
**See your code as well as your code's output when you run it.
"De-compile" any application into corresponding Python code.
Develop programs using a simple drag-and-drop system.
What would be the output of the following?
print ("cat") - answer**cat
No output
"cat"
print
Which of the answers below correctly describes (a) a float, (b) an integer, and (c) a
string? - answer(a) any type of content, (b) numerical values, (c) text content
**(a) any real number, (b) any whole number, (c) any text value
(a) any fractional number, (b) any whole number zero or larger, (c) any short text
(a) any textual content, (b) any whole number, (c) any numerical value
I have three variables: dog, cat, and chicken. I want to output the values of each of
them. Which of the following (if entered on a single line as shown) would you expect to
do so? - answerprint(dog + cat + chicken)
print ("dog cat chicken")
print(dog cat chicken)
**print(dog, cat, chicken)
What would be the output of the following?
m, n = "dog", "cat"
A flowchart is particularly valuable in that it enables us to... (Choose the best answer.) -
answer Enlarge the solution space.
**Break a process into its component parts.
Solve arithmetic problems.
Quickly solve a simple problem.
A proper flowchart progresses in what direction(s)? - answer To the right and either up
OR down (not both).
Upward
To the right only.
**Down and to the right.
Upward and to the right.
What is the maximum number of lines that can flow OUT of a process symbol? -
answer**1
0
There is no maximum.
2
My process needs to do one thing if I see a rabbit, but do something else entirely if
there are no rabbits to be seen. What symbol handles this situation? -
answerTerminator
**Decision
Connector
Input/Output
Action
And then, if I DO see a rabbit, then I follow 10 very specific steps. If I don't see a rabbit,
then I follow an entirely different set of 23 steps. This is an example of a(n)... -
answerImproper Flow
Paradox
Loop
**Fork
Output
While creating a flowchart, you reach a step that seems like an action, but also requires
input. This step should probably be shown as... (Choose the best answer.) -
answerAction
Connector
Decision
**Input
, At a certain point in the flowchart, different next steps need to be taken depending on
whether the sky is sunny vs. cloudy vs. rainy vs. full of burning sulfuric clouds (i.e.,
based on which of the four sky conditions are currently in effect, the process follows one
of four wholly unique sets of steps). Which of the following would facilitate the flowchart
moving off into the correct set of steps based on the sky condition? - answerUsing one
decision symbol with four different out-flows.
Using four different decision symbols.
**Using three different decision symbols.
Using one decision symbol with three different connectors.
Sometimes it's useful to "store information" within a flowchart (e.g., something that the
user has inputted). We often do this by using which of the following? - answerA Disk
Symbol
**A Variable
A Database Symbol
An Asterisk
A Connector
An IDE allows you to... (Choose the best answer.) - answerCreate visual diagrams of
your program before you start coding.
**See your code as well as your code's output when you run it.
"De-compile" any application into corresponding Python code.
Develop programs using a simple drag-and-drop system.
What would be the output of the following?
print ("cat") - answer**cat
No output
"cat"
Which of the answers below correctly describes (a) a float, (b) an integer, and (c) a
string? - answer(a) any type of content, (b) numerical values, (c) text content
**(a) any real number, (b) any whole number, (c) any text value
(a) any fractional number, (b) any whole number zero or larger, (c) any short text
(a) any textual content, (b) any whole number, (c) any numerical value
I have three variables: dog, cat, and chicken. I want to output the values of each of
them. Which of the following (if entered on a single line as shown) would you expect to
do so? - answerprint(dog + cat + chicken)
print ("dog cat chicken")
print(dog cat chicken)
**print(dog, cat, chicken)
What would be the output of the following?
m, n = "dog", "cat"