5.3 KiB
Assessment for Lab 03
Total score: 109 / 194
Run on February 10, 16:54:06 PM.
-
Pass: Change into directory "Lab_03".
-
Pass: Check that file "hwk_01.ml" exists.
-
2 / 2 : Pass: Check that an OCaml file "hwk_01.ml" has no syntax or type errors.
OCaml file "hwk_01.ml" has no syntax or type errors.
-
3 / 3 : Pass: Check that an OCaml file "hwk_01.ml" has warnings.
OCaml file "hwk_01.ml" has no warnings.
-
1 / 1 : Pass: Check that the result of evaluating
even 4
matches the patterntrue
. -
1 / 1 : Pass: Check that the result of evaluating
even 5
matches the patternfalse
. -
2 / 2 : Pass: Check that the result of evaluating
euclid 6 9
matches the pattern3
. -
2 / 2 : Pass: Check that the result of evaluating
euclid 5 9
matches the pattern1
. -
2 / 2 : Pass: Check that the result of evaluating
frac_add (1,2) (1,3)
matches the pattern(5,6)
. -
2 / 2 : Pass: Check that the result of evaluating
frac_add (1,4) (1,4)
matches the pattern(8,16)
. -
4 / 4 : Pass: Check that the result of evaluating
frac_simplify (8,16)
matches the pattern(1,2)
. -
4 / 4 : Pass: Check that the result of evaluating
frac_simplify (4,9)
matches the pattern(4,9)
. -
4 / 4 : Pass: Check that the result of evaluating
frac_simplify (3,9)
matches the pattern(1,3)
. -
3 / 3 : Pass: Check that the result of evaluating
fst (square_approx 9.0 0.001)
matches the pattern3.
. -
3 / 3 : Pass: Check that the result of evaluating
snd (square_approx 9.0 0.001)
matches the pattern3.0
. -
3 / 3 : Pass: Check that the result of evaluating
fst (square_approx 81.0 0.1)
matches the pattern8.9
. -
3 / 3 : Pass: Check that the result of evaluating
snd (square_approx 81.0 0.1)
matches the pattern9.0
. -
4 / 4 : Pass: Check that the result of evaluating
max_list [1; 2; 5; 3; 2]
matches the pattern5
. -
4 / 4 : Pass: Check that the result of evaluating
max_list [-1; -2; -5; -3; -2]
matches the pattern-1
. -
3 / 3 : Pass: Check that the result of evaluating
drop 3 [1; 2; 3; 4; 5]
matches the pattern[4; 5]
. -
3 / 3 : Pass: Check that the result of evaluating
drop 5 ["A"; "B"; "C"]
matches the pattern[ ]
. -
3 / 3 : Pass: Check that the result of evaluating
drop 0 [1]
matches the pattern[1]
. -
4 / 4 : Pass: Check that the result of evaluating
rev [1; 2; 3; 4; 5]
matches the pattern[5; 4; 3; 2; 1]
. -
4 / 4 : Pass: Check that the result of evaluating
rev []
matches the pattern[]
. -
6 / 6 : Pass: Check that the result of evaluating
perimeter [ (1.0, 1.0); (1.0, 3.0); (4.0, 4.0); (7.0, 3.0); (7.0, 1.0) ]
matches the pattern16.3
. -
3 / 3 : Pass: Check that the result of evaluating
is_matrix [ [1;2;3]; [4;5;6] ]
matches the patterntrue
. -
3 / 3 : Pass: Check that the result of evaluating
is_matrix [ [1;2;3]; [4;6] ]
matches the patternfalse
. -
3 / 3 : Pass: Check that the result of evaluating
is_matrix [ [1] ]
matches the patterntrue
. -
5 / 5 : Pass: Check that the result of evaluating
matrix_scalar_add [ [1; 2; 3]; [4; 5; 6] ] 5
matches the pattern[ [6; 7; 8]; [9; 10; 11] ]
.
Bonus Round!!
-
5 / 5 : Pass: Check that the result of evaluating
matrix_transpose [ [1; 2; 3]; [4; 5; 6] ]
matches the pattern[ [1; 4]; [2; 5]; [3; 6] ]
. -
5 / 5 : Pass: Check that the result of evaluating
matrix_multiply [ [1; 2; 3]; [4; 5; 6] ] [ [1; 4]; [2; 5]; [3; 6] ]
matches the pattern[ [14; 32]; [32; 77]]
. -
0 / 5 : Pass: Check if the solution contains no semicolons in the .ml file - 5 points [only 0 or 5 (all or none)]
-
5 / 5 : Pass: Check for clumsy list construction - 5 points [only 0 or 5 (all or none)]
-
10 / 10 : Pass: Check if there are any inappropriate raise constructs in any functions - 10 points [5 points lost for first offense, another one loses all 10]
-
0 / 25 : Pass: IMPROVEMENT 1: Is there any improvement in the code? - 25
- 'good' - Code is nice, no really bad stuff - 25
- 'poor' attempt - obviously bad things - 10
- 'no attempt' - 0 points if not description - 0
- 0 / 10 : Pass: IMPROVEMENT 1: Does the solution provide a good desription of the improvement? - 10
- description matches the new code - what they say they did is present - 10
- exceedingly brief or inaccurate description - 5
- no comment - 0
-
0 / 5 : Pass: IMPROVEMENT 1: Proper attribution of ideas?
-
0 / 25 : Pass: IMPROVEMENT 2: Is there any improvement in the code? - 25
- 'good' - Code is nice, no really bad stuff - 25
- 'poor' attempt - obviously bad things - 10
- 'no attempt' - 0 points if not description - 0
- 0 / 10 : Pass: IMPROVEMENT 2: Does the solution provide a good desription of the improvement? - 10
- description matches the new code - what they say they did is present - 10
- exceedingly brief or inaccurate description - 5
- no comment - 0
- 0 / 5 : Pass: IMPROVEMENT 2: Proper attribution of ideas?