
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) |
80 / 0.01 |
8000 |
| 2) |
65 * 7.5 |
487.5 |
| 3) |
-0.147 - -9 |
8.853 |
| 4) |
-0.47 * 5 |
-2.35 |
| 5) |
69.8 * 0.07 |
4.886 |
| 6) |
0.09 + 90.3 |
90.39 |
| 7) |
3.7 * 1.37 |
5.069 |
| 8) |
0.004 - -8.19 |
8.194 |
| 9) |
3.11 + 77.1 |
80.21 |
| 10) |
418 + 62 |
480 |
| 11) |
294 / 1 |
294 |
| 12) |
95 - 63 |
32 |
| 13) |
663 + 3834 |
4497 |
| 14) |
-369 / 9 |
-41 |
| 15) |
0.88 - -2.4 |
3.28 |
| 16) |
0.34 + 7 |
7.34 |
| 17) |
7 - 3.337 |
3.663 |
| 18) |
1.96 + -7.5 |
-5.54 |
| 19) |
949 + 1 |
950 |
| 20) |
0.48 * -105 |
-50.4 |
| 21) |
-0.22 - 5 |
-5.22 |
| 22) |
52 - 718 |
-666 |
| 23) |
-8 + -1 |
-9 |
| 24) |
-1344 / -0.2 |
6720 |
| 25) |
-565 * 0.6 |
-339 |
| 26) |
74.8 - 99.9 |
-25.1 |
| 27) |
-98 * -0.81 |
79.38 |
| 28) |
-748 + -121 |
-869 |
| 29) |
-1 * 0.69 |
-0.69 |
| 30) |
951.3 + 0.3 |
951.6 |
| 31) |
93.4 / 5 |
18.68 |
| 32) |
9 + 9017 |
9026 |
| 33) |
0.006 + 0.08 |
0.086 |
| 34) |
4 + 5.32 |
9.32 |
| 35) |
0.2 + 0.002 |
0.202 |
| 36) |
-3 - 0.46 |
-3.46 |
| 37) |
0.27 / 0.03 |
9 |
| 38) |
-0.077 + 0.37 |
0.293 |
| 39) |
-0.8 - -15 |
14.2 |
| 40) |
53 + -47.69 |
5.31 |
| 41) |
-7 * -7.15 |
50.05 |
| 42) |
314 - 23 |
291 |
| 43) |
0.08 + 46.6 |
46.68 |
| 44) |
5224 / 4 |
1306 |
| 45) |
626 + 258.7 |
884.7 |
| 46) |
9.1 - 0.303 |
8.797 |
| 47) |
0.008 + 0.38 |
0.388 |
| 48) |
65 + 9 |
74 |
| 49) |
87 + -63.3 |
23.7 |
| 50) |
-0.1 + 611 |
610.9 |
| 51) |
-896 / 7 |
-128 |
| 52) |
5.39 + -0.8 |
4.59 |
| 53) |
0.07 * -54 |
-3.78 |
| 54) |
-1.34 + 0.04 |
-1.3 |
| 55) |
31 - 0.09 |
30.91 |
| 56) |
-19 - 98 |
-117 |
| 57) |
-88 * -0.8 |
70.4 |
| 58) |
8.6 * 0.195 |
1.677 |
| 59) |
5029 + 8 |
5037 |
| 60) |
0.001 + 0.07 |
0.071 |
| 61) |
0.3 + 0.1 |
0.4 |
| 62) |
17.24 - 1 |
16.24 |
| 63) |
4 - -19.95 |
23.95 |
| 64) |
0.24 - 1.7 |
-1.46 |
| 65) |
16 - -83 |
99 |
| 66) |
774 / 9 |
86 |
| 67) |
7535 - 559 |
6976 |
| 68) |
-0.007 + 0.007 |
0 |
| 69) |
183 - 9 |
174 |
| 70) |
8 + -8 |
0 |
| 71) |
16 + 470 |
486 |
| 72) |
89 - -5 |
94 |
| 73) |
0.51 / 0.25 |
2.04 |
| 74) |
0.4 * -4.3 |
-1.72 |
| 75) |
5 - -593 |
598 |
| 76) |
6 + 1.51 |
7.51 |
| 77) |
228 + 678 |
906 |
| 78) |
0.5 - 82.5 |
-82 |
| 79) |
-3 - -470 |
467 |
| 80) |
1 - 4.6 |
-3.6 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized