100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Midterm Exam 2 Quizzes Questions and Answers 2025

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
23-06-2025
Written in
2024/2025

Midterm Exam 2 Quizzes

Institution
CMSC 132
Course
CMSC 132









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CMSC 132
Course
CMSC 132

Document information

Uploaded on
June 23, 2025
Number of pages
10
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Content preview

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"

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Dreamer252 NBursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
478
Member since
2 year
Number of followers
293
Documents
21304
Last sold
1 week ago

4.0

115 reviews

5
60
4
22
3
18
2
2
1
13

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions