
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) |
84 / 2.5 |
33.6 |
| 2) |
23 * 17 |
391 |
| 3) |
-6.6 - 43 |
-49.6 |
| 4) |
35 * 44 |
1540 |
| 5) |
3 * 94 |
282 |
| 6) |
8.425 - 0.002 |
8.423 |
| 7) |
-2 / 0.1 |
-20 |
| 8) |
64.8 * 0.5 |
32.4 |
| 9) |
90 - 149 |
-59 |
| 10) |
60 - 711 |
-651 |
| 11) |
-2.3 - 0.05 |
-2.35 |
| 12) |
76.62 - 1 |
75.62 |
| 13) |
0.42 + -8 |
-7.58 |
| 14) |
0.4 / -20 |
-0.02 |
| 15) |
-0.044 / -0.8 |
0.055 |
| 16) |
2706 - 6 |
2700 |
| 17) |
605 + -0.3 |
604.7 |
| 18) |
-6 * 7 |
-42 |
| 19) |
0.5 - -569.5 |
570 |
| 20) |
0.001 + 7 |
7.001 |
| 21) |
9.9 + 490.5 |
500.4 |
| 22) |
5 - -0.05 |
5.05 |
| 23) |
6.4 + 1.94 |
8.34 |
| 24) |
-0.28 * 19 |
-5.32 |
| 25) |
4.86 + 0.089 |
4.949 |
| 26) |
73 * 37 |
2701 |
| 27) |
4.7 + -8.04 |
-3.34 |
| 28) |
1.4 - 69 |
-67.6 |
| 29) |
67.6 / 2 |
33.8 |
| 30) |
-6 - -731.6 |
725.6 |
| 31) |
-19 / 1 |
-19 |
| 32) |
25 * -4 |
-100 |
| 33) |
0.084 + 0.02 |
0.104 |
| 34) |
0.57 * -160 |
-91.2 |
| 35) |
11.6 + 0.05 |
11.65 |
| 36) |
-6.4 * 0.3 |
-1.92 |
| 37) |
7 - 9 |
-2 |
| 38) |
40 * -0.19 |
-7.6 |
| 39) |
3 + 8 |
11 |
| 40) |
0.544 - -6.6 |
7.144 |
| 41) |
-100 + 17 |
-83 |
| 42) |
95 - 94 |
1 |
| 43) |
-0.2 * 0.2 |
-0.04 |
| 44) |
-0.074 * -6 |
0.444 |
| 45) |
43.2 + -8 |
35.2 |
| 46) |
28 + -12 |
16 |
| 47) |
2 * 14.61 |
29.22 |
| 48) |
746 - 6 |
740 |
| 49) |
0.08 * 953 |
76.24 |
| 50) |
98 * 59.5 |
5831 |
| 51) |
0.3 - -312 |
312.3 |
| 52) |
7 + -4.7 |
2.3 |
| 53) |
6.8 + 0.2 |
7 |
| 54) |
-2.66 * -37 |
98.42 |
| 55) |
0.8 + 8.74 |
9.54 |
| 56) |
3 / 0.01 |
300 |
| 57) |
7 + 0.5 |
7.5 |
| 58) |
1.825 + 4.7 |
6.525 |
| 59) |
39 - -4 |
43 |
| 60) |
5961 + 771 |
6732 |
| 61) |
5 - -0.08 |
5.08 |
| 62) |
485 + 5 |
490 |
| 63) |
-892 * 0.5 |
-446 |
| 64) |
-4 - -16.6 |
12.6 |
| 65) |
29 + -122 |
-93 |
| 66) |
50.17 + -3.28 |
46.89 |
| 67) |
5 * -9 |
-45 |
| 68) |
1.8 + 0.009 |
1.809 |
| 69) |
81 - -8913 |
8994 |
| 70) |
61 + 0.8 |
61.8 |
| 71) |
-2 - 0.7 |
-2.7 |
| 72) |
91.4 + 339.8 |
431.2 |
| 73) |
0.1 * 0.5 |
0.05 |
| 74) |
2 + 1 |
3 |
| 75) |
3 - 819 |
-816 |
| 76) |
-3.64 * -0.5 |
1.82 |
| 77) |
9368 - 93 |
9275 |
| 78) |
4 + 33 |
37 |
| 79) |
9 + 8069 |
8078 |
| 80) |
7364 - -187 |
7551 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized