Title: Structures and Arrays Defining Features Matrix

Author: Kate Deibel

Date: Oct 22, 2003

Technique: Defining Features Matrix

Before Class Preparation Time: MEDIUM

Class Completion Time: LOW

In-Class Analysis Time: LOW

Out-Of-Class Analysis Time: LOW

Assessment Goals:
Topics:
Purpose:

This CAT allows instructors to find out if students understand the similarities and differences between an array and a struct as data structures.


Activity:

Fill out the following matrix. This matrix lists some conjectures and it's your job to decide if these hold under two conditions. The first condition is the case of an array and the second condition is the case of a structure. Please write "+" or '-' in the blank cells of the table.


Conjecture Array Struct
Holds multiple pieces of data    
Data must be of the same type    
Can compare to another of same type using ==    
Can be copied by using =    
Always passed as a parameter as call by reference    
Allow programmers to build new types    
Can print all contents with a single printf statement    
Field access operator is .    

Solution:
Conjecture Array Struct
Holds multiple pieces of data + +
Data must be of the same type + -
Can compare to another of same type using == - -
Can be copied by using = - -
Always passed as a parameter as call by reference + -
Allow programmers to build new types - +
Can print all contents with a single printf statement - -
Field access operator is . - +

Instructor Responses: Response Analysis:

The following must be done out of class:

  1. In a first pass, mark and count the number of incorrect answers. Also, mark any answers that you find surprising.
  2. For each question that has a significant (your judgement call) of incorrect answers, do the following:
    1. Look through the answers to these questions.
    2. Attempt to identify the nature of the most common errors that are made.
  3. Discuss these errors in class, using the common mistakes that you identified .

In-class feedback can be done by having students write or say out loud their own answers, but caution must be taken to avoid embarassing or ridiculing a student for making mistakes.



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

Related Topics: