Skip to main content\(\newcommand{\identity}{\mathrm{id}}
\newcommand{\notdivide}{{\not{\mid}}}
\newcommand{\notsubset}{\not\subset}
\newcommand{\lcm}{\operatorname{lcm}}
\newcommand{\gf}{\operatorname{GF}}
\newcommand{\inn}{\operatorname{Inn}}
\newcommand{\aut}{\operatorname{Aut}}
\newcommand{\Hom}{\operatorname{Hom}}
\newcommand{\cis}{\operatorname{cis}}
\newcommand{\chr}{\operatorname{char}}
\newcommand{\Null}{\operatorname{Null}}
\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}}
\)
Exercises 5.13 Clickable Area Exercises
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.”
2. Clickable Areas, Code.
Identify (by clicking, or by circling) all of the assignment statements in this Python function.
Remember, the operator =
is used for assignment.
def main():
x = 4
for i in range(5):
y = i
if y > 2:
print(y)
3. Clickable Areas, Text in a Table.
A two-dimensional array was created in Python with the list comprehension:
[[0 for x in range(3)] for y in range(2)]
Then the values were (mostly) changed from zeros and the final array is shown below.
Identify (by clicking, or by circling) all of the boolean values in the array.
Python boolean variables are True
and False
. A value in quotation marks is a string, not a boolean.
42 |
True |
'towel' |
'true' |
0 |
False |
This second table has no <area>
, in order to test CSS for tables.
42 |
True |
'towel' |
'true' |
0 |
False |
Hint.
Python boolean variables begin with capital latters.