To Exam Info
IT 211 -- Midterm Review Guide
Bring to Midterm:
- Calculator (cell phone calculator okay)
One 8.5 × 11 page of crib notes
on both sides. These notes need not be handwritten.
Submissions for
Project 1, Project 2a, and Project 2b.
Builtin Methods Document
Study for Midterm:
- This Review Guide
- The Midterm practice questions on the Exam Info Page
- The Review Exercises at the beginning of each lecture
- The D2L Quizzes, posted on the course website on the D2L Quizzes Page
- Projects 1, 2, and 3.
Definitions:
- Interactive Python (py), Idle Editor, constant (integer,
floating point, string, boolean), variable, variable trace, datatypes (bool,
float, int, str),
exponential notation for floats (e.g., 3.59e61), duck typing, arithmetic
operators (+, -, *, **, /, //, %), comparison operator (<, >, <=, >=, ==, !=), logical
operators (and, or, not), dot operator (.),
operator precedence,
variable trace, file object (for
read or write), structured programming (sequence, decision, indefinite repetition, definite repetition),
infinite loop,
list, list index (a[i]), sequential processing,
builtin methods.
Be Able To:
- Answer multiple choice questions similar to the D2L quizzes. Give a reason
or show your work for partial credit.
- Construct a variable trace and predict the output of a Python script.
- Find and correct errors in Python source code.
- Write an if statement that validates an input value calling the
sys.exit method if the value is not valid.
- Use the string split method to extract the fields from a
delimited line.
- Predict the output of the standalone and string
builtin methods.
- Use the randrange method to produce random numbers according to specifications.
- Know how the import and from..import statements work.
- Convert an indefinite loop (while) to a definite loop (for ).
- Write a Python script using sequential processing to find the sum, average, product, minimum, or maximum of
values read from a file, where each line contains a single value.
- Describe what is shown by a PPM image file.
- Draw or interpret a tiny PPM image file.
Questions to Consider
- What are some mistakes that you made working on Projects 1 through 3 and how
can you avoid these mistakes in the future.
- Explain the four ways of executing a Python script.
- Explain what structured programming is and why it is important.
- What is duck typing? How is it used in Python?
- What is an list? How do you look up an item in a list by index.