
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.1 - 0.2 |
-0.1 |
| 2) |
87 + -9 |
78 |
| 3) |
5 * 6 |
30 |
| 4) |
7.4 + 1.7 |
9.1 |
| 5) |
2310 / 7 |
330 |
| 6) |
1 - -6.757 |
7.757 |
| 7) |
39 / 0.02 |
1950 |
| 8) |
-2 + 4.667 |
2.667 |
| 9) |
0.014 + 3.28 |
3.294 |
| 10) |
0.2 - -0.75 |
0.95 |
| 11) |
-5 * -1 |
5 |
| 12) |
-0.694 + 2.4 |
1.706 |
| 13) |
-0.09 / 0.075 |
-1.2 |
| 14) |
92.3 - -0.7 |
93 |
| 15) |
7 / 0.001 |
7000 |
| 16) |
216.3 + 486 |
702.3 |
| 17) |
-6 - 16 |
-22 |
| 18) |
-1 * 1 |
-1 |
| 19) |
23.3 + 196.2 |
219.5 |
| 20) |
-7 + 586 |
579 |
| 21) |
0.06 + 7 |
7.06 |
| 22) |
1.711 - 0.5 |
1.211 |
| 23) |
3 - 699 |
-696 |
| 24) |
-3.5 + 659.9 |
656.4 |
| 25) |
-861 - 9 |
-870 |
| 26) |
562.2 + 1 |
563.2 |
| 27) |
-0.018 + 0.07 |
0.052 |
| 28) |
56 - 73 |
-17 |
| 29) |
339 + -899 |
-560 |
| 30) |
-0.03 * 3 |
-0.09 |
| 31) |
3 + 9.1 |
12.1 |
| 32) |
0.04 * -8 |
-0.32 |
| 33) |
0.786 - -9 |
9.786 |
| 34) |
893 - 6 |
887 |
| 35) |
-5 + 1 |
-4 |
| 36) |
0.694 + 0.01 |
0.704 |
| 37) |
19 / 0.05 |
380 |
| 38) |
-92 * 0.5 |
-46 |
| 39) |
19.1 - 1 |
18.1 |
| 40) |
3 * -3 |
-9 |
| 41) |
87 + -7.5 |
79.5 |
| 42) |
2 - -0.003 |
2.003 |
| 43) |
-154 + 6 |
-148 |
| 44) |
89 * 5.8 |
516.2 |
| 45) |
0.8 * -5.1 |
-4.08 |
| 46) |
160 * -3 |
-480 |
| 47) |
175.6 - 0.9 |
174.7 |
| 48) |
124 + 6067 |
6191 |
| 49) |
-8 - -0.65 |
-7.35 |
| 50) |
-13 - -640 |
627 |
| 51) |
0.2 + 0.005 |
0.205 |
| 52) |
168.3 - 9 |
159.3 |
| 53) |
0.12 - -26 |
26.12 |
| 54) |
-615 * -2 |
1230 |
| 55) |
9 * 0.42 |
3.78 |
| 56) |
0.09 + 91.8 |
91.89 |
| 57) |
6.2 * 0.07 |
0.434 |
| 58) |
-0.062 + 7 |
6.938 |
| 59) |
56 - -879 |
935 |
| 60) |
86 + -9 |
77 |
| 61) |
-4 * 233 |
-932 |
| 62) |
8 - 317 |
-309 |
| 63) |
0.029 / -0.004 |
-7.25 |
| 64) |
-28.4 - 0.4 |
-28.8 |
| 65) |
-0.6 + 0.998 |
0.398 |
| 66) |
-0.1 + -37 |
-37.1 |
| 67) |
657 + 60 |
717 |
| 68) |
8 * 81 |
648 |
| 69) |
61 + 14 |
75 |
| 70) |
5 - 0.374 |
4.626 |
| 71) |
6769 + 7 |
6776 |
| 72) |
53 - -7915 |
7968 |
| 73) |
43.13 * 0.2 |
8.626 |
| 74) |
-0.1 * -3424 |
342.4 |
| 75) |
1 + 75.5 |
76.5 |
| 76) |
6 * -3 |
-18 |
| 77) |
8 - 23 |
-15 |
| 78) |
-7.9 + 63 |
55.1 |
| 79) |
8 - -9.8 |
17.8 |
| 80) |
587 * 0.8 |
469.6 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized