
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.06 / 2 |
0.03 |
| 2) |
117 * 7.4 |
865.8 |
| 3) |
2 - 0.9 |
1.1 |
| 4) |
-1 + -3.9 |
-4.9 |
| 5) |
20 + 73.3 |
93.3 |
| 6) |
3.45 - 0.003 |
3.447 |
| 7) |
38 + 261 |
299 |
| 8) |
-0.008 - 0.002 |
-0.01 |
| 9) |
7.3 - 6 |
1.3 |
| 10) |
0.007 - -0.08 |
0.087 |
| 11) |
0.006 + 7.863 |
7.869 |
| 12) |
-0.5 + 6 |
5.5 |
| 13) |
-93 + -59 |
-152 |
| 14) |
-513 + 55 |
-458 |
| 15) |
0.08 / 0.025 |
3.2 |
| 16) |
-8 - 0.01 |
-8.01 |
| 17) |
3 + -409 |
-406 |
| 18) |
-659 - -8 |
-651 |
| 19) |
0.321 + 0.3 |
0.621 |
| 20) |
27 * 0.033 |
0.891 |
| 21) |
322.4 * 5 |
1612 |
| 22) |
-78 + 9 |
-69 |
| 23) |
14 - 1.83 |
12.17 |
| 24) |
-1.8 + 67 |
65.2 |
| 25) |
-0.7 - 3.3 |
-4 |
| 26) |
5 + 0.06 |
5.06 |
| 27) |
3.1 - -70 |
73.1 |
| 28) |
0.05 + 7.858 |
7.908 |
| 29) |
823 - 46 |
777 |
| 30) |
717 + 61 |
778 |
| 31) |
0.008 / 2 |
0.004 |
| 32) |
69 - 5 |
64 |
| 33) |
0.09 + 7 |
7.09 |
| 34) |
8 + 6161 |
6169 |
| 35) |
0.6 + 816.3 |
816.9 |
| 36) |
3 - 0.035 |
2.965 |
| 37) |
6 / 0.32 |
18.75 |
| 38) |
-350 + 44 |
-306 |
| 39) |
-9 * -0.93 |
8.37 |
| 40) |
-90 * -0.9 |
81 |
| 41) |
-6 + -21 |
-27 |
| 42) |
30 + 152 |
182 |
| 43) |
-63 - 20 |
-83 |
| 44) |
0.5 * 3 |
1.5 |
| 45) |
97 - -32 |
129 |
| 46) |
9 + -962 |
-953 |
| 47) |
193 * -0.1 |
-19.3 |
| 48) |
-0.08 / -0.2 |
0.4 |
| 49) |
-0.002 - -3.787 |
3.785 |
| 50) |
68 + 335.3 |
403.3 |
| 51) |
2.8 - 19 |
-16.2 |
| 52) |
916 + -29.7 |
886.3 |
| 53) |
0.06 + 0.083 |
0.143 |
| 54) |
1.7 * 0.4 |
0.68 |
| 55) |
-0.88 + 0.7 |
-0.18 |
| 56) |
3 + -0.006 |
2.994 |
| 57) |
0.66 + 4.3 |
4.96 |
| 58) |
77 - -0.09 |
77.09 |
| 59) |
0.4 - -8.65 |
9.05 |
| 60) |
924 + -2 |
922 |
| 61) |
4298 + 64 |
4362 |
| 62) |
1.3 * -0.7 |
-0.91 |
| 63) |
0.003 - -0.9 |
0.903 |
| 64) |
0.7 + 84 |
84.7 |
| 65) |
39.6 - 86.2 |
-46.6 |
| 66) |
1749 + -91 |
1658 |
| 67) |
92 - -2183 |
2275 |
| 68) |
-1 + 3 |
2 |
| 69) |
83 * 3 |
249 |
| 70) |
8523 + 44 |
8567 |
| 71) |
89 + 280.4 |
369.4 |
| 72) |
5 - 559 |
-554 |
| 73) |
7585 + 373 |
7958 |
| 74) |
-46 - 0.8 |
-46.8 |
| 75) |
1 * 63.41 |
63.41 |
| 76) |
6.5 + 0.004 |
6.504 |
| 77) |
-64 + 6 |
-58 |
| 78) |
870 * 2.6 |
2262 |
| 79) |
0.02 + 0.003 |
0.023 |
| 80) |
826 * 2 |
1652 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized