Skip to main content Contents
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 2.21 Evaluate Expressions-WE10-P1
Subgoals for evaluating an assignment statement.
Decide order of operations
Determine operator behavior based on operands
Operator and operands must be compatible
Solve arithmetic, expression, or operation
Subsection 2.21.1
For all given problems below, evaluate what value is assigned to the variable . Each problem is independent of the others (e.g. Question 2 does not depend on Question 1, only the “Given” code).
Subsection 2.21.2 Expressions-WE10-P1
Given
alpha = 10
beta = 0
gamma = -2.5
delta = 'string'
Exercises Exercises
1.
2.
3.
4.
5.
You have attempted
of
activities on this page.