Test Your Knowledge!
- In each of the following examples, write down the value of the expression.
- Sqr( ( 8 * 3 ) % 5 );
- Sqr( Sqrt ( 45.31 ) );
- Max( 6 * Sqrt( 25 ), Mod( 60, 31 ) );
- Min( 7 – Sqr( 3 ), Sign( -50 ) );
- Abs( 7 – 22 );
- Sign( 43 ) * Abs( 43 );
- Ceil( ( 16 / 5 ) * 4 );
- Ceil( 7 / 2) + Floor ( 7 / 2 );
- Write down the maximum and minimum potential values for each of the following expressions.
- Rnd() * 5;
- Ceil( Rnd() * 6 );
- Floor( Rnd() * 12 );
- Rnd() * Sign( 32 – 64 );
- Rnd() * Max( 40 % 9, Mod( 17, 12 ) );
- Rnd() * Min( Rnd() * 15, Rnd() * 12 );
<< Previous: Lesson Summary | Next: How Did You Do? >>