Date

Midterm

  • When: Wednesday, July 9 at 9:10A to 10A
  • Where: 145 Moffitt
  • Bring: Your laptop w/ all the software installed/configured
  • Recommended: Refcard

What to know

  • filesystem hierarchy
  • Bash
    • ls, cd, pwd
  • Git
  • information: status, log
  • virtous cycle: pull, add, commit, (pull,) push
  • R
    • ref card
    • getting info
    • data structures
      • vector-centric
      • indexing/subsetting
      • recycling
      • coercion
    • functions
      • R has extensive built-in functions
      • vector-centric
      • ? to find options
      • scope: local is good
      • return: explicit is better than implicit
      • encapsulation: e.g., return multiple things w/ a list
      • unit tests: "Testing shows the presence, not the absence of bugs." --- Edsger W. Dijkstra
    • loading/saving data
      • R format
      • csv
      • tab-delimited
    • apply and friends
      • clear, idiomatic R
      • simplifies code
  • Principle
    • 7 plus or minus 2
    • Divide et impera (Divide and conqueror)
    • Learn the idiom
    • language makes some things easier to express than others

Format

  • similar to labs and homeworks

    $ cd $ git pull $ cd midterm $ ls $ edit $ Rscript # MUST VERIFY NO EXECUTION HALTED $ git add $ git commit (-m "Clear message for humans") $ git push

  • NO communication with others

    • You may use your computer to query search engines
    • I wouldn't want to rely on this
    • Do look up error messages, if you don't understand them
    • I would try to rely on the reference card, slides, and ?
    • Make little test cases
  • There will be several proctors

    • You can ask anything
    • We will answer questions about
    • Any cheating will result in at least one of the following:
      • 0 for the midterm
      • F for the course
      • Report to the Office of Student Conduct