This website is preserved for historical and scholarly reference and is no longer actively maintained.
QUIZ 12
September 17, 1997
#1. Explain the difference between execution of the following code segments.
s = 0;
if ( x > 0 ) s++;
if ( y > 0 ) s++;
and
s = 0;
if ( x > 0 ) s++;
else if ( y > 0 ) s++;
#2. Construct truth tables for A && B, A || B, and ! A.