0% found this document useful (0 votes)
5 views

Grading_Rubric_Python_Grade_Categorization

The document outlines a grading rubric for a Python program that categorizes student grades, totaling 5 points across four criteria: Input Handling, Data Conversion, Conditional Logic, and Output. Each criterion has specific descriptions and point allocations based on the correctness of implementation. Examples of scoring illustrate how different coding attempts can receive varying scores based on adherence to the rubric's requirements.

Uploaded by

ssandoval
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Grading_Rubric_Python_Grade_Categorization

The document outlines a grading rubric for a Python program that categorizes student grades, totaling 5 points across four criteria: Input Handling, Data Conversion, Conditional Logic, and Output. Each criterion has specific descriptions and point allocations based on the correctness of implementation. Examples of scoring illustrate how different coding attempts can receive varying scores based on adherence to the rubric's requirements.

Uploaded by

ssandoval
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Grading Rubric for Python Grade Categorization Question

**Total: 5 Points**

Criteria Description Points


Input Handling Correctly uses input() to 1
take the student's grade as
input.
Shows clear intent to use 0.5
input(), but the
implementation has errors
(e.g., missing () or
redundant lines).
Does not use or attempt to 0
use input().
Data Conversion Correctly converts the input 1
to an integer using int().
Attempts conversion but 0.5
introduces errors (e.g., uses
int() incorrectly or misses
converting input to an
integer).
Does not attempt to convert 0
the input to a number,
causing the program to fail
or misbehave.
Conditional Logic Implements accurate if-elif- 2
else conditions to
categorize grades, including
handling of invalid input.
Conditions work for valid 1
grades, but invalid input
handling is missing or
incomplete.
Logical structure is present 0.5
but contains significant
errors in condition ranges
or syntax.
Does not implement any 0
conditional logic or uses it
incorrectly.
Output Outputs correct grade 1
category or error message
based on input.
Outputs correct messages 0.5
for some categories but has
missing or incorrect outputs
for others.
Does not output correct 0
results for any grade
category.

Examples of Scoring

Example 1: Fully Correct Code


Student writes code that takes input, converts it to an integer, uses correct conditions for
grade ranges, and handles invalid input.

Score: 5/5

Example 2: Forgets to Convert Input to Integer


grade = input("Enter the grade: ")
if grade >= 90:
print("A")
elif grade >= 80:
print("B")
elif grade >= 70:
print("C")
else:
print("Needs Improvement")

Input Handling: 1 point (Correct use of input()).

Data Conversion: 0 points (Misses int() conversion).

Conditional Logic: 1.5 points (Conditions are correct but fail without conversion).

Output: 0.5 points (Output is conceptually correct but won’t work as expected due to
conversion error).

Score: 3/5

Example 3: Tries to Use Input but with Errors


input = grade
grade = input
userresponse = int("Enter your grade")

Input Handling: 0.5 points (Shows intent but incorrect syntax).

Data Conversion: 0 points (Conversion is attempted incorrectly).

Conditional Logic: 0 points (No working logic).

Output: 0 points (No meaningful output).

Score: 0.5/5
Example 4: Partial Validity, No Invalid Input Check
grade = int(input("Enter the grade: "))
if grade >= 90:
print("A")
elif grade >= 80:
print("B")
elif grade >= 70:
print("C")
else:
print("Needs Improvement")

Input Handling: 1 point (Correct use of input()).

Data Conversion: 1 point (Correct use of int()).

Conditional Logic: 1 point (Valid conditions but no invalid input handling).

Output: 1 point (Correct outputs for valid grades).

Score: 4/5

You might also like