To Exam Info

IT 211 -- Midterm Review Guide

Bring to Midterm:

Study for Midterm:

  1. This Review Guide
  2. The Midterm practice questions on the Exam Info Page
  3. The Review Exercises at the beginning of each lecture
  4. The D2L Quizzes, posted on the course website on the D2L Quizzes Page
  5. Projects 1, 2, and 3.

Definitions:

Be Able To:

  1. Answer multiple choice questions similar to the D2L quizzes. Give a reason or show your work for partial credit.
  2. Construct a variable trace and predict the output of a Python script.
  3. Find and correct errors in Python source code.
  4. Write an if statement that validates an input value calling the sys.exit method if the value is not valid.
  5. Use the string split method to extract the fields from a delimited line.
  6. Predict the output of the standalone and string builtin methods.
  7. Use the randrange method to produce random numbers according to specifications.
  8. Know how the import and from..import statements work.
  9. Convert an indefinite loop (while) to a definite loop (for ).
  10. 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.
  11. Describe what is shown by a PPM image file.
  12. Draw or interpret a tiny PPM image file.

Questions to Consider

  1. What are some mistakes that you made working on Projects 1 through 3 and how can you avoid these mistakes in the future.
  2. Explain the four ways of executing a Python script.
  3. Explain what structured programming is and why it is important.
  4. What is duck typing? How is it used in Python?
  5. What is an list? How do you look up an item in a list by index.