Midterm Study Guide

This is simply a guide of topics that I consider important for the midterm. I don’t promise to ask you about them all, or about any of these in particular; but I may very well ask you about any of these, as well as anything we discussed in class, in the discussion section, or that is in the text.
  1. Basics of programming
    1. Programming languages: high-level, low-level
    2. Syntax errors, semantic errors
    3. Debugging
    4. Programming in Python
      1. IDLE
  2. Basics of Python
    1. Variable names
    2. Keywords
    3. Data types (integer, float, string, boolean)
  3. Assignments (including simultaneous assignments)
  4. Statements
  5. Expressions
    1. Arithmetic operators; precedence
    2. Logical operators
    3. Relational operators and Boolean values
    4. Type conversion functions (int, float, str, bool)
  6. Input and output
    1. input built-in function
    2. print built-in function
  7. Loops
    1. for loop
    2. range()
    3. while loop
  8. Conditional statements
    1. if
    2. if ... else
    3. if ... elif ... else
    4. Nested ifs
  9. Functions
    1. Defining them
    2. Parameter lists and how values are passed from a calling function
    3. Returning a value: return statement
  10. Interpreting error messages
  11. Exceptions
    1. Catching them (try ... except ... else ... finally)
    2. Common exceptions

You can also obtain a PDF version of this. Version of April 21, 2014 at 12:23PM