ulrail.gif

Exam 2 Grading Guidelines

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

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

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

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

Page 2

Question 1

  • -1 for each wrong answer

Question 2

  • -1 if “int” is missing for the temp variable
  • -1 if “int” is added for firstPlaceScore and secondPlaceScore
  • -4 if did not assign the values properly
  • -1 if additional code that changes the logic e.g. doing the swap in an if statement

Question 3

  • -1 if used a statement instead of an expression
  • -1 if didn’t cast
  • -1 if the division is wrong
  • -1 if used “int” instead of “double”

Page 3

Question 4

  • -1 if used a class
  • For each question:
    • -1 if partially correct
    • -2 if completely incorrect

Question 5

  • -1 if used and “if” statement
  • -1 if statement instead of expression
  • -1 if used the wrong numbers for the condition

Page 4

Question 6

  • -1 use of (dot) instead of *
  • -2 no assignment
  • -2 no multiplication operator
  • -1 incorrect curly braces
  • -1 = instead of ==
  • -1 missing semicolon
  • -1 declared but uninitialized

Question 7

  • -1 per incorrect condition
  • -1 per incorrect body
  • -1 for a syntax error

Question 8

  • -1 per incorrect case
  • -1 per incorrect System.out.println()
  • -1 per missing break
  • -6 no switch

Page 5

Question 9

  • -3 for each wrong output (A,C,A) if they only have one output
  • -2 if they have 2 outputs for a single part (and one of the s is correct)

Page 6

Question 10

  • -2 if they don’t have k=0;
  • -2 if they don’t have while(k<97) or if the loop condition is wrong
  • -2 if they don’t have System.out.print(“*”);
  • -2 if they don’t have k++;
  • -1 for each semicolon missed
  • -1 if they have println instead of print
  • -1 if they put “int k”
  • -1 minor syntax errors (e.g. missing curly brace)

Question 11

  • -1 if they have n>= 0 instead of >
  • -2 if they don’t have n--; or some proper update statement
  • -2 if the test condition is entirely incorrect
  • -2 if they don’t have System.out.print(“*”);
  • -1 for each semicolon missed
  • -1 for println instead of print
  • -2 for extraneous variables

Page 7

Question 12

  • -1 for one or two wrong or missing (or mostly right with minor errors)
  • -2 for three or four wrong or missing
  • -3 for five wrong or missing
  • -4 for six wrong or missing
  • etc.

Question 13

  • -1 for incorrect declaration line
  • -1 for missing private (take off once)
  • -1 for each missing type
  • -1 for each incorrect/missing initialization
  • -1 for including main method
  • -1 for syntax errors

Question 14

  • -1 for each missing/incorrect parameter
  • -1 for variable improperly set variable within body (calling mutators is OK)
  • -1 for syntax errors

Page 8

Question 15

  • “Input” worth 5 points
    • 2 for Scanner initialization
    • 1 for prompting
    • 2 for reading into a variable
  • “Loops” worth 10 points
    • 3 per for loop (plus an extra point for 2 or 3 exceptionally bad loops)
      • 1 for counter variable initialization/ loop format
      • 1 for conditional statement
      • 1 for incrementing variables
  • “Conditional Printing” worth 5 points
    • 3 for if statement
    • 2 for print statement
  • “Other Necessities” worth 5 points
    • 1 for import statement
    • 2 for class
    • 2 for main
  • Tabbing/syntax @ -1 per type of error if unrelated to above points

 

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