
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.001 + 2.5 |
2.499 |
| 2) |
-6 - 2 |
-8 |
| 3) |
56 * 8 |
448 |
| 4) |
-4 * -7 |
28 |
| 5) |
113 * 63 |
7119 |
| 6) |
5995 - 6 |
5989 |
| 7) |
75 + 9 |
84 |
| 8) |
227 * 0.015 |
3.405 |
| 9) |
7074 + 16 |
7090 |
| 10) |
45.1 - -61 |
106.1 |
| 11) |
2.56 - 8.1 |
-5.54 |
| 12) |
3 + 1.01 |
4.01 |
| 13) |
9 - -4264 |
4273 |
| 14) |
3 + 82 |
85 |
| 15) |
-0.098 * -88 |
8.624 |
| 16) |
3 + 12 |
15 |
| 17) |
657 + -3.2 |
653.8 |
| 18) |
83 * 5 |
415 |
| 19) |
0.1 - -409 |
409.1 |
| 20) |
0.2 * 33.9 |
6.78 |
| 21) |
5.1 / -2 |
-2.55 |
| 22) |
-51 + 9774 |
9723 |
| 23) |
7 + 279 |
286 |
| 24) |
42 + -97 |
-55 |
| 25) |
0.085 - -6.053 |
6.138 |
| 26) |
9.38 - -2 |
11.38 |
| 27) |
7 + 95.6 |
102.6 |
| 28) |
3 * -8 |
-24 |
| 29) |
-38 - 561 |
-599 |
| 30) |
0.02 + -8 |
-7.98 |
| 31) |
-6 - 29 |
-35 |
| 32) |
34 - 6.17 |
27.83 |
| 33) |
0.3 + -62.4 |
-62.1 |
| 34) |
36 + 6 |
42 |
| 35) |
5 - 4 |
1 |
| 36) |
0.18 + 0.016 |
0.196 |
| 37) |
7 + -64 |
-57 |
| 38) |
1.9 + 0.3 |
2.2 |
| 39) |
-63.5 - -1 |
-62.5 |
| 40) |
5877 + 4 |
5881 |
| 41) |
18 * 0.65 |
11.7 |
| 42) |
357.6 + 240 |
597.6 |
| 43) |
6 * -0.84 |
-5.04 |
| 44) |
-0.775 - -8 |
7.225 |
| 45) |
22 - 0.6 |
21.4 |
| 46) |
4 * 69 |
276 |
| 47) |
-8 - 0.62 |
-8.62 |
| 48) |
3 + 0.2 |
3.2 |
| 49) |
-0.1 - 0.6 |
-0.7 |
| 50) |
6 - 0.808 |
5.192 |
| 51) |
25 + -7 |
18 |
| 52) |
0.055 * -86 |
-4.73 |
| 53) |
98 * 6.2 |
607.6 |
| 54) |
0.9 - 51.8 |
-50.9 |
| 55) |
0.15 + 99 |
99.15 |
| 56) |
600.8 - -137 |
737.8 |
| 57) |
1 * 0.6 |
0.6 |
| 58) |
-5.2 * 3 |
-15.6 |
| 59) |
-585.8 + 590 |
4.2 |
| 60) |
0.61 / 0.04 |
15.25 |
| 61) |
9524 - 3 |
9521 |
| 62) |
9541 + -7385 |
2156 |
| 63) |
-0.004 + 0.04 |
0.036 |
| 64) |
2.4 + 0.025 |
2.425 |
| 65) |
0.535 - 0.01 |
0.525 |
| 66) |
999 + -6.1 |
992.9 |
| 67) |
7 * 1.6 |
11.2 |
| 68) |
3.626 + -2.1 |
1.526 |
| 69) |
0.09 - 0.29 |
-0.2 |
| 70) |
15.06 - 0.6 |
14.46 |
| 71) |
770 + 0.9 |
770.9 |
| 72) |
0.7 - -97 |
97.7 |
| 73) |
3 + 858 |
861 |
| 74) |
26 * -0.6 |
-15.6 |
| 75) |
-990 - -651 |
-339 |
| 76) |
5 + 0.066 |
5.066 |
| 77) |
-1 * -5.7 |
5.7 |
| 78) |
52.39 + -3 |
49.39 |
| 79) |
3576 / -6 |
-596 |
| 80) |
22 * 0.74 |
16.28 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized