
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) |
93 - 910 |
-817 |
| 2) |
5 + 3.8 |
8.8 |
| 3) |
933 - 824 |
109 |
| 4) |
448 / -14 |
-32 |
| 5) |
5 - 0.05 |
4.95 |
| 6) |
6.6 + 1 |
7.6 |
| 7) |
0.76 - 0.48 |
0.28 |
| 8) |
88.95 * 0.6 |
53.37 |
| 9) |
5 + 0.003 |
5.003 |
| 10) |
2 * 102 |
204 |
| 11) |
-1.77 / -5 |
0.354 |
| 12) |
0.81 - 0.004 |
0.806 |
| 13) |
3.22 - 1.327 |
1.893 |
| 14) |
-0.06 / -0.8 |
0.075 |
| 15) |
-0.1 - -0.421 |
0.321 |
| 16) |
0.1 + -0.052 |
0.048 |
| 17) |
6511 + -3 |
6508 |
| 18) |
8 - -7 |
15 |
| 19) |
2 - 9 |
-7 |
| 20) |
66 + 3 |
69 |
| 21) |
0.245 + 4 |
4.245 |
| 22) |
929 + -8 |
921 |
| 23) |
-8 - -2749 |
2741 |
| 24) |
7 + 0.437 |
7.437 |
| 25) |
10.6 + 25 |
35.6 |
| 26) |
-5.08 - 1.8 |
-6.88 |
| 27) |
-334 + 92 |
-242 |
| 28) |
-59 * -0.6 |
35.4 |
| 29) |
-9.22 + 0.6 |
-8.62 |
| 30) |
-98.7 - -4 |
-94.7 |
| 31) |
3.65 + -7.06 |
-3.41 |
| 32) |
479.7 * 2 |
959.4 |
| 33) |
0.07 + 9 |
9.07 |
| 34) |
-6 / -2 |
3 |
| 35) |
-0.05 * -1 |
0.05 |
| 36) |
0.6 - -4 |
4.6 |
| 37) |
0.262 - -3 |
3.262 |
| 38) |
37 * 0.007 |
0.259 |
| 39) |
-8 * -0.1 |
0.8 |
| 40) |
0.5 * 3 |
1.5 |
| 41) |
-7 * 23 |
-161 |
| 42) |
32.8 - 6.6 |
26.2 |
| 43) |
35 * -0.014 |
-0.49 |
| 44) |
0.73 + 23.63 |
24.36 |
| 45) |
54 * 89 |
4806 |
| 46) |
465 - -7285 |
7750 |
| 47) |
4979 + 8 |
4987 |
| 48) |
-9 - -80.91 |
71.91 |
| 49) |
0.756 + 0.427 |
1.183 |
| 50) |
-944 - 44 |
-988 |
| 51) |
2.2 - -660 |
662.2 |
| 52) |
5.1 + -0.599 |
4.501 |
| 53) |
-84 - 76 |
-160 |
| 54) |
-583 + 73 |
-510 |
| 55) |
41 - -978 |
1019 |
| 56) |
633 - 31 |
602 |
| 57) |
-0.002 / -1 |
0.002 |
| 58) |
191.7 - 0.1 |
191.6 |
| 59) |
0.42 * 0.25 |
0.105 |
| 60) |
-69.6 / 4 |
-17.4 |
| 61) |
4 * 0.319 |
1.276 |
| 62) |
-0.2 * 0.25 |
-0.05 |
| 63) |
-941 + 593 |
-348 |
| 64) |
0.03 * 18.7 |
0.561 |
| 65) |
3.1 - -5 |
8.1 |
| 66) |
3.3 - -0.936 |
4.236 |
| 67) |
0.8 * -5 |
-4 |
| 68) |
-7 + 4269 |
4262 |
| 69) |
38 - 9 |
29 |
| 70) |
7.09 + 8 |
15.09 |
| 71) |
-6 - 95 |
-101 |
| 72) |
4744 + 12 |
4756 |
| 73) |
-0.01 * -598 |
5.98 |
| 74) |
-62 - 6 |
-68 |
| 75) |
0.06 * -21 |
-1.26 |
| 76) |
-6 / -5 |
1.2 |
| 77) |
-541 / 1 |
-541 |
| 78) |
7.2 - 79 |
-71.8 |
| 79) |
41.43 - -48 |
89.43 |
| 80) |
-0.06 + 98 |
97.94 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized