
Easy level
This level has a single operation per question and the terms are at most 4 digits (including decimals).
All answers have 4 digits or less. This is (much) simpler than a real trading test. If you want you can
also try this level as a test (posts to
!) or set up a
custom exercise.
}
elseif( $_GET['quickselect'] == 'math_medium' )
{
$level = "Medium";
$_GET['maxTermLength'] = 5;
$_GET['maxTermDecimalLength'] = 4;
$_GET['maxAnswerLength'] = 5;
$_GET['maxAnswerDecimalLength'] = 4;
$_GET['minOperations'] = 1;
$_GET['maxOperations'] = 4;
?>
Medium level
This level has a maximum of 4 operations per question and all terms are at most 5 digits including the decimal part.
All answers have 5 digits or less. This is about the level of some trading tests. If you want you can also try this
level as a test (posts to
!) or set up a
custom exercise.
}
elseif( $_GET['quickselect'] == 'math_hard' )
{
$level = "Hard";
$_GET['maxTermLength'] = 6;
$_GET['maxTermDecimalLength'] = 5;
$_GET['maxAnswerLength'] = 6;
$_GET['maxAnswerDecimalLength'] = 5;
$_GET['minOperations'] = 3;
$_GET['maxOperations'] = 4;
?>
Hard level
This level has a maximum of 6 operations per question and all terms are at most 6 digits including the decimal part.
All answers have 5 digits or less. This is beyond the level of most trading tests. If you want you can also try this
level as a test (posts to
!) or set up a
custom exercise.
}
else
{
$generateTest = false;
echo 'Invalid quick select: ' . $_GET['quickselect'];
}
}
// Clean start default variables
if( ! isset( $_GET['posted'] ) )
{
$_GET['useNegativeVariables'] = 'on';
$_GET['optimizeSolvability'] = 'on';
$_GET['preventTooSimple'] = 'on';
$_GET['showSetup'] = 'on';
}
// Generate test?
if( $generateTest )
{
// Normalize values
if( ! isset( $_GET['questionCount'] ) ||
! is_numeric( $_GET['questionCount'] ) ||
$_GET['questionCount'] <= 0 ||
$_GET['questionCount'] > 250 )
{
$_GET['questionCount'] = 80;
}
if( ! isset( $_GET['maxTermLength'] ) ||
! is_numeric( $_GET['maxTermLength'] ) ||
$_GET['maxTermLength'] <= 0 ||
$_GET['maxTermLength'] > 20 )
{
$_GET['maxTermLength'] = 6;
}
if( ! isset( $_GET['maxTermDecimalLength'] ) ||
! is_numeric( $_GET['maxTermDecimalLength'] ) ||
$_GET['maxTermDecimalLength'] <= 0 ||
$_GET['maxTermDecimalLength'] > 20 )
{
$_GET['maxTermDecimalLength'] = 3;
}
if( ! isset( $_GET['maxAnswerLength'] ) ||
! is_numeric( $_GET['maxAnswerLength'] ) ||
$_GET['maxAnswerLength'] <= 0 ||
$_GET['maxAnswerLength'] > 20 )
{
$_GET['maxAnswerLength'] = 4;
}
if( ! isset( $_GET['maxAnswerDecimalLength'] ) ||
! is_numeric( $_GET['maxAnswerDecimalLength'] ) ||
$_GET['maxAnswerDecimalLength'] < 0 ||
$_GET['maxAnswerDecimalLength'] > 20 )
{
$_GET['maxAnswerDecimalLength'] = 3;
}
if( ! isset( $_GET['minOperations'] ) ||
! is_numeric( $_GET['minOperations'] ) ||
$_GET['minOperations'] <= 0 ||
$_GET['minOperations'] > 9 )
{
$_GET['minOperations'] = 1;
}
if( ! isset( $_GET['maxOperations'] ) ||
! is_numeric( $_GET['maxOperations'] ) ||
$_GET['maxOperations'] <= 0 ||
$_GET['maxOperations'] > 9 )
{
$_GET['maxOperations'] = 4;
}
if( $_GET['minOperations'] > $_GET['maxOperations'] )
{
$_GET['minOperations'] = 1;
$_GET['maxOperations'] = 4;
}
if( ! isset( $_GET['mode'] ) ||
( //$_GET['mode'] != 'exam' &&
$_GET['mode'] != 'test' &&
$_GET['mode'] != 'practice' ) )
{
$_GET['mode'] = 'practice';
}
if( ! isset( $_GET['useVariableInteger'] ) &&
! isset( $_GET['useVariableDouble'] ) )
{
$_GET['useVariableInteger'] = 'on';
$_GET['useVariableDouble'] = 'on';
}
if( ! isset( $_GET['useOperatorAdd'] ) &&
! isset( $_GET['useOperatorSubtract'] ) &&
! isset( $_GET['useOperatorMultiply'] ) &&
! isset( $_GET['useOperatorDivide'] ) )
{
$_GET['useOperatorAdd'] = 'on';
$_GET['useOperatorSubtract'] = 'on';
$_GET['useOperatorMultiply'] = 'on';
$_GET['useOperatorDivide'] = 'on';
}
// FIXME this prevent do..while deadlocks below but it's not nice
if( ! isset( $_GET['useVariableInteger'] ) &&
isset( $_GET['useVariableDouble'] ) &&
! isset( $_GET['useVariableFactor'] ) &&
! isset( $_GET['useOperatorAdd'] ) &&
! isset( $_GET['useOperatorSubtract'] ) &&
isset( $_GET['useOperatorMultiply'] ) &&
! isset( $_GET['useOperatorDivide'] ) &&
! isset( $_GET['optimizeSolvability'] ) )
{
die( 'Impossible combination to guarantee easy exercises, disable optimizeSolvability if you really want this.' );
}
// Show setup?
if( isset( $_GET['showSetup'] ) )
{
?>
Set up exercise
Scoring
You get one point for every correct answer. Deduct one point for each error. If you skip a question or run out of time in a timed test, all following questions are not used in your score. Time yourself to 6 seconds per question. Generally you need to pass 55 out of 80 questions or ~70% of the maximum score, but higher is always better.
Manual
The answer to the test will be printed right next to it in the site's background color. You can use CTRL+A, Command+A or use
the mouse to select all text on this page.
Questions
| 1) |
8 + 0.483 |
8.483 |
| 2) |
8.25 + -1 |
7.25 |
| 3) |
-7.4 * -72 |
532.8 |
| 4) |
-490 + -363 |
-853 |
| 5) |
5 - 0.462 |
4.538 |
| 6) |
44 + 4.83 |
48.83 |
| 7) |
7 - -44.6 |
51.6 |
| 8) |
94.1 - 9.88 |
84.22 |
| 9) |
5 + 6 |
11 |
| 10) |
52.2 - 4 |
48.2 |
| 11) |
3.89 + 0.066 |
3.956 |
| 12) |
97 - 0.03 |
96.97 |
| 13) |
486 + 6137 |
6623 |
| 14) |
75 - -825 |
900 |
| 15) |
30 * 56 |
1680 |
| 16) |
0.8 / -0.04 |
-20 |
| 17) |
-0.03 * -1360 |
40.8 |
| 18) |
30 + 825 |
855 |
| 19) |
95 / -19 |
-5 |
| 20) |
-0.2 * 91 |
-18.2 |
| 21) |
-831 + 6636 |
5805 |
| 22) |
882 * 4 |
3528 |
| 23) |
9 + 80 |
89 |
| 24) |
144 + -924 |
-780 |
| 25) |
4 - -1.141 |
5.141 |
| 26) |
6.11 * 13 |
79.43 |
| 27) |
0.652 - -0.1 |
0.752 |
| 28) |
89 + -3 |
86 |
| 29) |
0.05 / 1 |
0.05 |
| 30) |
6 + -0.55 |
5.45 |
| 31) |
1.8 - -7 |
8.8 |
| 32) |
84 / 0.7 |
120 |
| 33) |
3 - 7.67 |
-4.67 |
| 34) |
595 + 46.7 |
641.7 |
| 35) |
97 * 82 |
7954 |
| 36) |
361.7 + 2 |
363.7 |
| 37) |
940 * -0.2 |
-188 |
| 38) |
-41 - 6.5 |
-47.5 |
| 39) |
72.7 * 5 |
363.5 |
| 40) |
710 + 1 |
711 |
| 41) |
38 - 818 |
-780 |
| 42) |
71 + 887.3 |
958.3 |
| 43) |
0.02 - 0.06 |
-0.04 |
| 44) |
0.7 + 0.2 |
0.9 |
| 45) |
3 + 0.05 |
3.05 |
| 46) |
0.007 + 9.4 |
9.407 |
| 47) |
0.53 + 0.6 |
1.13 |
| 48) |
61 - 9 |
52 |
| 49) |
5 / -100 |
-0.05 |
| 50) |
0.02 - 6.5 |
-6.48 |
| 51) |
223 + -44 |
179 |
| 52) |
-815 * 0.004 |
-3.26 |
| 53) |
-0.019 - -0.21 |
0.191 |
| 54) |
-695 + 164 |
-531 |
| 55) |
2 - -64.4 |
66.4 |
| 56) |
1.1 * -4 |
-4.4 |
| 57) |
-18 - 832 |
-850 |
| 58) |
0.94 + 5 |
5.94 |
| 59) |
-1.05 - -24.42 |
23.37 |
| 60) |
-6.1 + 58 |
51.9 |
| 61) |
0.919 + -0.066 |
0.853 |
| 62) |
248 + 1454 |
1702 |
| 63) |
-0.5 - -3.117 |
2.617 |
| 64) |
9 * -5 |
-45 |
| 65) |
832 + 987 |
1819 |
| 66) |
-0.001 - -0.005 |
0.004 |
| 67) |
54 + 1.54 |
55.54 |
| 68) |
36 * 0.71 |
25.56 |
| 69) |
0.9 - 0.05 |
0.85 |
| 70) |
0.8 + 5 |
5.8 |
| 71) |
39 - 861 |
-822 |
| 72) |
50 + 0.07 |
50.07 |
| 73) |
1 + 9 |
10 |
| 74) |
0.005 * 949 |
4.745 |
| 75) |
-3 + -925 |
-928 |
| 76) |
6 / -0.05 |
-120 |
| 77) |
54.46 - 16 |
38.46 |
| 78) |
-82 - 5 |
-87 |
| 79) |
68 - 5 |
63 |
| 80) |
-43 * -0.042 |
1.806 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized