
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) |
-4 * -14 |
56 |
| 2) |
96 + -86.1 |
9.9 |
| 3) |
-3 + 8 |
5 |
| 4) |
63 - 1 |
62 |
| 5) |
-23 * 6 |
-138 |
| 6) |
8 - 9.2 |
-1.2 |
| 7) |
6 / 4 |
1.5 |
| 8) |
5.815 + -0.001 |
5.814 |
| 9) |
9.72 - 1.86 |
7.86 |
| 10) |
0.002 * 90 |
0.18 |
| 11) |
1148 * 0.02 |
22.96 |
| 12) |
-77 + 808 |
731 |
| 13) |
-14 - 142 |
-156 |
| 14) |
0.064 + 0.05 |
0.114 |
| 15) |
197 - -947 |
1144 |
| 16) |
6 / -2 |
-3 |
| 17) |
92 + 24 |
116 |
| 18) |
-9.8 - -19.08 |
9.28 |
| 19) |
-9.4 - 3 |
-12.4 |
| 20) |
81 * -2 |
-162 |
| 21) |
3 + 8 |
11 |
| 22) |
-8 / 0.08 |
-100 |
| 23) |
0.1 + 0.002 |
0.102 |
| 24) |
0.2 - -597.7 |
597.9 |
| 25) |
443 + -0.6 |
442.4 |
| 26) |
24 - 4 |
20 |
| 27) |
96 * -6 |
-576 |
| 28) |
399 + 900 |
1299 |
| 29) |
6.27 / 6 |
1.045 |
| 30) |
130 - 4 |
126 |
| 31) |
0.025 * 9 |
0.225 |
| 32) |
0.6 + 0.55 |
1.15 |
| 33) |
-2.8 / 0.1 |
-28 |
| 34) |
-6 + 192 |
186 |
| 35) |
9 * 148 |
1332 |
| 36) |
858 / 1 |
858 |
| 37) |
4333 + 907 |
5240 |
| 38) |
58 * 0.95 |
55.1 |
| 39) |
4 - -1.567 |
5.567 |
| 40) |
1281 / -7 |
-183 |
| 41) |
1 + -0.004 |
0.996 |
| 42) |
-1 + 7.245 |
6.245 |
| 43) |
60 + -0.12 |
59.88 |
| 44) |
302 / 5 |
60.4 |
| 45) |
7598 + 84 |
7682 |
| 46) |
82 * 0.4 |
32.8 |
| 47) |
5.93 + -0.001 |
5.929 |
| 48) |
630 / 1 |
630 |
| 49) |
6787 + -77 |
6710 |
| 50) |
-20 + 2 |
-18 |
| 51) |
8 * 3 |
24 |
| 52) |
0.35 - -6.38 |
6.73 |
| 53) |
0.66 + 8.887 |
9.547 |
| 54) |
-3.9 + -4.6 |
-8.5 |
| 55) |
7 - -50 |
57 |
| 56) |
-510 * -0.7 |
357 |
| 57) |
1.12 + 6.55 |
7.67 |
| 58) |
432 - 5 |
427 |
| 59) |
3 + -0.071 |
2.929 |
| 60) |
32.53 + 23 |
55.53 |
| 61) |
-0.567 / 0.3 |
-1.89 |
| 62) |
7 * 1.6 |
11.2 |
| 63) |
8.8 + 127 |
135.8 |
| 64) |
7694 - 2 |
7692 |
| 65) |
-438 + -357 |
-795 |
| 66) |
353 + 4604 |
4957 |
| 67) |
1 * 9 |
9 |
| 68) |
7512 - 226 |
7286 |
| 69) |
-1 - 864 |
-865 |
| 70) |
6328 / 7 |
904 |
| 71) |
-5 + -939 |
-944 |
| 72) |
0.07 * 8.6 |
0.602 |
| 73) |
7999 - 146 |
7853 |
| 74) |
4780 + 9 |
4789 |
| 75) |
3168 + -146 |
3022 |
| 76) |
0.85 - 9.4 |
-8.55 |
| 77) |
5666 + -6 |
5660 |
| 78) |
-7 - 0.05 |
-7.05 |
| 79) |
84.71 + 4 |
88.71 |
| 80) |
883 - -4.8 |
887.8 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized