Test Your Knowledge!

  1. In each of the following examples, write down whether the expression evaluates to True or False.
  1. ( 8 = 4 ) & ( 8 < 10 );
  2. ( 4 <> 3 ) | ( 5 > 2 );
  3. !( 8 = 4 ) & ( 8 < 10 );
  4. ( 5 - 2 > 4 ) | ( 8 % 3 = 3 );
  5. !( 8 * 3 < 25 ) | ( 4 / 2 >= 3 );
  6. ( "dog" > "cat" ) & !( "cat" > "dog" );
  7. ( "dog" > "cat" ) & ( "cat" > "dog" ) | ( "cat" > "bird" );
  8. !( ( “apple” < "banana" ) & ( "banana" < "carrot" ) ) & ( ( 8 + 4 >= 9 ) );

 

<< Previous: Lesson Summary | Next: How Did You Do? >>