CSCI 160 practice exercises

The set of practic questions below a given in roughly the same order as they were studied in class.

The basic, intermediate, and advanced tags are more related to the complexity of the general topic than the specific questions in each section (i.e. there might be tough questions in a basic section and easy questions in the advanced section).


    Basics
  1. An introductory quiz (given in the fall of 2011)
  2. Lots of basic early programming
  3. Basic output and computation
  4. Examining basic data types
  5. Practice with selection (if/else, switch)
  6. Quiz on functions (pdf, given in the fall of 2011, uses cout/cin instead of printf/scanf)
  7. Practice with loops (for, while, do while)
  8. Practice programming questions
  9. Practice with reference parameters
    Intermediate
  10. Practice with null terminated strings and command line arguments
  11. Practice with file io
  12. Practice with structs
  13. Practice with algorithms
  14. Practice with abstract data types
    Advanced
  15. Arrays and pointers as parameters
  16. Structs part 2
  17. Practice with resizing arrays
  18. Practice with recursion
  19. Practice with two-dimensional arrays
  20. Practice with linked lists
  21. Pre-final practice quiz (misc. topics)

More programming practice

If you want practice designing and writing your own programs, try coming up with solutions for the following: