1. Evaluate the following boolean expressions. Assume x, y, and z have some numerical values.
a. 4 < 5="" ||="" 6="=">
b. 2 < 4="" &&="" (false="" ||="" 5=""><=>=>
c. x <= y="" &&="" !(z="" !="z)" ||="" x=""> y
=>
d. x < y="" ||="" z="">< y="" &&="" y=""><=>=>
2. Identify errors in the following boolean expressions and assignments. Assume x and y have some numerical values.
a. booleandone;
done = x = y;
b. 2 < 4="" &&="" (3="">< 5)="" +="" 1="=">
c. booleanquit;
quit = true;
quit == (34 == 20 ) && quit;
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here