<?xml version="1.0" encoding="ISO-8859-1"?>
<CAT xmlns:cat="http://www.w3.org/TR/html4/" version="2.0"> 
<cat:title>Syntax and Semantic Errors</cat:title>
<cat:author>Tammy VanDeGrift and Kate Deibel</cat:author>
<cat:date>March 29, 2004</cat:date>

<cat:technique>Approximate Analogies</cat:technique>

<cat:purpose>
<p>
This CAT allows instructors to find out if students understand the differences between a syntax and a semantic error and to discover relationships between these concepts in another domain.
</p>
</cat:purpose>
<cat:activity>
<p>
Imagine a game or sport you like to play. Or, if you're a musician, use musical scores for this analogy. Now, in that new domain (games, sports, or music) describe what the difference between a syntax error and a semantic error would be. Give concrete examples of a syntax error and a semantic error.
</p>

<p>
Be sure to explain the concept of an analogy to the students if they are unfamiliar with the term. You might need to give the students examples.
</p>
</cat:activity>
<cat:solution>
<p>
Here are some sample responses:
</p>

<p>
Let's look at a sport. Syntax errors in a sport would be violations of the rules of the game. For example, if the sport is soccer then the players (other than the goalie) catching the ball with their hands would be a syntax error. A semantic error would be poor execution of a play or a poor strategy to win the game. For example, the soccer team might have a play to kick the ball to a certain person to score and a semantic error would be the team failing to get this person the ball at the appropriate location.
</p>

<p>
Let's look at music. If a musician is composing a piece, a syntax error would be an error in writing down the appropriate notes or dynamics. A semantic error would correspond to someone trying to play a piece of music and playing the wrong notes according the written music.
</p>
</cat:solution>
<cat:analysis>
<p>
Read through the analogies and sort or mark them as "Good," "Questionable," or "Wrong." Read through the piles again to make sure that you have not accidently misclassified a response.
</p>

<p>
Choose three or four of the best examples from the "Good" pile. Emphasize not only the correctness of the analogy, but also the understandability and creativity of the response. Also consider a few marginal responses that highlight confusions you want to address.
</p>
</cat:analysis>
<cat:variant_uses>
	<cat:variation>Be sure to explain the concept of an analogy to the students if they are unfamiliar with the term. You might need to give the students examples of completions. Have the students complete the analogy and explain why this completion fits.</cat:variation>
	<cat:variation>Have students write responses individually and submit these to the instructor anonymously. The instructor reads the responses and the class discusses why the analogies fit or don't fit.</cat:variation>
	<cat:variation>Break students into small groups (2-4 people) and have each group create two or more responses. Have each group explain why their responses fit or don't fit the analogy.</cat:variation>
</cat:variant_uses>
<cat:classification>
<cat:assessment_goals>
	<cat:goal>Ability to synthesize and integrate information</cat:goal>
	<cat:goal>Learn concepts and theories</cat:goal>
	<cat:goal>Develop capacity to think for oneself</cat:goal>
	<cat:goal>Improve memory skills</cat:goal>
	<cat:goal>Develop ability to think creatively</cat:goal>
</cat:assessment_goals>
<cat:topics>
	<cat:topic>Debugging</cat:topic>
	<cat:topic>Syntax</cat:topic>
	<cat:topic>Semantics</cat:topic>
	<cat:topic>Syntax and Semantic Errors</cat:topic>
</cat:topics>
<cat:participation_level>
</cat:participation_level>
<cat:time>
	<cat:preparation_time>LOW</cat:preparation_time>
	<cat:class_time>LOW</cat:class_time>
	<cat:in_class_analysis_time>LOW</cat:in_class_analysis_time>
	<cat:out_class_analysis_time>MEDIUM</cat:out_class_analysis_time>
</cat:time>
<cat:instructor_response>
	<cat:response>Next Day Summary</cat:response>
	<cat:response>Class Discussion</cat:response>
	<cat:response>Small Group Discussions</cat:response>
</cat:instructor_response>
<cat:device_enabled>Straightforward to Enable</cat:device_enabled>
<cat:related_topics>
	<cat:topic>Syntax versus Semantics</cat:topic>
	<cat:topic>Debugging</cat:topic>
	<cat:topic>Safe coding practices</cat:topic>
	<cat:topic>Errors</cat:topic>
</cat:related_topics>
</cat:classification>
</CAT>