
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) |
-3 * 0.4 |
-1.2 |
| 2) |
672 - 4 |
668 |
| 3) |
1 + 6.99 |
7.99 |
| 4) |
16 * -6 |
-96 |
| 5) |
9629 - 56 |
9573 |
| 6) |
-524 * 1 |
-524 |
| 7) |
8 * -37 |
-296 |
| 8) |
9 + -163 |
-154 |
| 9) |
-311 + 1 |
-310 |
| 10) |
32 + -0.04 |
31.96 |
| 11) |
6017 + 18 |
6035 |
| 12) |
884 * 0.05 |
44.2 |
| 13) |
365.7 + -78 |
287.7 |
| 14) |
-0.2 / -0.008 |
25 |
| 15) |
376 + -79 |
297 |
| 16) |
0.82 - 0.024 |
0.796 |
| 17) |
99 + 8 |
107 |
| 18) |
77 + 870 |
947 |
| 19) |
6 - 1.35 |
4.65 |
| 20) |
-89 - 5.8 |
-94.8 |
| 21) |
58 - 0.17 |
57.83 |
| 22) |
9.776 + 0.01 |
9.786 |
| 23) |
-0.058 - -6 |
5.942 |
| 24) |
0.08 + 1.2 |
1.28 |
| 25) |
0.101 + 0.104 |
0.205 |
| 26) |
9325 - -59 |
9384 |
| 27) |
8829 + 677 |
9506 |
| 28) |
0.78 + 6 |
6.78 |
| 29) |
9.53 + 4.47 |
14 |
| 30) |
7.778 - 4.64 |
3.138 |
| 31) |
2 + 158.7 |
160.7 |
| 32) |
-17.3 - -71 |
53.7 |
| 33) |
359 - 8 |
351 |
| 34) |
2 + 1 |
3 |
| 35) |
7 * 76.6 |
536.2 |
| 36) |
4 * -75 |
-300 |
| 37) |
38 + 3097 |
3135 |
| 38) |
1 * 1.996 |
1.996 |
| 39) |
619 + 32.8 |
651.8 |
| 40) |
14 - 9 |
5 |
| 41) |
0.4 + 0.8 |
1.2 |
| 42) |
-7 - 12.8 |
-19.8 |
| 43) |
972 + 0.5 |
972.5 |
| 44) |
16 - -5013 |
5029 |
| 45) |
936 + -0.5 |
935.5 |
| 46) |
52 - -47 |
99 |
| 47) |
203.5 + 401 |
604.5 |
| 48) |
215 / 0.215 |
1000 |
| 49) |
2 - 0.63 |
1.37 |
| 50) |
5.443 - -0.5 |
5.943 |
| 51) |
2.6 * 0.7 |
1.82 |
| 52) |
-6 + 92.91 |
86.91 |
| 53) |
14.1 + 1 |
15.1 |
| 54) |
3.63 - 6 |
-2.37 |
| 55) |
48 + 5931 |
5979 |
| 56) |
-0.03 - 1 |
-1.03 |
| 57) |
63 * 0.004 |
0.252 |
| 58) |
-0.5 - -24.8 |
24.3 |
| 59) |
0.082 + 0.09 |
0.172 |
| 60) |
-5 * 57 |
-285 |
| 61) |
0.09 - 0.073 |
0.017 |
| 62) |
8.3 / 1 |
8.3 |
| 63) |
0.09 - 7.6 |
-7.51 |
| 64) |
34 - 74 |
-40 |
| 65) |
-46.9 * -3 |
140.7 |
| 66) |
61 + -67 |
-6 |
| 67) |
3 - 5.5 |
-2.5 |
| 68) |
5 / -0.008 |
-625 |
| 69) |
-0.4 * -8690 |
3476 |
| 70) |
0.08 - -8.08 |
8.16 |
| 71) |
-81 + 6946 |
6865 |
| 72) |
2.9 - -61 |
63.9 |
| 73) |
35.1 / 5 |
7.02 |
| 74) |
0.88 + 4 |
4.88 |
| 75) |
-0.007 + 6.2 |
6.193 |
| 76) |
1.8 + 0.071 |
1.871 |
| 77) |
6 - -2.4 |
8.4 |
| 78) |
9 + -3 |
6 |
| 79) |
4 * 0.2 |
0.8 |
| 80) |
793 - 8 |
785 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized