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.
- Basics of programming
- Programming languages: high-level, low-level
- Syntax errors, semantic errors
- Debugging
- Programming in Python
- IDLE
- Comments
- Basics of Python
- Variable names
- Keywords
- Data types (integer, float, string, boolean)
- Assignments (including simultaneous assignments
- Statements
- Expressions
- Arithmetic operators; precedence
- Logical operators
- Relational operators and Boolean values
- Type conversion functions (int, float, str)
- Input and output
- input built-in function
- print built-in function
- Loops
- for loop
- range()
- while loop
- Conditional statements
- if
- if ... else
- if ... elif ... else
- Nested ifs
- Functions
- Defining them
- Parameter lists and how values are passed from a calling function
- Returning a value: return statement
- Interpreting error messages
- Exceptions
- Catching them (try ... except ... else ... finally)
- Common exceptions
A PDF version is available here.
|
ECS 10, Basic Concepts of Computing
Fall Quarter 2012
|