PAGETURNER

If they want to quit, do so
    <<<<<< REVIEW CLEANING SUBROUTINE >>>>>>

CLEAN

If they want to quit, do so

BOX

                         REVIEW                       


GO

 Given the following macro preprocessor commands:

          a   #define BELL 7
          b   #define NEXT 17
          c   #define WARN_MESSAGE  "compilation in progress";
          d   # define TRUE  -1
          e   #define GREETING "Welcome to UNIX"
          f   a and e
          g   a and b
          h   b, d, and e
          i   b and d
          j   b, c, and d


 which command line(s) is (are) INCORRECT?

 Select one: 
 That is correct!
 You've got it on the 2nd try.
 You've got it finally!
 Sorry, try again.
 No, try one more time.
 Please review Topic 3:  Defining and Undefining Constants
    

FORGET1

   The correct choice is  j .  In  b , the macro preprocessor command
   line must start in column 1.  In  c , no ; is allowed to terminate 
   the line.  In  d , there should not be any space between # and define.
                                                                          
   Given the following macro preprocessor definitions:

  #define  TRUE(expr)    (expr > 0 || expr < 0) ? 1 : 0;
  #define  lowest(a,b,c)  (a<=b && a<=c) ? a:((b<=a && b<=c)?b:c);

  what would be the macro definitions for highest() and FALSE() be?

  a   #define FALSE(expr)  (expr == 0) ? 1 : 0;
      #define  highest(a,b,c)  (a>=b && a>=c) ? a:((b>=a && b>=c)?b:c);

  b   #define FALSE(expr)  (expr == 0) ? 1 : 0;
      #define  highest(a,b,c)  (a>=b || a>=c) ? a:((b>=a || b>=c)?b:c);

  c   #define FALSE(expr)  (expr != 0) ? 1 : 0;
      #define  highest(a,b,c)  (a<=b && a>=c) ? a:((b<=a && b>=c)?b:c);
 Select one:    
 That is correct!
 You've got it on the 2nd try.
 You've got it finally!
 Sorry, try again.
 No, try one more time.
 Please review Topic 3:  Defining and Undefining Constants
   

FORGET2

   The correct choice is  a .  In the other two choices, the logic is wrong.
   The macro preprocessor commands to include the file 
   ctype.h from the directory /usr/include/ and newtype.h
   from the directory /usr/types are:

   a   #include <ctype.h>
       #include "/usr/types/newtype.h"

   b   #include "ctype.h"
       #include </usr/types/newtype.h>

   c   #include <ctype.h>
       #include <newtype.h>

 Select one: 
 That is correct!
 You've got it on the 2nd try.
 You've got it finally!
 Sorry, try again.
 No, try one more time.
 Please review Topic 2:  Including Files in Programs
    

FORGET3

   The correct choice is  a , the files in the default include 
   directory /usr/include are enclosed in < >, the pathname to 
   all others must be specified explicitly and enclosed in " ".