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:
- Develop analytic skills
- Improve memory skills
- Learn terms and facts of this subject
- Learn concepts and theories of this subject
Topics:
- Arrays
- Structures
- C
- Types
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:
- Lecture
- Next Day Summary
- Class Discussion
- Small Group Discussions
- Homework
Response Analysis:
The following must be done out of class:
- In a first pass, mark and count the number of incorrect answers. Also, mark any answers that you find surprising.
- For each question that has a significant (your judgement call) of incorrect answers, do the following:
- Look through the answers to these questions.
- Attempt to identify the nature of the most common errors that are made.
- 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:
- Have students write short explanations for their answers in the matrix.
- Have students correct any names that score a minus in any column.
- Have students work in groups to complete this activity. The instructor may want to circulate throughout the groups to ensure that each group is making progress. After the groups have completed their matrix, the instructor can ask for volunteers for each item. Be sure to ask for explanations as to why they assigned a plus or minus to each column.
- Have students work individually on their problems and form a small group to discuss their answers.
Device-Enabled: Has Been Enabled
Related Topics:
- Classes
- Functions
- Unions
- Objects