STACK Documentation

Documentation home | Category index | Site map

NumDecPlaces: 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.

NumDecPlaces

Test
?
Student response
Teacher answer
Opt
Mark
Answer note
Basic tests
NumDecPlaces
1/0
3
2
-1 ATNumDecPlaces_STACKERROR_SAns.
NumDecPlaces
0.1
1/0
2
-1 ATNumDecPlaces_STACKERROR_TAns.
NumDecPlaces
0.1
0
1/0
-1 ATNumDecPlaces_STACKERROR_Opt.
NumDecPlaces
0.1
1
x
-1 ATNumDecPlaces_OptNotInt.
For ATNumDecPlaces the test option must be a positive integer, in fact "\\(x\\)" was received.
NumDecPlaces
0.1
1
-1
-1 ATNumDecPlaces_OptNotInt.
For ATNumDecPlaces the test option must be a positive integer, in fact "\\(-1\\)" was received.
NumDecPlaces
0.1
1
0
-1 ATNumDecPlaces_OptNotInt.
For ATNumDecPlaces the test option must be a positive integer, in fact "\\(0\\)" was received.
NumDecPlaces
0.1
1
(
-1 STACKERROR_OPTION.
TEST_FAILED
The answer test failed to execute correctly: please alert your teacher. Option field is invalid. You have a missing right bracket ) in the expression: (.
NumDecPlaces
(
1
1
-1 ATNumDecPlacesTEST_FAILED-Empty SA.
The answer test failed to execute correctly: please alert your teacher. Attempted to execute an answer test with an empty student answer, probably a CAS validation problem when authoring the question.
Student's answer not a floating point number
NumDecPlaces
x
3.143
2
0 ATNumDecPlaces_SA_Not_num.
Your answer must be a floating point number, but is not.
NumDecPlaces
pi
3.000
3
0 ATNumDecPlaces_SA_Not_num.
Your answer must be a floating point number, but is not.
Right number of places
NumDecPlaces
3.14
3.143
2
1 ATNumDecPlaces_Correct. ATNumDecPlaces_Equiv.
NumDecPlaces
3.14
3.14
2
1 ATNumDecPlaces_Correct. ATNumDecPlaces_Equiv.
NumDecPlaces
3.140
3.140
3
1 ATNumDecPlaces_Correct. ATNumDecPlaces_Equiv.
NumDecPlaces
3141.5972
3141.5972
4
1 ATNumDecPlaces_Correct. ATNumDecPlaces_Equiv.
NumDecPlaces
4.14
3.14
2
0 ATNumDecPlaces_Correct. ATNumDecPlaces_Not_equiv.
NumDecPlaces
3.1416
pi
4
1 ATNumDecPlaces_Correct. ATNumDecPlaces_Equiv.
NumDecPlaces
-7.3
-7.3
1
1 ATNumDecPlaces_Correct. ATNumDecPlaces_Equiv.
Wrong number of places
NumDecPlaces
3.14
3.143
1
0 ATNumDecPlaces_Wrong_DPs. ATNumDecPlaces_Equiv.
Your answer has been given to the wrong number of decimal places.
NumDecPlaces
3.14
3.143
1
0 ATNumDecPlaces_Wrong_DPs. ATNumDecPlaces_Equiv.
Your answer has been given to the wrong number of decimal places.
NumDecPlaces
3.14
3.140
3
0 ATNumDecPlaces_Wrong_DPs. ATNumDecPlaces_Equiv.
Your answer has been given to the wrong number of decimal places.
NumDecPlaces
7.000
7
4
0 ATNumDecPlaces_Wrong_DPs. ATNumDecPlaces_Equiv.
Your answer has been given to the wrong number of decimal places.
NumDecPlaces
7.0000
7
4
1 ATNumDecPlaces_Correct. ATNumDecPlaces_Equiv.
Both wrong DPs and inaccurate.
NumDecPlaces
8.0000
7
3
0 ATNumDecPlaces_Wrong_DPs. ATNumDecPlaces_Not_equiv.
Your answer has been given to the wrong number of decimal places.
Teacher needs to round their answer.
NumDecPlaces
4.000
3.99999
3
1 ATNumDecPlaces_Correct. ATNumDecPlaces_Equiv.
Teacher uses displaydp
NumDecPlaces
0.10
displaydp(0.1,2)
2
1 ATNumDecPlaces_Correct. ATNumDecPlaces_Equiv.

Documentation home | Category index | Site map

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