Test Your Knowledge!
- In each of the following examples, write down whether the expression evaluates to True or False.
- ( 8 = 4 ) & ( 8 < 10 );
- ( 4 <> 3 ) | ( 5 > 2 );
- !( 8 = 4 ) & ( 8 < 10 );
- ( 5 - 2 > 4 ) | ( 8 % 3 = 3 );
- !( 8 * 3 < 25 ) | ( 4 / 2 >= 3 );
- ( "dog" > "cat" ) & !( "cat" > "dog" );
- ( "dog" > "cat" ) & ( "cat" > "dog" ) | ( "cat" > "bird" );
- !( ( “apple” < "banana" ) & ( "banana" < "carrot" ) ) & ( ( 8 + 4 >= 9 ) );
<< Previous: Lesson Summary | Next: How Did You Do? >>