Skip to main content
Contents
Search Book
Search Results:
No results.
Readability settings Prev Up Next Scratch ActiveCode Profile
title here
\(
\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.24 Expressions-WE8-P1
Determine resultant data type of expression
Update variable for pre operators based on side effect
Solve arithmetic equation, operator precedence
Is the Left Hand Side (LHS) of the assignment statement a variable? Check the data type of the value on right hand side (RHS) against data type of LHS variable.
Update variable for post operators based on side effect
Subsection 1.24.1
int x = 4, y = 6;
boolean result;
What is the value of
result after each of the following?
Exercises Exercises
1.
true
Correct
false
Incorrect
2.
true
Incorrect
false
Correct
3.
true
Correct
false
Incorrect
4.
Q55: result = x + 3 >= y;
true
Correct
false
Incorrect
5.
true
Incorrect
false
Correct
6.
true
Correct
false
Incorrect
7.
true
Correct
false
Incorrect
8.
true
Correct
false
Incorrect
9.
Q60: result = -17.32 != -17.32;
true
Incorrect
false
Correct
10.
Q61: result = -3.0 == 0.0;
true
Incorrect
false
Correct
11.
true
Correct
false
Incorrect
12.
true
Correct
false
Incorrect
13.
true
Correct
false
Incorrect
14.
true
Correct
false
Incorrect
15.
Q66: result = 0.012 > 0.013;
true
Incorrect
false
Correct
You have attempted
of
activities on this page.