
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) |
0.3 + -4 |
-3.7 |
| 2) |
-0.08 / 0.8 |
-0.1 |
| 3) |
-0.2 * -82 |
16.4 |
| 4) |
-3 + 9 |
6 |
| 5) |
-74.8 + 50 |
-24.8 |
| 6) |
5256 * 1 |
5256 |
| 7) |
42.5 + 3.1 |
45.6 |
| 8) |
11.5 - -9.98 |
21.48 |
| 9) |
0.029 + 0.053 |
0.082 |
| 10) |
-9.5 - -9 |
-0.5 |
| 11) |
8 - -41.5 |
49.5 |
| 12) |
0.06 / -0.5 |
-0.12 |
| 13) |
0.5 * 0.63 |
0.315 |
| 14) |
0.5 + 7.13 |
7.63 |
| 15) |
-0.42 * 10 |
-4.2 |
| 16) |
70 + -42.1 |
27.9 |
| 17) |
3285 - -218 |
3503 |
| 18) |
-14 + 5 |
-9 |
| 19) |
0.05 * -84 |
-4.2 |
| 20) |
-3.1 + 2.41 |
-0.69 |
| 21) |
1065 - -7 |
1072 |
| 22) |
69 * 0.062 |
4.278 |
| 23) |
0.004 / 0.5 |
0.008 |
| 24) |
-926 / -0.5 |
1852 |
| 25) |
200 - 53 |
147 |
| 26) |
9 + 5.6 |
14.6 |
| 27) |
-88 - 7 |
-95 |
| 28) |
2.79 + 25.7 |
28.49 |
| 29) |
44 - 4 |
40 |
| 30) |
900 - 722 |
178 |
| 31) |
1.65 + -8 |
-6.35 |
| 32) |
8626 + 8 |
8634 |
| 33) |
489 - 258.1 |
230.9 |
| 34) |
0.8 + 1.032 |
1.832 |
| 35) |
670 - 6 |
664 |
| 36) |
459 + -434 |
25 |
| 37) |
5 + 0.005 |
5.005 |
| 38) |
7.09 + 0.37 |
7.46 |
| 39) |
-91 * 3 |
-273 |
| 40) |
0.02 - -3.3 |
3.32 |
| 41) |
-7 + 6479 |
6472 |
| 42) |
0.8 - 0.031 |
0.769 |
| 43) |
946 / 10 |
94.6 |
| 44) |
49 + -969 |
-920 |
| 45) |
86 + -3 |
83 |
| 46) |
0.12 - 3.4 |
-3.28 |
| 47) |
1 / 8 |
0.125 |
| 48) |
18 * 77 |
1386 |
| 49) |
667 / 2 |
333.5 |
| 50) |
32.25 - -7 |
39.25 |
| 51) |
0.1 - -3.5 |
3.6 |
| 52) |
-2.5 * 366 |
-915 |
| 53) |
-0.08 / -0.01 |
8 |
| 54) |
7.733 + 0.003 |
7.736 |
| 55) |
0.855 - 0.008 |
0.847 |
| 56) |
474.2 + 69 |
543.2 |
| 57) |
34 * 36 |
1224 |
| 58) |
0.07 + 8.11 |
8.18 |
| 59) |
6 - 7.3 |
-1.3 |
| 60) |
0.08 * -70 |
-5.6 |
| 61) |
2 + 631 |
633 |
| 62) |
-608 / -4 |
152 |
| 63) |
26 + 86 |
112 |
| 64) |
-4.1 / 0.005 |
-820 |
| 65) |
5 - 745 |
-740 |
| 66) |
9274 - 524 |
8750 |
| 67) |
0.04 + 0.59 |
0.63 |
| 68) |
8.5 + -0.04 |
8.46 |
| 69) |
4 * 26 |
104 |
| 70) |
0.008 + 6 |
6.008 |
| 71) |
-0.4 * 0.8 |
-0.32 |
| 72) |
7 - -0.95 |
7.95 |
| 73) |
870 + 857 |
1727 |
| 74) |
-0.01 * -17 |
0.17 |
| 75) |
-8.84 * -9 |
79.56 |
| 76) |
953 - 3 |
950 |
| 77) |
8 * 15.95 |
127.6 |
| 78) |
2 + -0.94 |
1.06 |
| 79) |
9.9 - 22 |
-12.1 |
| 80) |
51 * 1 |
51 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized