
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) |
30.8 - 0.8 |
30 |
| 2) |
4.71 + 0.004 |
4.714 |
| 3) |
5 - -99 |
104 |
| 4) |
0.2 / 5 |
0.04 |
| 5) |
18 * -5 |
-90 |
| 6) |
18 * 24 |
432 |
| 7) |
54 - 0.62 |
53.38 |
| 8) |
8.23 * -1 |
-8.23 |
| 9) |
-84 - 3 |
-87 |
| 10) |
0.02 - -28.34 |
28.36 |
| 11) |
7 / -0.2 |
-35 |
| 12) |
0.003 - -1 |
1.003 |
| 13) |
4443 + -8 |
4435 |
| 14) |
-6 + 7.11 |
1.11 |
| 15) |
0.059 - -0.009 |
0.068 |
| 16) |
4.5 - 0.082 |
4.418 |
| 17) |
0.048 + 3 |
3.048 |
| 18) |
9 + 0.28 |
9.28 |
| 19) |
-97 + 445.7 |
348.7 |
| 20) |
2 - -8.6 |
10.6 |
| 21) |
-7 + 1.2 |
-5.8 |
| 22) |
-96.39 / -85 |
1.134 |
| 23) |
-0.926 + 4 |
3.074 |
| 24) |
-9 * -79 |
711 |
| 25) |
-72 / -0.09 |
800 |
| 26) |
14 - -35 |
49 |
| 27) |
4 * 46 |
184 |
| 28) |
0.003 * 1439 |
4.317 |
| 29) |
0.6 + -51 |
-50.4 |
| 30) |
88.2 * 4.5 |
396.9 |
| 31) |
91 * 0.006 |
0.546 |
| 32) |
0.08 + 78 |
78.08 |
| 33) |
9 * -95 |
-855 |
| 34) |
15 * -0.07 |
-1.05 |
| 35) |
9 + -0.04 |
8.96 |
| 36) |
4.667 - 0.873 |
3.794 |
| 37) |
-0.06 / 0.06 |
-1 |
| 38) |
-0.74 + 14.83 |
14.09 |
| 39) |
18.4 + 3 |
21.4 |
| 40) |
720 / -1 |
-720 |
| 41) |
0.4 + -8.05 |
-7.65 |
| 42) |
72 - 0.96 |
71.04 |
| 43) |
-0.009 - -0.066 |
0.057 |
| 44) |
61 - 0.2 |
60.8 |
| 45) |
-4.82 + 0.66 |
-4.16 |
| 46) |
82.3 - 64 |
18.3 |
| 47) |
90 * 91.7 |
8253 |
| 48) |
8.4 + 9 |
17.4 |
| 49) |
0.7 - -75 |
75.7 |
| 50) |
86 * 0.6 |
51.6 |
| 51) |
0.005 * 7 |
0.035 |
| 52) |
67 - 934 |
-867 |
| 53) |
5448 + 42 |
5490 |
| 54) |
9.8 - 0.096 |
9.704 |
| 55) |
9 + 5209 |
5218 |
| 56) |
-515 - -9 |
-506 |
| 57) |
2.24 + 0.79 |
3.03 |
| 58) |
2 + 0.78 |
2.78 |
| 59) |
30.6 - 10.85 |
19.75 |
| 60) |
-2 / 4 |
-0.5 |
| 61) |
0.003 * 86 |
0.258 |
| 62) |
29 + -37 |
-8 |
| 63) |
4 - 228 |
-224 |
| 64) |
2.7 + 0.041 |
2.741 |
| 65) |
0.5 * 82 |
41 |
| 66) |
5 - 37 |
-32 |
| 67) |
78.63 + 8 |
86.63 |
| 68) |
154 / 0.07 |
2200 |
| 69) |
4 + 15 |
19 |
| 70) |
-6.6 - -3 |
-3.6 |
| 71) |
59 / 0.8 |
73.75 |
| 72) |
850 - -64 |
914 |
| 73) |
-0.6 * 1 |
-0.6 |
| 74) |
-723.2 - -48.2 |
-675 |
| 75) |
7.4 + 32.3 |
39.7 |
| 76) |
2 * 93 |
186 |
| 77) |
17.8 + 3 |
20.8 |
| 78) |
0.3 * 8 |
2.4 |
| 79) |
0.4 - 87.3 |
-86.9 |
| 80) |
0.34 * 7 |
2.38 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized