6.2 Solutions

    1. e, c
    2. b (c is not available, since there is a local variable with the same name)
    3. b, c, d (all the global variables, and the procedure names)
    4. int (the local one. The global c which is real is not available in the procedure)
  1.  
    5 3
    4 2
    4 3
  2.  
    var pageNumber : int := 0
    
    procedure newPage
       cls
       pageNumber := pageNumber + 1
       put "Page ", pageNumber
    end newPage