Difference between revisions of "IB CS1 3rd Quarter Exam"

From WLCS
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<!--
 
=== Directions ===
 
=== Directions ===
 
* This exam is open-book, open-notes, closed-person.  
 
* This exam is open-book, open-notes, closed-person.  
Line 26: Line 27:
 
=== Program ===
 
=== Program ===
 
# Create an empty list named myCharacters
 
# Create an empty list named myCharacters
# Display a menu that lets the user (a)dd, (r)emove, (s)earch, a(t)tack, (d)efend, (p)rint
+
# Using a loop, display a menu that lets the user (a)dd, (r)emove, (s)earch, a(t)tack, (d)efend, (p)rint, (q)uit
 
#* The (a)dd option should prompt the user for all the necessary attributes of a Character and then append one to the myCharacters list
 
#* The (a)dd option should prompt the user for all the necessary attributes of a Character and then append one to the myCharacters list
 
#* The (r)emove option should prompt the user for a name and remove the character
 
#* The (r)emove option should prompt the user for a name and remove the character
Line 33: Line 34:
 
#* The (d)efend option prompts the user for a character name and then runs its defend() method/function
 
#* The (d)efend option prompts the user for a character name and then runs its defend() method/function
 
#* The (p)rint option prints out ALL of the user's characters
 
#* The (p)rint option prints out ALL of the user's characters
 +
#* The (q)uit option breaks out of the menu's loop
  
=== Grading ===
+
=== Grading Rubric ===
3 pts - Character class correctly contains all necessary attributes
+
* 3 pts - Character class correctly contains all necessary attributes
2 pts - __init__() method
+
* 2 pts - __init__() method
2 pts - __str__() method
+
* 2 pts - __str__() method
2 pts - attack() method
+
* 2 pts - attack() method
2 pts - defend() method
+
* 2 pts - defend() method
12 pts - Program (2 pts per option)
+
* 12 pts - Program (2 pts per option)
 +
-->

Latest revision as of 15:53, 3 September 2010