Skip to main content
Contents Index
Dark Mode Prev Up Next Scratch ActiveCode Profile
\(\newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z} \newcommand{\Q}{\mathbb Q} \newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 1.14 Chapter Assessment
Checkpoint 1.14.1 .
Because computers are better at solving problems.
Computers arenβt necessarily better at solving problems, though often they can be quicker than humans. Additionally, algorithms can be used to solve non-computer related problems.
So that you donβt have to solve the problem yourself.
While it is beneficial to have a set of instructions that others can follow, this isnβt the best answer. By creating the algorithm, you solve a problem for yourself and others.
So that you have a general solution to a problem.
Yes, by creating a general solution you can then express it as a program if you choose, and then use a computer to automate the execution.
Because you need a set of instructions to follow.
While it is beneficial to have a set of instructions as that is what an algorithm **is**, it is not **why** we would want to create one.
Checkpoint 1.14.2 .
Write code to print out the phrase βHello Worldβ.
Checkpoint 1.14.3 .
What will be output to the console when the following program is run?
# print("Catch you later!")
print("Good-bye!")
print("Hope you are well.")
print("Hello!")
nothing, there is an error
There is no error in this program.
Catch you later! is a comment, as indicated by the # sign, so it wonβt be printed
Good-bye! Hope you are well. Hello!
Yes, the lines are printed in the order the Python interpreter gets to them, top to bottom.
Hello! Hope you are well. Good-bye!
While it might make sense to say hello before good-bye, the Python interpreter just follows instructions in order as given
Hello! Hope you are well. Good-bye! Catch you later!
No, that is not the order in which Python sees the instructions.
You have attempted
of
activities on this page.