Final 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
- Compiler, interpreter
- 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
- Statements
- Expressions
- Arithmetic operators; precedence
- String operators
- Logical operators
- Relational operators and Boolean values
- Type conversion functions (int, float, str)
- Input
- Input and output
- input functions
- print function
- Loops
- for loop
- range function
- 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
- Interpreting error messages
- Sequences
- Strings, string operations (+, *), string methods
- Lists, list operations (+, *), list methods
- Indexing (var[position])
- Slicing (var[start:end])
- Membership (in)
- References, aliasing
- Dictionaries
- What it is
- Methods for dictionaries
- How to use a dictionary
- Functions
- Parameters and arguments
- Scope (local vs. global, etc.)
- Returning values
- Call stack
- Recursion
- Memos in recursive functions
- File I/O and the File System
- Opening and closing files
- Reading and writing files
- Path names, file names
- Functions to manipulate them
- Exceptions
- Catching them (try ... except ... else ... finally)
- Throwing them (raise)
- Common exceptions
A PDF version is available here.
|
ECS 10, Basic Concepts of Computing
Winter Quarter 2012
|