
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) |
25 - 0.34 |
24.66 |
| 2) |
-2 * 87 |
-174 |
| 3) |
605 - -297 |
902 |
| 4) |
9.82 + 66 |
75.82 |
| 5) |
214 - 6 |
208 |
| 6) |
-55.8 + -4.6 |
-60.4 |
| 7) |
117 - 14.9 |
102.1 |
| 8) |
-0.987 * -7 |
6.909 |
| 9) |
7 - 87 |
-80 |
| 10) |
-4.2 / -0.003 |
1400 |
| 11) |
0.066 + 0.2 |
0.266 |
| 12) |
6.8 - -816 |
822.8 |
| 13) |
99 + -0.08 |
98.92 |
| 14) |
87 - 39 |
48 |
| 15) |
0.2 / 1 |
0.2 |
| 16) |
4.7 * -9 |
-42.3 |
| 17) |
12.9 + 433.4 |
446.3 |
| 18) |
0.04 * 28 |
1.12 |
| 19) |
85.28 / 2 |
42.64 |
| 20) |
6 * 4.87 |
29.22 |
| 21) |
-2 * -36 |
72 |
| 22) |
3 + 85.1 |
88.1 |
| 23) |
5.35 + 37.62 |
42.97 |
| 24) |
0.007 + 0.096 |
0.103 |
| 25) |
-57 * -9 |
513 |
| 26) |
0.9 - 1.5 |
-0.6 |
| 27) |
-16 * 4 |
-64 |
| 28) |
7 - -0.736 |
7.736 |
| 29) |
3 + 9.46 |
12.46 |
| 30) |
7.4 + -0.717 |
6.683 |
| 31) |
7829 - 43 |
7786 |
| 32) |
7 + 9.1 |
16.1 |
| 33) |
0.37 * -50 |
-18.5 |
| 34) |
5.515 - 0.03 |
5.485 |
| 35) |
4 + 0.031 |
4.031 |
| 36) |
84 - 2.3 |
81.7 |
| 37) |
-733 + 5754 |
5021 |
| 38) |
602.2 - 697 |
-94.8 |
| 39) |
0.02 * 424 |
8.48 |
| 40) |
0.088 - -0.103 |
0.191 |
| 41) |
55.9 + -89 |
-33.1 |
| 42) |
2407 + -12 |
2395 |
| 43) |
778 - 6 |
772 |
| 44) |
7 * 9 |
63 |
| 45) |
-88 + 23 |
-65 |
| 46) |
-0.7 - 8.3 |
-9 |
| 47) |
0.006 * 995 |
5.97 |
| 48) |
-0.022 + 1 |
0.978 |
| 49) |
6.1 / 4 |
1.525 |
| 50) |
-5 * 47 |
-235 |
| 51) |
-0.025 + 4.7 |
4.675 |
| 52) |
7313 - 8 |
7305 |
| 53) |
-0.002 + 2.89 |
2.888 |
| 54) |
8 + -0.3 |
7.7 |
| 55) |
-99 / -5 |
19.8 |
| 56) |
-0.09 - 0.79 |
-0.88 |
| 57) |
38 * 28 |
1064 |
| 58) |
9 + -82 |
-73 |
| 59) |
125 - 0.3 |
124.7 |
| 60) |
0.5 * 7.3 |
3.65 |
| 61) |
23.28 - -8 |
31.28 |
| 62) |
9 - 4.7 |
4.3 |
| 63) |
-963 + 6286 |
5323 |
| 64) |
-0.005 * 856 |
-4.28 |
| 65) |
-0.04 + 61 |
60.96 |
| 66) |
-0.01 + 72 |
71.99 |
| 67) |
-0.11 + 83 |
82.89 |
| 68) |
0.02 * 9405 |
188.1 |
| 69) |
0.28 + 6 |
6.28 |
| 70) |
-0.005 * -3 |
0.015 |
| 71) |
0.06 + 27 |
27.06 |
| 72) |
-62 + 928 |
866 |
| 73) |
-3 + -47 |
-50 |
| 74) |
-2 - -19 |
17 |
| 75) |
8.073 + 0.05 |
8.123 |
| 76) |
0.05 * -228 |
-11.4 |
| 77) |
587 - 282.7 |
304.3 |
| 78) |
8880 + 75 |
8955 |
| 79) |
2262 / 2 |
1131 |
| 80) |
5.982 + 3 |
8.982 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized