Title: Integer vs. Integer Array Categorizing Grid

Author: Tammy VanDeGrift and Kate Deibel

Date: October 28, 2003

Technique: Categorizing Grid

Before Class Preparation Time: LOW

Class Completion Time: LOW

In-Class Analysis Time: LOW

Out-Of-Class Analysis Time: LOW

Assessment Goals:
Topics:
Purpose:

This activity allows instructors to see if students are aware of when it is best to use a single integer or an array of integers.


Activity:

This activity will give you the opportunity to decide what sort of variable you would use when programming. Place each item in the Values box under the variable type that would best represent it.


Integer Integer Array



Values
  1. The total rainfall for the past month
  2. The daily rainfall for the past month
  3. The number of jobs completed by Bill and Debbie
  4. The position of the white king on a chessboard
  5. The number of days till the final exam
  6. The position of all the pieces in a chess game
  7. The number of days in each month of they year
  8. A collection of homework grades
  9. The total points posssible on all homeworks
  10. A chessboard

Solution:

The following are suggestions, but several of the items in this activity are meant to encourage discussion.

  1. INT: The total rainfall for the past month
  2. ARRAY: The daily rainfall for the past month
  3. INT: The number of jobs completed by Bill and Debbie
  4. INT: The position of the white king on a chessboard
  5. INT: The number of days till the final exam
  6. ARRAY: The position of all the pieces in a chess game
  7. ARRAY: The number of days in each month of they year
  8. ARRAY: A collection of homework grades
  9. INT: The total points posssible on all homeworks
  10. ARRAY: A chessboard

Instructor Responses: Response Analysis:

Run through the grids and mark incorrect or missing entries. Identify the most common errors as well as any patterns that could explain student confusion. Reflect upon these errors and report them back to the class as you see fit.



Variant Uses of Activity:
Device-Enabled: Has Been Enabled

Related Topics: