CS150 - Fall 2012 - Class 11

  • Exercises

  • admin
       - Tutor hours Wed and Thursday evening 7-11pm
       - Lab 5 due Friday before class
       - Test program 1 is out
          - Due Wednesday before class
          - Start now!
          - take home exam
          - 1/3 of the points are from style/commenting
          - must do some extra features to get full credit
       - No lab prep for Friday
       - Lab on Friday will be a working session
       - Will drop lowest quiz


  • midterm details
       - Thursday night, 7:30-9:30pm in MBH 220
       - What you can use:
          - cheat sheet handout on the course web page (I'll bring copies of this to the midterm)
          - 1 piece of paper (you may write on both sides) with notes, etc.
          - no other notes, book, etc.
       - Exam will be written
       - Practice exam available online

  • midterm review
       - key constructs
          - defining new functions (def ...)
          - for loops
             - using indices with range
             - over lists
          - if/elif/else statements
          - while loops
       - print vs. return
       - types
          - int
          - float
          - bool
          - string
          - lists
       - strings
          - indexing
          - appending/creating
          - slicing
       - lists
          - indexing
          - creating
          - aliasing
       - conditionals
          - and, or, not
       - operations
          - +, -, *, /, %
       - using modules
          - how to import them
             - from <module> import <material>
             - import module
          - random
          - math
          - turtle
       - input/output
          - raw_input
          - print
          - reading from files
       - commenting
       - good style