
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) |
3.74 - 6 |
-2.26 |
| 2) |
0.6 - 0.287 |
0.313 |
| 3) |
807 + -3.8 |
803.2 |
| 4) |
4.9 - -2.73 |
7.63 |
| 5) |
1.2 / 0.04 |
30 |
| 6) |
0.55 * 0.6 |
0.33 |
| 7) |
978 - 944 |
34 |
| 8) |
1021 * 3 |
3063 |
| 9) |
-274 - -521 |
247 |
| 10) |
-412 / 0.5 |
-824 |
| 11) |
7.2 - 1 |
6.2 |
| 12) |
2 * -6.9 |
-13.8 |
| 13) |
39 - 9.04 |
29.96 |
| 14) |
-54.1 + 65 |
10.9 |
| 15) |
8 - 3 |
5 |
| 16) |
-7.7 * 5 |
-38.5 |
| 17) |
-63.6 + 551 |
487.4 |
| 18) |
0.03 * 49.4 |
1.482 |
| 19) |
-0.09 - -1 |
0.91 |
| 20) |
5.9 / -0.1 |
-59 |
| 21) |
2 + 8284 |
8286 |
| 22) |
2.3 + 0.004 |
2.304 |
| 23) |
30 - 53.8 |
-23.8 |
| 24) |
58 + 7722 |
7780 |
| 25) |
8.31 + -0.05 |
8.26 |
| 26) |
3.52 + 7.08 |
10.6 |
| 27) |
58.4 + -57.2 |
1.2 |
| 28) |
-8 - -6 |
-2 |
| 29) |
0.6 + 659 |
659.6 |
| 30) |
3 * 68 |
204 |
| 31) |
8.132 - 0.83 |
7.302 |
| 32) |
-0.9 - 0.01 |
-0.91 |
| 33) |
-0.003 / 0.06 |
-0.05 |
| 34) |
0.652 - 0.2 |
0.452 |
| 35) |
9 * 804 |
7236 |
| 36) |
0.8 + -3 |
-2.2 |
| 37) |
5 - -1593 |
1598 |
| 38) |
7 + 322 |
329 |
| 39) |
6.999 + -4.56 |
2.439 |
| 40) |
-820 - -335 |
-485 |
| 41) |
0.002 + 0.022 |
0.024 |
| 42) |
-841 * -0.2 |
168.2 |
| 43) |
1328 - 1771 |
-443 |
| 44) |
0.1 + 9.5 |
9.6 |
| 45) |
89.8 / 0.1 |
898 |
| 46) |
499 + 99 |
598 |
| 47) |
5275 - 137 |
5138 |
| 48) |
1122 + 3 |
1125 |
| 49) |
8 + 12 |
20 |
| 50) |
1 * -0.75 |
-0.75 |
| 51) |
85 + 0.06 |
85.06 |
| 52) |
5 * 4 |
20 |
| 53) |
214 - -1 |
215 |
| 54) |
50 * 87 |
4350 |
| 55) |
-83 / 2 |
-41.5 |
| 56) |
82 - 0.86 |
81.14 |
| 57) |
4 + 0.41 |
4.41 |
| 58) |
-926 / 2 |
-463 |
| 59) |
0.709 - 0.036 |
0.673 |
| 60) |
89 + -3.5 |
85.5 |
| 61) |
8 * -2 |
-16 |
| 62) |
50.8 - 15 |
35.8 |
| 63) |
-23.5 - -300 |
276.5 |
| 64) |
8 * 0.2 |
1.6 |
| 65) |
9 + -79 |
-70 |
| 66) |
8 * 1.4 |
11.2 |
| 67) |
28 / -7 |
-4 |
| 68) |
0.003 * 164 |
0.492 |
| 69) |
1 + 136 |
137 |
| 70) |
-0.869 - -5.3 |
4.431 |
| 71) |
-24 + -20 |
-44 |
| 72) |
9395 * 0.1 |
939.5 |
| 73) |
6 / 0.8 |
7.5 |
| 74) |
-224 - -636 |
412 |
| 75) |
24 + -9.68 |
14.32 |
| 76) |
1 + 92.9 |
93.9 |
| 77) |
-2 * 315.5 |
-631 |
| 78) |
0.172 + 0.243 |
0.415 |
| 79) |
1766 - -6 |
1772 |
| 80) |
99 * 7 |
693 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized