
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) |
2 * -1 |
-2 |
| 2) |
-0.031 - -6 |
5.969 |
| 3) |
25 + 283 |
308 |
| 4) |
3486 + 3880 |
7366 |
| 5) |
-4 - 175 |
-179 |
| 6) |
-4.97 + 0.08 |
-4.89 |
| 7) |
-13.6 - -3 |
-10.6 |
| 8) |
61 - 2.23 |
58.77 |
| 9) |
0.084 / -0.3 |
-0.28 |
| 10) |
0.86 - 0.047 |
0.813 |
| 11) |
9 * 7.8 |
70.2 |
| 12) |
900 + 956 |
1856 |
| 13) |
-0.22 + 0.01 |
-0.21 |
| 14) |
1427 + 725 |
2152 |
| 15) |
0.5 / 50 |
0.01 |
| 16) |
98 + 6546 |
6644 |
| 17) |
-26 + 7 |
-19 |
| 18) |
-0.4 - -64 |
63.6 |
| 19) |
-0.3 * 8 |
-2.4 |
| 20) |
-2 + 63 |
61 |
| 21) |
4 - 94 |
-90 |
| 22) |
0.26 + -0.2 |
0.06 |
| 23) |
56 + 0.09 |
56.09 |
| 24) |
-7 - 79.9 |
-86.9 |
| 25) |
-3.02 + 9.96 |
6.94 |
| 26) |
-0.3 * -55.7 |
16.71 |
| 27) |
-534 + -6 |
-540 |
| 28) |
0.04 + 7.813 |
7.853 |
| 29) |
9.7 - 97.2 |
-87.5 |
| 30) |
3 / 6 |
0.5 |
| 31) |
729 + 1 |
730 |
| 32) |
504 + -74.8 |
429.2 |
| 33) |
-38 * -37 |
1406 |
| 34) |
6 * 2.2 |
13.2 |
| 35) |
-4 - 447 |
-451 |
| 36) |
0.07 + -8 |
-7.93 |
| 37) |
1.765 - -5.1 |
6.865 |
| 38) |
83.23 - 7 |
76.23 |
| 39) |
-0.9 + 77 |
76.1 |
| 40) |
1052 - 814 |
238 |
| 41) |
-3744 / 585 |
-6.4 |
| 42) |
-0.594 * -5 |
2.97 |
| 43) |
-7 / -0.007 |
1000 |
| 44) |
-9.9 + 0.7 |
-9.2 |
| 45) |
23 / -1 |
-23 |
| 46) |
-20.2 + 6 |
-14.2 |
| 47) |
0.03 + 0.5 |
0.53 |
| 48) |
0.02 - -0.149 |
0.169 |
| 49) |
-4 + 0.4 |
-3.6 |
| 50) |
987 * 6 |
5922 |
| 51) |
90 + -0.1 |
89.9 |
| 52) |
2 + 0.39 |
2.39 |
| 53) |
-6 * -9.1 |
54.6 |
| 54) |
0.1 * 1791 |
179.1 |
| 55) |
79 + -3 |
76 |
| 56) |
260 - 1.3 |
258.7 |
| 57) |
2.5 * 0.45 |
1.125 |
| 58) |
3 + 254 |
257 |
| 59) |
1 * 3.6 |
3.6 |
| 60) |
0.9 + 0.029 |
0.929 |
| 61) |
-0.6 - 6.1 |
-6.7 |
| 62) |
91 + 0.71 |
91.71 |
| 63) |
41.43 - -7.9 |
49.33 |
| 64) |
-541 + 1 |
-540 |
| 65) |
6.044 - 0.001 |
6.043 |
| 66) |
-8 + 62.7 |
54.7 |
| 67) |
6.65 * -4 |
-26.6 |
| 68) |
0.1 + 0.7 |
0.8 |
| 69) |
318 / 0.06 |
5300 |
| 70) |
872 + 0.8 |
872.8 |
| 71) |
0.003 * 910 |
2.73 |
| 72) |
-0.05 + 65 |
64.95 |
| 73) |
1.71 - 2 |
-0.29 |
| 74) |
-3 * -2 |
6 |
| 75) |
0.008 - -5.83 |
5.838 |
| 76) |
1578 + 1378 |
2956 |
| 77) |
362 * 8 |
2896 |
| 78) |
8.21 * 7 |
57.47 |
| 79) |
70.4 - 138 |
-67.6 |
| 80) |
9.8 / -0.4 |
-24.5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized