Skip to main content
Contents Index
Calc
Embed
Dark Mode Prev Up Next
\(\require{cancel}\require{extpfeil}\newcommand{\definiteintegral}[4]{\int_{#1}^{#2}\,#3\,d#4}
\newcommand{\myequation}[2]{#1\amp =#2}
\newcommand{\indefiniteintegral}[2]{\int#1\,d#2}
\newcommand{\testingescapedpercent}{ \% }
\newcommand{\bvec}{{\mathbf b}}
\newcommand{\vvec}{{\mathbf v}}
\newcommand{\class}[2][\sim]{\lbrack #2\rbrack_{#1}}
\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\,}$}}}
\newcommand{\sfrac}[2]{{#1}/{#2}}
\)
Section 16 Interactive Exercises
Interactive components,
just for testing, no commentary.
Exercises 16.1 True/False
1. True/False.
Every vector space has finite dimension.
True.
The vector space of all polynomials with finite degree has a basis, \(B = \{1,x,x^2,x^3,\dots\}\text{,}\) which is infinte.
False.
The vector space of all polynomials with finite degree has a basis, \(B = \{1,x,x^2,x^3,\dots\}\text{,}\) which is infinte.
Hint .
\(P_n\text{,}\) the vector space of polynomials with degree at most
\(n\text{,}\) has dimension
\(n+1\) by
2.1 . [Cross-reference is just a demo, content is not relevant.] What happens if we relax the defintion and remove the parameter
\(n\text{?}\)
Exercises 16.2 Multiple-Choice
1. Multiple-Choice, Not Randomized, One Answer.
What color is a stop sign?
Hint 1 .
What did you see last time you went driving?
Hint 2 .
Maybe go out for a drive?
Exercises 16.3 Parsons Problem, Math Proof
1. Parsons Problem, Mathematical Proof.
Create a proof of the theorem: If
\(n\) is an even number, then
\(n\equiv 0\mod 2\text{.}\)
---
Then there exists an
\(m\) so that
\(n = 2m\text{.}\)
---
Then
\(n\) is a prime number.
#paired
---
Then there exists an
\(m\) so that
\(n = 2m + 1\text{.}\)
#paired
---
Click the heels of your ruby slippers together three times.
#distractor
---
So we have the displayed equation:
\begin{equation*}
n = 2m + 0\text{.}
\end{equation*}
This is a superfluous second paragraph in this block.
---
Thus
\(n\equiv 0\mod 2\text{.}\)
Hint .
Dorothy will not be much help with this proof.
Exercises 16.4 Parsons Problem, Code
Programming Parsons problem, requiring indentation.
1. Parsons Problem, Programming.
The Sieve of Eratosthenes computes prime numbers by starting with a finite list of the integers bigger than 1. The first member of the list is a prime and is saved/recorded. Then all multiples of that prime (which not a prime, excepting the prime itself!) are removed from the list. Now the first number remaining in the list is the next prime number. And the process repeats.
The code blocks below can be rearranged to form one of the many possible programs to implement this algorithm to compute a list of all the primes less than
\(250\text{.}\) [Ed. this version of this problem requires the reader to provide the necessary indentation.]
n = 250
---
primes = []
candidates = list(range(2,n))
---
candidates = []
primes = list(range(2,n)) #paired
---
primes = candidates + [p] #distractor
---
while candidates:
---
p = candidates[0]
primes.append(p)
---
for nonprime in range(p, n, p):
---
if nonprime in candidates:
candidates.remove(nonprime)
---
print(primes)
Exercises 16.5 Matching
1. Matching Problem, Dates.
Match each event in United States history with the year it happened.
Monroe Doctrine
1823
Haymarket Riot
1886
Louisiana Purchase
1803
Battle of Gettysburg
1863
Exercises 16.6 Clickable Area
1. Clickable Areas, βRegularβ Text.
Identify (by clicking, or by circling) all of the nouns in this quotation by Eleanor Roosevelt.
The incorrect words are pronouns.
βThe
future belongs to
those who believe in the
beauty of
their dreams .β
Exercises 16.7 Old-Style Fillin-In
Do not use this as a model for new exercises. Just for backwards-compatibility.
1. Fill-In, String and Number Answers.
Complete the following line of a Python program so that it will declare an integer variable
age with an initial value of
5.
Reading Questions 16.8 A Reading Question
1. Short Answer.
This should be built with a text-box,
only on a capable server (Runestone). So it can be answered
Subsection 16.9 Faux Subsection
We used
<exercises> divisions above, and need a
<subsection> to feed the schema.