<<<<<< SOME CLEANING SUBROUTINE >>>>>>

ENCORE1

    <<<<<< REVIEW CLEANING SUBROUTINE >>>>>>

BOX

                        REVIEW                        


GO

 The result of which operation is INCORRECT?

            int a = 5, b = -7, c;

 a  c = 5 % -7; --> c = 5;
 b  c = (!a);   --> c = -5;
 c  c = (a != b); --> c = TRUE = 1;
 d  c = a >> 3; --> c = 0;
 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 9:  Operators and Operations
   

FORGETE

 The correct answer is  b ,
 c = !5 is not the same as -5!
 Which of the following is NOT a long integer constant

 a  -234L
 b  1l
 c  23456789.67L
 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 4:  Data Types
   

FORGETT

 The correct answer is  c , the number
 23456789.67L is a float rather than an int.
  Let us act as the C compiler to solve the following problem.

  Recall that we are provided 4 types of variables:

       char name[];  with value of c_class
       int    a;     with value of 27
       float  b;     with value of 137.6
       char   c;     with value of K

  Using the variable a as the argument please, type in 
  the result produced with the format specifier  %5d :
               12345
 Answer here:  
 That is correct!
 You've got it on the 2nd try.
 You've got it finally!
 The result is right justified!
 You will have 3 blanks followed by 27
 Please review Topic 10:  Formatted Text I/O
               12345

FORGET1

   The correct choice is    27
                         12345

  Using the variable a as the argument, please type in 
  the result produced with the format specifier  %7o :
               1234567
 Answer here:  
 That is correct!
 You've got it on the 2nd try.
 You've got it finally!
 The result is right justified!
 You should have 5 blanks followed by 33
 Please review Topic 10:  Formatted Text I/O
               1234567

FORGET2

   The correct choice is      33.
                         1234567

  Using the variable a as the argument, please type 
  in the result produced with the format specifier  %5x :
  (hint: decimal 27 equals hexadecimal 1b or 1B).
               12345
 Answer here:  
 That is correct!
 You've got it on the 2nd try.
 You've got it finally!
 Think about it; how many blanks precede the hexadecimal value?
 You should have 3 blanks followed by 1B
 Please review Topic 10:  Formatted Text I/O
               12345

FORGET3

   The correct choice is    1b.
                         12345

  Using the variable a as the argument, please type in 
  the result produced with the format specifier  %u :
               12345
 Answer here:  
 That is correct!
 You've got it on the 2nd try.
 You've got it finally!
 Remember, u stands for unsigned i.e., an integer
 You should have 3 blanks followed by 27
 Please review Topic 10:  Formatted Text I/O
               12345

FORGET4

   The correct choice is    27.
                         12345

  Using the variable b as the argument, please type in 
  the result produced with the format specifier  %10e :
  (hint: remember exponential notation for 12.5 is 1.250000e+01).
               123456789012
 Answer here:  
 That is correct!
 You've got it on the 2nd try.
 You've got it finally!
 Think about it, this is exponential notation
 You will have 1.37 with 0's ended with e+02
 Please review Topic 10:  Formatted Text I/O
               123456789012

FORGET5

   The correct choice is 1.376000e+02.
                         123456789012

  Using the variable b as the argument please type in 
  the result produced with the format specifier  %10.4f :
               1234567890
 Answer here:  
 That is correct!
 You've got it on the 2nd try.
 You've got it finally!
 Think about it; the fractional part is 4 characters long!
 Your will have 2 blanks, 137. and the decimal part.
 Please review Topic 10:  Formatted Text I/O
               1234567890

FORGET6

   The correct choice is   137.6000.
                         1234567890

  Using the variable b as the argument, please type in 
  the result produced with the format specifier  %5g :
               1234567..
 Answer here:  
 That is correct!
 You've got it on the 2nd try.
 You've got it finally!
 Think about it; the result is left justified!
 The floating point representation (137.6) is the shortest!
 Please review Topic 10:  Formatted Text I/O
               1234567..

FORGET7

   The correct answer is 137.6  .
                         1234567..

  Using the variable c as the argument, please type in 
  the result produced with the format specifier  %5c :
               12345
 Answer here:  
 That is correct!
 You've got it on the 2nd try.
 You've got it finally!
 Think, the result is right justified!
 You will have 4 blanks followed by K.
 Please review Topic 10:  Formatted Text I/O
               12345

FORGET8

   The correct choice is     K.
                         12345

  Using the variable name as the argument, please type
  in the result produced with the format specifier  %15s :
               123456789012345
 Answer here:  
 That is correct!
 You've got it on the 2nd try.
 You've got it finally!
 Think about it; the result is right justified!
 You should have 8 blanks followed by c_class.
 Please review Topic 10:  Formatted Text I/O
               123456789012345

FORGET9

   The correct choice is        c_class.
                         123456789012345