STACK Documentation

Documentation home | Category index | Site map

SameType: Answer test results

This page exposes the results of running answer tests on STACK test cases. This page is automatically generated from the STACK unit tests and is designed to show question authors what answer tests actually do. This includes cases where answer tests currentl fail, which gives a negative expected mark. Comments and further test cases are very welcome.

SameType

Test
?
Student response
Teacher answer
Opt
Mark
Answer note
SameType
1/0
1
-1 ATSameType_STACKERROR_SAns.
TEST_FAILED
The answer test failed to execute correctly: please alert your teacher. Division by zero.
SameType
1
1/0
-1 ATSameType_STACKERROR_TAns.
TEST_FAILED
The answer test failed to execute correctly: please alert your teacher. Division by zero.
Numbers
SameType
4^(-1/2)
1/2
1
Lists
SameType
x
[1,2,3]
0
SameType
[1,2]
[1,2,3]
1
SameType
[1,x>2]
[1,2<x]
1
SameType
[1,x,3]
[1,2<x,4]
0
Sets
SameType
x
{1,2,3}
0
SameType
{1,2}
{1,2,3}
1
Matrices
SameType
matrix([1,2],[2,3])
matrix([1,2],[2,3])
1
SameType
[[1,2],[2,3]]
matrix([1,2],[2,3])
0
SameType
matrix([1,2],[2,3])
matrix([1,2,3],[2,3,3])
1
SameType
matrix([x>4,{1,x^2}],[[1,2]
,[1,3]])
matrix([4-x<0,{x^2, 1}],[[1
,2],[1,3]])
1
SameType
matrix([x>4,[1,x^2]],[[1,2]
,[1,3]])
matrix([4-x<0,{x^2, 1}],[[1
,2],[1,4]])
0
Equations
SameType
1
x=1
0
SameType
x=1
x=1
1
Inequalities
SameType
1
x>1
0
SameType
x>2
x>1
1
SameType
x>1
x>=1
1
SameType
x>1 and x<3
x>=1
1
SameType
{x>1,x<3}
x>=1
0
SameType
sqrt(2)*sqrt(3)+2*(sqrt(2/3))*
x-(2/3)*(sqrt(2/3))*x^2+(4/9)*
(sqrt(2/3))*x^3
4*sqrt(6)*x^3/27-(2*sqrt(6)*x^
2)/9+(2*sqrt(6)*x)/3+sqrt(6)
1

Documentation home | Category index | Site map

Creative Commons LicenseThe STACK documentation is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.