ulrail.gif

Exam 3 Grading Guidelines

  ur-2c.gif urrail.gif
blrail-nonavbar.gif

Home | Resources | Homeworks | Exams
Lectures | Labs | Contacts | Submit | TAs

br-2a.gif   br-2c.gif brrail.gif
spacer.gif spacer.gif

These are the grading guidelines that were used to grade the third exam.

 

Exam 3 grading guidelines

Page 2

Question 2

  • -1 for not using int
  • -1 per error

Question 3

  • -1 for anything missing

Question 4

  • -1 for anything missing
  • No points off if the program exhibits the right behavior but has extra stuff

Question 5

  • -1 for Exam3.compute() = count
  • -1 for count.compute()
  • -1 for not using Exam3
  • No points off for extra stuff that still works properly

Question 6

  • -1 for each one wrong

Page 3

Questions 7, 8 & 9

  • -1 for using the mathematical ‘less than or equal to’ instead of <=
  • -1 for = instead of = =
  • -2 for using scanner input in the while condition
  • -2 for “while(done)” without the !, in question 8
  • -1 for creating a scanner
  • -all pts for redeclaring given variables

Page 4

Question 10

  • -1 if any of the keywords are missing: public, static, int, int x and int y(parameters)

Question 11

  • -3 if static is missing
  • -1 if private is missing

Page 5

Question 12

  • -1 per part for anything wrong (if both parts are wrong, still only -1) (to a max of -8)

Question 13

  • -4 if not nested, -2 if didn’t use variable names for NORMAL, REPAIR, etc.
  • -2 for a minor error.

Page 6

Question 14

  • -1 for each one wrong

Question 15

  • 1pt each code bit:
    “int” “iarray[]” “= new” “int[5];” or
    “int[]” “iarray” “= new” “int[5];” or
    “int” “iarray[]” “= {#, #, #, #, #};” or
    “int[]” “iarray” “= {#, #, #, #, #};”

Question 16

  • 1pt syntax
  • 1pt for condition and counter variable init
  • 1pt increment counter
  • 1pt body

Question 17

  • 2pts each

Page 7

Question 18a

  • -1 additional declarations
  • -1 if static
  • -2 incorrect types

Question 18b

  • -2 if fields are not assigned (unless correctly initialized to 1 and 1 in part a)
  • -1 for static and/or return type
  • -1 for a return statement
  • -1 for incorrect method name
  • -1 assigning something it shouldn’t (like value) but be lenient if it was declared in part a
  • -1 for private methods

Question 18c

  • -2 if fields are not assigned
  • -1 for static and/or return type
  • -1 for a return statement
  • -1 for incorrect method name
  • -1 assigning something it shouldn’t (like value) but be lenient if it was declared in part a (it’s okay if they check for nonnegativity)
  • -1 for private methods

Page 8

Question 18d

  • -1 use of parameter
  • -1 method declaration
  • -1 or 2 for string declaration
  • -1 improper return
  • -1 syntax

Question 18e

  • Everybody got full credit for this, regardless of the answer

Question 19

  • +1 if something is written
  • +3 some idea of static declaration
  • +5 or 6 not quite right
  • +7 for full understanding

Question 20

  • +1 if something is written
  • +3 some idea of public vs. private declaration
  • +5 or 6 not quite right
  • +7 for full understanding

 

spacer.gif
spacer.gif footer-middle.gif spacer.gif