NumDecPlacesWrong: 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.
NumDecPlacesWrong
Test | ? | Student response | Teacher answer | Opt | Mark | Answer note | |
---|---|---|---|---|---|---|---|
Basic tests | |||||||
NumDecPlacesWrong | 1/0 |
3 |
2 |
-1 | ATNumDecPlacesWrong_STACKERROR_SAns. | ||
NumDecPlacesWrong | 0.1 |
1/0 |
2 |
-1 | ATNumDecPlacesWrong_STACKERROR_TAns. | ||
NumDecPlacesWrong | 0.1 |
0 |
1/0 |
-1 | ATNumDecPlacesWrong_STACKERROR_Opt. | ||
NumDecPlacesWrong | 0.1 |
0 |
x |
-1 | ATNumDecPlacesWrong_OptNotInt. | ||
For ATNumDecPlacesWrong the test option must be a positive integer, in fact "\(x\)" was received. | |||||||
NumDecPlacesWrong | x^2 |
1234 |
4 |
0 | ATNumDecPlacesWrong_SA_Not_num. | ||
Your answer must be a floating point number, but is not. | |||||||
NumDecPlacesWrong | 1234.5 |
x^2 |
4 |
0 | ATNumDecPlacesWrong_Tans_Not_Num. | ||
NumDecPlacesWrong | 3.141 |
31.41 |
4 |
1 | ATNumDecPlacesWrong_Correct. | ||
NumDecPlacesWrong | 3.141 |
31.14 |
4 |
0 | ATNumDecPlacesWrong_Wrong. | ||
NumDecPlacesWrong | pi |
31.14 |
4 |
0 | ATNumDecPlacesWrong_SA_Not_num. | ||
Your answer must be a floating point number, but is not. | |||||||
NumDecPlacesWrong | 0.1234 |
1234 |
4 |
1 | ATNumDecPlacesWrong_Correct. | ||
NumDecPlacesWrong | 0.1235 |
1234 |
4 |
0 | ATNumDecPlacesWrong_Wrong. | ||
NumDecPlacesWrong | 0.0001234 |
1234 |
4 |
1 | ATNumDecPlacesWrong_Correct. | ||
NumDecPlacesWrong | 0.0001235 |
1234 |
4 |
0 | ATNumDecPlacesWrong_Wrong. | ||
NumDecPlacesWrong | 0.1233 |
1234 |
3 |
1 | ATNumDecPlacesWrong_Correct. | ||
NumDecPlacesWrong | 0.1243 |
1234 |
3 |
0 | ATNumDecPlacesWrong_Wrong. | ||
NumDecPlacesWrong | 0.1230 |
1239 |
3 |
1 | ATNumDecPlacesWrong_Correct. | ||
NumDecPlacesWrong | 0.1240 |
1239 |
3 |
0 | ATNumDecPlacesWrong_Wrong. | ||
NumDecPlacesWrong | 1230 |
1239 |
3 |
1 | ATNumDecPlacesWrong_Correct. | ||
NumDecPlacesWrong | 2230 |
1239 |
3 |
0 | ATNumDecPlacesWrong_Wrong. | ||
NumDecPlacesWrong | 0.100 |
1.00 |
3 |
1 | ATNumDecPlacesWrong_Correct. | ||
NumDecPlacesWrong | 0.1000 |
1.00 |
3 |
1 | ATNumDecPlacesWrong_Correct. | ||
NumDecPlacesWrong | 0.1001 |
1.001 |
3 |
1 | ATNumDecPlacesWrong_Correct. | ||
Condone lack of trailing zeros | |||||||
NumDecPlacesWrong | 0.100 |
1.0 |
4 |
1 | ATNumDecPlacesWrong_Correct. | ||
NumDecPlacesWrong | 1 |
1.00 |
4 |
1 | ATNumDecPlacesWrong_Correct. | ||
Teacher uses displaydp | |||||||
NumDecPlacesWrong | 0.101 |
displaydp(101,3) |
3 |
1 | ATNumDecPlacesWrong_Correct. |