
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) |
55 - 13 |
42 |
| 2) |
-236 - 675 |
-911 |
| 3) |
6852 + 88 |
6940 |
| 4) |
600 - 79 |
521 |
| 5) |
49 + 769 |
818 |
| 6) |
-0.05 + 4 |
3.95 |
| 7) |
-0.98 - 22.42 |
-23.4 |
| 8) |
39 / -10 |
-3.9 |
| 9) |
-8.75 - -15 |
6.25 |
| 10) |
-5 + -13.8 |
-18.8 |
| 11) |
-0.1 * 6.9 |
-0.69 |
| 12) |
-6.3 + 244.4 |
238.1 |
| 13) |
-1 - 3 |
-4 |
| 14) |
0.4 / 4 |
0.1 |
| 15) |
8 / 4 |
2 |
| 16) |
4 * 2.7 |
10.8 |
| 17) |
857 - 2 |
855 |
| 18) |
-8 * 23 |
-184 |
| 19) |
3.62 + 7 |
10.62 |
| 20) |
0.3 * 274.4 |
82.32 |
| 21) |
0.9 + 0.2 |
1.1 |
| 22) |
66 - 84 |
-18 |
| 23) |
406 + 0.7 |
406.7 |
| 24) |
-0.1 - -192 |
191.9 |
| 25) |
-31 * -8 |
248 |
| 26) |
-53 * -2.3 |
121.9 |
| 27) |
99 - -71 |
170 |
| 28) |
105 * 9 |
945 |
| 29) |
0.154 + 0.79 |
0.944 |
| 30) |
29 / -5 |
-5.8 |
| 31) |
0.64 + 0.07 |
0.71 |
| 32) |
0.7 * -22 |
-15.4 |
| 33) |
503 - 417 |
86 |
| 34) |
37 - 94 |
-57 |
| 35) |
25.5 + 71.2 |
96.7 |
| 36) |
5.115 - 1 |
4.115 |
| 37) |
-6 + 9 |
3 |
| 38) |
8 / -0.1 |
-80 |
| 39) |
1707 - 840 |
867 |
| 40) |
-8.1 * 5 |
-40.5 |
| 41) |
79 / 2 |
39.5 |
| 42) |
2439 - -54 |
2493 |
| 43) |
0.57 + 6.546 |
7.116 |
| 44) |
9 - 3.4 |
5.6 |
| 45) |
0.9 - -4.025 |
4.925 |
| 46) |
79 * 0.3 |
23.7 |
| 47) |
-46 / 5 |
-9.2 |
| 48) |
2 - 1 |
1 |
| 49) |
634 - -978 |
1612 |
| 50) |
-0.04 * -185 |
7.4 |
| 51) |
-18 / 0.08 |
-225 |
| 52) |
8784 - 77 |
8707 |
| 53) |
8 + 551 |
559 |
| 54) |
36 + 319 |
355 |
| 55) |
802 / 2 |
401 |
| 56) |
-0.07 - 9 |
-9.07 |
| 57) |
-0.049 + 7 |
6.951 |
| 58) |
-6 * 2 |
-12 |
| 59) |
-4 + 94.8 |
90.8 |
| 60) |
775 * 0.2 |
155 |
| 61) |
403 + -1060 |
-657 |
| 62) |
-60.9 + 829 |
768.1 |
| 63) |
13 / 5 |
2.6 |
| 64) |
-29.26 / -0.007 |
4180 |
| 65) |
-0.5 + 8 |
7.5 |
| 66) |
0.003 - -8 |
8.003 |
| 67) |
-1984 * -2 |
3968 |
| 68) |
-0.69 - -84 |
83.31 |
| 69) |
7 + 0.008 |
7.008 |
| 70) |
-0.471 + 0.071 |
-0.4 |
| 71) |
41.61 - 7 |
34.61 |
| 72) |
654 - -7389 |
8043 |
| 73) |
-8.25 + 0.83 |
-7.42 |
| 74) |
0.056 + 1 |
1.056 |
| 75) |
9553 + -398 |
9155 |
| 76) |
0.8 * 7 |
5.6 |
| 77) |
196 + 8.9 |
204.9 |
| 78) |
-0.02 - -4 |
3.98 |
| 79) |
6 + 7538 |
7544 |
| 80) |
1.14 - -82 |
83.14 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized