
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) |
52.2 - 7.63 |
44.57 |
| 2) |
0.6 - -0.64 |
1.24 |
| 3) |
-86 - 41 |
-127 |
| 4) |
18.1 * 40 |
724 |
| 5) |
10 - 0.759 |
9.241 |
| 6) |
-21 - 6 |
-27 |
| 7) |
-90 - -2 |
-88 |
| 8) |
-6 * -733 |
4398 |
| 9) |
10 / -1.6 |
-6.25 |
| 10) |
0.017 + 7.985 |
8.002 |
| 11) |
58 - 6 |
52 |
| 12) |
7 - -7833 |
7840 |
| 13) |
0.19 + 0.94 |
1.13 |
| 14) |
0.4 * 3400 |
1360 |
| 15) |
8 * -0.645 |
-5.16 |
| 16) |
9.34 - -0.537 |
9.877 |
| 17) |
2 + 261 |
263 |
| 18) |
-8 * -1 |
8 |
| 19) |
0.08 / -0.8 |
-0.1 |
| 20) |
-0.01 + 16 |
15.99 |
| 21) |
9 - 0.9 |
8.1 |
| 22) |
-1098 * -0.08 |
87.84 |
| 23) |
1 + 0.6 |
1.6 |
| 24) |
-0.046 + 4.45 |
4.404 |
| 25) |
8 * -70 |
-560 |
| 26) |
0.6 - -983.7 |
984.3 |
| 27) |
0.05 + 3.9 |
3.95 |
| 28) |
2.5 - -1.9 |
4.4 |
| 29) |
-46 * 7 |
-322 |
| 30) |
-0.34 - 0.7 |
-1.04 |
| 31) |
4.6 - -59 |
63.6 |
| 32) |
0.98 * 0.1 |
0.098 |
| 33) |
2.58 - 0.8 |
1.78 |
| 34) |
32 - 56.2 |
-24.2 |
| 35) |
-0.7 * 9 |
-6.3 |
| 36) |
9 + 0.6 |
9.6 |
| 37) |
91 / 5 |
18.2 |
| 38) |
5757 - -36 |
5793 |
| 39) |
5 * -7 |
-35 |
| 40) |
-8 + -6 |
-14 |
| 41) |
752 - 57 |
695 |
| 42) |
3 * 83 |
249 |
| 43) |
9 - -0.009 |
9.009 |
| 44) |
-637 + 22 |
-615 |
| 45) |
14.3 - 4.3 |
10 |
| 46) |
0.55 * -3 |
-1.65 |
| 47) |
0.06 + 0.018 |
0.078 |
| 48) |
-29 - 608 |
-637 |
| 49) |
0.09 - -0.005 |
0.095 |
| 50) |
-1 + 2711 |
2710 |
| 51) |
36 - 6 |
30 |
| 52) |
9 - -0.055 |
9.055 |
| 53) |
341 - -8 |
349 |
| 54) |
8 + 2124 |
2132 |
| 55) |
0.003 * 18 |
0.054 |
| 56) |
438.7 - -7 |
445.7 |
| 57) |
1.2 - 3.77 |
-2.57 |
| 58) |
0.36 * 17 |
6.12 |
| 59) |
0.006 * 5 |
0.03 |
| 60) |
94 * 0.01 |
0.94 |
| 61) |
65 - -348 |
413 |
| 62) |
7589 + 64 |
7653 |
| 63) |
70 + -2 |
68 |
| 64) |
77 * 9 |
693 |
| 65) |
3 + 677 |
680 |
| 66) |
86.15 + 8 |
94.15 |
| 67) |
0.06 - 0.3 |
-0.24 |
| 68) |
0.08 - -1 |
1.08 |
| 69) |
7 + 1.659 |
8.659 |
| 70) |
-4 - -493 |
489 |
| 71) |
942 + 11 |
953 |
| 72) |
-590 - -2905 |
2315 |
| 73) |
5.593 + 0.11 |
5.703 |
| 74) |
7322 + 3 |
7325 |
| 75) |
467 / 2 |
233.5 |
| 76) |
5.43 - -2.969 |
8.399 |
| 77) |
-74.4 + 1 |
-73.4 |
| 78) |
0.1 / 0.08 |
1.25 |
| 79) |
32 / 0.02 |
1600 |
| 80) |
92.6 - -14 |
106.6 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized