
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) |
-1 - 3 |
-4 |
| 2) |
0.004 * 88 |
0.352 |
| 3) |
8424 + 13 |
8437 |
| 4) |
-0.87 * 9 |
-7.83 |
| 5) |
1.25 + 2.441 |
3.691 |
| 6) |
543 + 76 |
619 |
| 7) |
0.002 + 0.01 |
0.012 |
| 8) |
275 * 0.033 |
9.075 |
| 9) |
5686 - 730 |
4956 |
| 10) |
-1 - 7.2 |
-8.2 |
| 11) |
-9 * -390 |
3510 |
| 12) |
-19.8 + 92 |
72.2 |
| 13) |
50 * 58.1 |
2905 |
| 14) |
0.005 + 8 |
8.005 |
| 15) |
0.4 - 4 |
-3.6 |
| 16) |
27.42 + 24 |
51.42 |
| 17) |
-488 - -622 |
134 |
| 18) |
32 + 0.8 |
32.8 |
| 19) |
-0.6 + 4.39 |
3.79 |
| 20) |
-0.059 + 9.42 |
9.361 |
| 21) |
-6 + 89 |
83 |
| 22) |
9 * -8.4 |
-75.6 |
| 23) |
24.7 - 0.8 |
23.9 |
| 24) |
0.25 + 0.097 |
0.347 |
| 25) |
52 * 74 |
3848 |
| 26) |
98 + 3 |
101 |
| 27) |
9.37 - 2 |
7.37 |
| 28) |
0.15 * 10 |
1.5 |
| 29) |
252 + 46 |
298 |
| 30) |
-0.07 - -0.37 |
0.3 |
| 31) |
34 + 4.17 |
38.17 |
| 32) |
-82 * -4 |
328 |
| 33) |
82 * 0.041 |
3.362 |
| 34) |
-81 - -3785 |
3704 |
| 35) |
59 + 713 |
772 |
| 36) |
9.57 - 0.01 |
9.56 |
| 37) |
9.1 / 5 |
1.82 |
| 38) |
0.204 - -0.5 |
0.704 |
| 39) |
9 + 0.962 |
9.962 |
| 40) |
0.004 * 186 |
0.744 |
| 41) |
-8.95 + 9.409 |
0.459 |
| 42) |
73.37 - 1.55 |
71.82 |
| 43) |
24 * 6.1 |
146.4 |
| 44) |
33 / -1 |
-33 |
| 45) |
0.006 * 29 |
0.174 |
| 46) |
87.7 + -56 |
31.7 |
| 47) |
0.008 * 400 |
3.2 |
| 48) |
-78.3 + 974 |
895.7 |
| 49) |
32 - 5.21 |
26.79 |
| 50) |
8 * -0.8 |
-6.4 |
| 51) |
7 - 409 |
-402 |
| 52) |
6 + -0.46 |
5.54 |
| 53) |
7 - -4977 |
4984 |
| 54) |
-27 + 99.3 |
72.3 |
| 55) |
-7 - 38 |
-45 |
| 56) |
341 * 0.7 |
238.7 |
| 57) |
-3 - -9.99 |
6.99 |
| 58) |
-38 * -0.005 |
0.19 |
| 59) |
-15 + 1 |
-14 |
| 60) |
97 - -1689 |
1786 |
| 61) |
45 + 4 |
49 |
| 62) |
8.87 / 2 |
4.435 |
| 63) |
6226 + 239 |
6465 |
| 64) |
6304 + 67 |
6371 |
| 65) |
7961 + -2319 |
5642 |
| 66) |
9 * -1.9 |
-17.1 |
| 67) |
24 * 1.37 |
32.88 |
| 68) |
29 - 815 |
-786 |
| 69) |
-8 - -78.38 |
70.38 |
| 70) |
-81 / 9 |
-9 |
| 71) |
32 - -0.07 |
32.07 |
| 72) |
6 * 0.253 |
1.518 |
| 73) |
1810 + -5 |
1805 |
| 74) |
82.72 + -86 |
-3.28 |
| 75) |
-0.2 / 4 |
-0.05 |
| 76) |
0.89 * 0.3 |
0.267 |
| 77) |
9.3 - -0.003 |
9.303 |
| 78) |
-29 / 0.2 |
-145 |
| 79) |
0.9 * 0.8 |
0.72 |
| 80) |
7802 + 825 |
8627 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized