
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) |
-34 - 30 |
-64 |
| 2) |
3.58 * 6 |
21.48 |
| 3) |
79.32 + -7 |
72.32 |
| 4) |
-5 + 78.9 |
73.9 |
| 5) |
0.637 + 0.072 |
0.709 |
| 6) |
2362 - 8 |
2354 |
| 7) |
226 - 566 |
-340 |
| 8) |
-5.1 + -0.03 |
-5.13 |
| 9) |
-0.005 - -0.19 |
0.185 |
| 10) |
3.6 - -5 |
8.6 |
| 11) |
2267 + 2 |
2269 |
| 12) |
2.7 - -0.2 |
2.9 |
| 13) |
538 * 7 |
3766 |
| 14) |
173.7 + 814 |
987.7 |
| 15) |
8.8 + 2.6 |
11.4 |
| 16) |
376 + 30 |
406 |
| 17) |
-0.06 * -56 |
3.36 |
| 18) |
7.4 + 905.1 |
912.5 |
| 19) |
-0.132 * -605 |
79.86 |
| 20) |
610.1 - -8 |
618.1 |
| 21) |
162 + 1 |
163 |
| 22) |
50 * 0.981 |
49.05 |
| 23) |
25 - 11.8 |
13.2 |
| 24) |
-0.793 + 1 |
0.207 |
| 25) |
45 - 715 |
-670 |
| 26) |
-0.7 * 70 |
-49 |
| 27) |
7 * 0.053 |
0.371 |
| 28) |
-1 + 3.57 |
2.57 |
| 29) |
-4 * -0.039 |
0.156 |
| 30) |
0.369 + 1 |
1.369 |
| 31) |
0.018 * 91 |
1.638 |
| 32) |
0.099 * 60 |
5.94 |
| 33) |
-0.05 * -2402 |
120.1 |
| 34) |
5 - -4737 |
4742 |
| 35) |
4.6 - -45 |
49.6 |
| 36) |
0.002 + 9 |
9.002 |
| 37) |
-0.02 * -9 |
0.18 |
| 38) |
190 + 9 |
199 |
| 39) |
9 * 5 |
45 |
| 40) |
0.06 + -10 |
-9.94 |
| 41) |
153 * 0.035 |
5.355 |
| 42) |
-0.05 + 0.06 |
0.01 |
| 43) |
84.9 - -4.83 |
89.73 |
| 44) |
87 + 25 |
112 |
| 45) |
64 * 0.7 |
44.8 |
| 46) |
1.82 - -54 |
55.82 |
| 47) |
9.9 + 94 |
103.9 |
| 48) |
3024 - 371 |
2653 |
| 49) |
-0.04 / -0.01 |
4 |
| 50) |
27 * 0.351 |
9.477 |
| 51) |
7 - 0.4 |
6.6 |
| 52) |
-0.04 + 0.4 |
0.36 |
| 53) |
-0.3 - -0.392 |
0.092 |
| 54) |
10.19 + 19.31 |
29.5 |
| 55) |
0.95 + 5.451 |
6.401 |
| 56) |
0.003 * 7 |
0.021 |
| 57) |
1 - 2.8 |
-1.8 |
| 58) |
1 + 5.2 |
6.2 |
| 59) |
0.09 - 2.32 |
-2.23 |
| 60) |
510 / 6 |
85 |
| 61) |
98.13 + 0.33 |
98.46 |
| 62) |
9 - 0.007 |
8.993 |
| 63) |
-51 + -1 |
-52 |
| 64) |
-0.454 / -2 |
0.227 |
| 65) |
0.5 - -0.7 |
1.2 |
| 66) |
2 - -52 |
54 |
| 67) |
-8 + 996.8 |
988.8 |
| 68) |
-200 - -6103 |
5903 |
| 69) |
381 / 0.2 |
1905 |
| 70) |
1481 + 3056 |
4537 |
| 71) |
-44 - 32.4 |
-76.4 |
| 72) |
7 / 0.7 |
10 |
| 73) |
2 + -45 |
-43 |
| 74) |
0.8 - 0.9 |
-0.1 |
| 75) |
0.1 - 0.8 |
-0.7 |
| 76) |
4 + 79.79 |
83.79 |
| 77) |
18 * -2 |
-36 |
| 78) |
226 + 5 |
231 |
| 79) |
2.99 + 0.79 |
3.78 |
| 80) |
6 - -773 |
779 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized