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
- 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
A PDF version is available here.
|
ECS 10, Basic Concepts of Computing
Winter Quarter 2012
|