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.
- Linux
- File system
- Shells
- Processes
- Basics of programming
- Syntax errors, semantic errors
- Programming in Python
- IDLE
- Comments
- Basics of Python
- Variable names
- Keywords
- Data types (integer, float, string, boolean)
- Statements and expressions
- Assignments (including simultaneous assignments)
- Arithmetic operators; precedence
- String operators
- Logical operators
- Relational operators and Boolean values
- Type conversion functions (int, float, str, bool)
- Input and output
- input built-in function
- print built-in function; end= in the print function
- Formatted printing
- Loops
- for loop; range()
- while loop
- Conditional statements
- if
- if ... else
- if ... elif ... else
- Nested ifs
- Functions
- Defining them
- Parameter lists and how they work
- Returning a value; return statement
- Parameters and arguments
- Scope (local vs. global, etc.)
- Sequences
- Strings, string operations (+, *), string methods
- Mutable vs. immutable
- Indexing (var[position])
- Slicing (var[start:end])
- Membership (in)
- Exceptions
- Interpreting error messages
- Catching them (try ... except ... else ... finally)
- Common exceptions