
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) |
7225 - 4 |
7221 |
| 2) |
0.08 - -27.36 |
27.44 |
| 3) |
11 - 0.4 |
10.6 |
| 4) |
8027 + 81 |
8108 |
| 5) |
52 + 3.1 |
55.1 |
| 6) |
-1 / 5 |
-0.2 |
| 7) |
5 * 718.4 |
3592 |
| 8) |
1.41 + -0.861 |
0.549 |
| 9) |
0.08 + 72.15 |
72.23 |
| 10) |
-48 / -1 |
48 |
| 11) |
141 - -78.7 |
219.7 |
| 12) |
63 + -64 |
-1 |
| 13) |
0.1 * 48 |
4.8 |
| 14) |
2 - 44.2 |
-42.2 |
| 15) |
30.51 / 1 |
30.51 |
| 16) |
124 + 52 |
176 |
| 17) |
7 * 11 |
77 |
| 18) |
393 - 239.4 |
153.6 |
| 19) |
534.6 + 449 |
983.6 |
| 20) |
4566 / 761 |
6 |
| 21) |
237 * 0.01 |
2.37 |
| 22) |
2 + -724 |
-722 |
| 23) |
3 + -9 |
-6 |
| 24) |
8 + -96 |
-88 |
| 25) |
3 * 352 |
1056 |
| 26) |
86 - 0.4 |
85.6 |
| 27) |
94 - -4 |
98 |
| 28) |
7 - 0.56 |
6.44 |
| 29) |
477 + 7333 |
7810 |
| 30) |
1 + -3 |
-2 |
| 31) |
8 * -21 |
-168 |
| 32) |
1075 * 6.8 |
7310 |
| 33) |
-0.09 - 0.05 |
-0.14 |
| 34) |
-9 * -8 |
72 |
| 35) |
5679 + 57 |
5736 |
| 36) |
-0.99 - 8.79 |
-9.78 |
| 37) |
-9 - 77.4 |
-86.4 |
| 38) |
-217 / 7 |
-31 |
| 39) |
68 - 9.9 |
58.1 |
| 40) |
0.23 + -3 |
-2.77 |
| 41) |
1 * 4.11 |
4.11 |
| 42) |
0.004 + 3 |
3.004 |
| 43) |
8 - 0.03 |
7.97 |
| 44) |
-5 - 787 |
-792 |
| 45) |
78.7 - -80 |
158.7 |
| 46) |
31.7 + 9 |
40.7 |
| 47) |
7.4 - 0.2 |
7.2 |
| 48) |
12.7 + 0.2 |
12.9 |
| 49) |
516 - -850 |
1366 |
| 50) |
-5 + 6769 |
6764 |
| 51) |
-75.5 + 8 |
-67.5 |
| 52) |
-60 + -49 |
-109 |
| 53) |
8.918 + -0.02 |
8.898 |
| 54) |
4.3 - 3.427 |
0.873 |
| 55) |
223 + 4.1 |
227.1 |
| 56) |
9683 - 3 |
9680 |
| 57) |
147 + -4 |
143 |
| 58) |
39.7 - -0.8 |
40.5 |
| 59) |
3868 - 15 |
3853 |
| 60) |
-60 + 281.2 |
221.2 |
| 61) |
86.3 + -0.03 |
86.27 |
| 62) |
1.4 + -0.79 |
0.61 |
| 63) |
-20 + 0.3 |
-19.7 |
| 64) |
8139 + -2 |
8137 |
| 65) |
0.09 - -5 |
5.09 |
| 66) |
0.013 + 7 |
7.013 |
| 67) |
0.002 + 1 |
1.002 |
| 68) |
0.8 + 39 |
39.8 |
| 69) |
8 + -1.13 |
6.87 |
| 70) |
-63 + 7338 |
7275 |
| 71) |
549 - -8 |
557 |
| 72) |
551 - -6 |
557 |
| 73) |
7 + 889.8 |
896.8 |
| 74) |
-68 + -612 |
-680 |
| 75) |
7548 - 3 |
7545 |
| 76) |
1 + 402 |
403 |
| 77) |
0.09 * 402 |
36.18 |
| 78) |
-8 + -0.38 |
-8.38 |
| 79) |
46.4 - 0.08 |
46.32 |
| 80) |
-2.8 + 8 |
5.2 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized