
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) |
9880 * -0.001 |
-9.88 |
| 2) |
33 * 0.75 |
24.75 |
| 3) |
52 + -511 |
-459 |
| 4) |
60.42 + 9 |
69.42 |
| 5) |
57 - -3298 |
3355 |
| 6) |
441 / 0.6 |
735 |
| 7) |
65 - 4.4 |
60.6 |
| 8) |
462 + 556 |
1018 |
| 9) |
-0.06 - 0.03 |
-0.09 |
| 10) |
-5 + 14 |
9 |
| 11) |
-6 - 3 |
-9 |
| 12) |
3.7 * 0.3 |
1.11 |
| 13) |
40 * 89.1 |
3564 |
| 14) |
-37.5 - 2 |
-39.5 |
| 15) |
2.3 - 0.009 |
2.291 |
| 16) |
4.254 + -0.08 |
4.174 |
| 17) |
1550 * 0.05 |
77.5 |
| 18) |
2 / -0.025 |
-80 |
| 19) |
145 - 90 |
55 |
| 20) |
21 - 5 |
16 |
| 21) |
90 / 5 |
18 |
| 22) |
526 * -0.005 |
-2.63 |
| 23) |
6 / 0.02 |
300 |
| 24) |
-1 + -243 |
-244 |
| 25) |
-441 / -0.3 |
1470 |
| 26) |
2.89 + 86 |
88.89 |
| 27) |
-730 / 584 |
-1.25 |
| 28) |
15 + 84 |
99 |
| 29) |
48 + 0.06 |
48.06 |
| 30) |
2.2 + 6.4 |
8.6 |
| 31) |
0.793 + 0.006 |
0.799 |
| 32) |
-3 * 37 |
-111 |
| 33) |
-7 + 9.2 |
2.2 |
| 34) |
-0.107 - -0.39 |
0.283 |
| 35) |
-1 - 34 |
-35 |
| 36) |
504 + 37 |
541 |
| 37) |
88 - 0.08 |
87.92 |
| 38) |
7 - 8 |
-1 |
| 39) |
-65 + -598 |
-663 |
| 40) |
30 * 0.04 |
1.2 |
| 41) |
0.78 + -6 |
-5.22 |
| 42) |
0.06 + 4 |
4.06 |
| 43) |
98.4 - 5.42 |
92.98 |
| 44) |
-4 * -65 |
260 |
| 45) |
41 / 0.4 |
102.5 |
| 46) |
532 + 50 |
582 |
| 47) |
7854 + 29 |
7883 |
| 48) |
-0.003 + 6.9 |
6.897 |
| 49) |
1 - -0.73 |
1.73 |
| 50) |
507 * 1 |
507 |
| 51) |
-81 - 84 |
-165 |
| 52) |
67 - -51 |
118 |
| 53) |
0.37 + -8.99 |
-8.62 |
| 54) |
-0.56 + 0.58 |
0.02 |
| 55) |
-415 + 475 |
60 |
| 56) |
874 / 4 |
218.5 |
| 57) |
12.21 + 43 |
55.21 |
| 58) |
2 - 0.33 |
1.67 |
| 59) |
33 + -2 |
31 |
| 60) |
-19 * -71 |
1349 |
| 61) |
-4 + 27 |
23 |
| 62) |
-4 - 561 |
-565 |
| 63) |
-0.5 + 0.9 |
0.4 |
| 64) |
65 + 0.54 |
65.54 |
| 65) |
0.1 + 0.36 |
0.46 |
| 66) |
-58 - 2.2 |
-60.2 |
| 67) |
-47 * 0.1 |
-4.7 |
| 68) |
-0.485 + 8 |
7.515 |
| 69) |
8 - 0.04 |
7.96 |
| 70) |
0.04 - 0.21 |
-0.17 |
| 71) |
0.48 - 3.9 |
-3.42 |
| 72) |
5 - 9.6 |
-4.6 |
| 73) |
-96 * 0.2 |
-19.2 |
| 74) |
1 + -0.731 |
0.269 |
| 75) |
-26 + -6 |
-32 |
| 76) |
-6 - 924 |
-930 |
| 77) |
0.01 * 171 |
1.71 |
| 78) |
27 / -0.2 |
-135 |
| 79) |
-5.6 * 0.2 |
-1.12 |
| 80) |
7 + 272.9 |
279.9 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized