
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 * 59.42 |
59.42 |
| 2) |
2097 - -19 |
2116 |
| 3) |
1 - 4 |
-3 |
| 4) |
-3.7 / 2 |
-1.85 |
| 5) |
-0.005 + 2.1 |
2.095 |
| 6) |
0.2 * 9045 |
1809 |
| 7) |
-5.1 - 3 |
-8.1 |
| 8) |
837.2 / 7 |
119.6 |
| 9) |
64 - 727 |
-663 |
| 10) |
1 * -4 |
-4 |
| 11) |
7338 - 39 |
7299 |
| 12) |
5 * 0.72 |
3.6 |
| 13) |
-0.7 + 3.1 |
2.4 |
| 14) |
0.087 / 0.04 |
2.175 |
| 15) |
16 + -647 |
-631 |
| 16) |
-3 + 0.84 |
-2.16 |
| 17) |
4.256 + -0.005 |
4.251 |
| 18) |
9 - 47.3 |
-38.3 |
| 19) |
-79.6 + 94 |
14.4 |
| 20) |
-2.12 - -17 |
14.88 |
| 21) |
48.18 + 22.8 |
70.98 |
| 22) |
1.1 - 96 |
-94.9 |
| 23) |
5 - 4 |
1 |
| 24) |
-0.46 / 0.4 |
-1.15 |
| 25) |
4 - -51 |
55 |
| 26) |
0.078 / 0.006 |
13 |
| 27) |
-0.02 + 8 |
7.98 |
| 28) |
6 * 48 |
288 |
| 29) |
5 - -8604 |
8609 |
| 30) |
0.2 + 24 |
24.2 |
| 31) |
8.8 - -382 |
390.8 |
| 32) |
0.3 * 124 |
37.2 |
| 33) |
-9 / 6 |
-1.5 |
| 34) |
6 * 28 |
168 |
| 35) |
0.83 + 0.005 |
0.835 |
| 36) |
-0.005 / -0.2 |
0.025 |
| 37) |
-0.048 - -0.4 |
0.352 |
| 38) |
58 + -24 |
34 |
| 39) |
237 - -46 |
283 |
| 40) |
37 + 0.05 |
37.05 |
| 41) |
99 * 8.8 |
871.2 |
| 42) |
-33.3 + 73 |
39.7 |
| 43) |
0.004 - -0.5 |
0.504 |
| 44) |
-0.05 + -1 |
-1.05 |
| 45) |
0.042 + 0.42 |
0.462 |
| 46) |
-0.877 + 3 |
2.123 |
| 47) |
2 + -0.9 |
1.1 |
| 48) |
-6888 * -1 |
6888 |
| 49) |
-1 * 1 |
-1 |
| 50) |
3 - 68.2 |
-65.2 |
| 51) |
4.89 - 6.2 |
-1.31 |
| 52) |
46.5 + 22.63 |
69.13 |
| 53) |
0.002 / -0.1 |
-0.02 |
| 54) |
48.8 + 4 |
52.8 |
| 55) |
-0.4 * 0.05 |
-0.02 |
| 56) |
9.96 - 8 |
1.96 |
| 57) |
-70 + 1233 |
1163 |
| 58) |
-91 * 0.5 |
-45.5 |
| 59) |
72 + -6 |
66 |
| 60) |
3.96 - -1.97 |
5.93 |
| 61) |
60 * 1 |
60 |
| 62) |
9.5 + -0.71 |
8.79 |
| 63) |
40 * -20.4 |
-816 |
| 64) |
161.3 + 0.3 |
161.6 |
| 65) |
0.9 + 996 |
996.9 |
| 66) |
6 - 505 |
-499 |
| 67) |
66.9 - 2 |
64.9 |
| 68) |
0.54 + -1 |
-0.46 |
| 69) |
2.6 * 4 |
10.4 |
| 70) |
7.896 / 0.002 |
3948 |
| 71) |
-9 - -0.08 |
-8.92 |
| 72) |
0.21 * -180 |
-37.8 |
| 73) |
529 - -0.6 |
529.6 |
| 74) |
9 + -8.949 |
0.051 |
| 75) |
2 * 0.38 |
0.76 |
| 76) |
8.413 - 0.1 |
8.313 |
| 77) |
16 + -91 |
-75 |
| 78) |
1 * 0.004 |
0.004 |
| 79) |
-0.73 + 39 |
38.27 |
| 80) |
916 - -73 |
989 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized