A-level Computing 2009/AQA/Problem Solving, Programming, Data Representation and Practical Exercise/Fundamentals of Programming/answers

Variables edit

  1. number1
    1. dim name as string
      
    2. dim gender as char
      
      or
      ENUM
      
    3. dim DoB as date
      
    4. dim teacher as boolean
      
  2. number1
  3. A person's height in metres is a decimal number, an integer only stores whole numbers. You should use a double or a single instead.