
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) |
-3 - -93 |
90 |
| 2) |
-2 * 0.3 |
-0.6 |
| 3) |
0.7 - 0.05 |
0.65 |
| 4) |
6 + -4.7 |
1.3 |
| 5) |
0.4 * 0.43 |
0.172 |
| 6) |
-7.3 + -86 |
-93.3 |
| 7) |
0.02 - 0.3 |
-0.28 |
| 8) |
0.002 - -0.008 |
0.01 |
| 9) |
-75 * 0.06 |
-4.5 |
| 10) |
7821 + -5 |
7816 |
| 11) |
-96 - -9 |
-87 |
| 12) |
-62 + 37 |
-25 |
| 13) |
0.9 + -0.006 |
0.894 |
| 14) |
-12 - 1 |
-13 |
| 15) |
72 - -966 |
1038 |
| 16) |
3 * -1 |
-3 |
| 17) |
-51 / -0.6 |
85 |
| 18) |
-2 + 93 |
91 |
| 19) |
-74 * -0.2 |
14.8 |
| 20) |
-2 + 50 |
48 |
| 21) |
0.095 * 0.6 |
0.057 |
| 22) |
28.8 + 0.22 |
29.02 |
| 23) |
30 * -3 |
-90 |
| 24) |
-65 - 508 |
-573 |
| 25) |
781 * 0.7 |
546.7 |
| 26) |
-4.7 - -238 |
233.3 |
| 27) |
-0.2 - 3.43 |
-3.63 |
| 28) |
-7 - -9.28 |
2.28 |
| 29) |
33 - -0.06 |
33.06 |
| 30) |
0.022 / 0.004 |
5.5 |
| 31) |
0.004 * 37 |
0.148 |
| 32) |
4 - -7198 |
7202 |
| 33) |
8689 + -11 |
8678 |
| 34) |
0.04 * -71 |
-2.84 |
| 35) |
-48.5 - 7.7 |
-56.2 |
| 36) |
0.003 + 3 |
3.003 |
| 37) |
6342 - -5 |
6347 |
| 38) |
7 - 93 |
-86 |
| 39) |
785 + 434 |
1219 |
| 40) |
6 / 0.06 |
100 |
| 41) |
90 - -63.4 |
153.4 |
| 42) |
0.06 * 8.3 |
0.498 |
| 43) |
558 + 64 |
622 |
| 44) |
4 * 0.79 |
3.16 |
| 45) |
6.85 / 0.02 |
342.5 |
| 46) |
0.8 - -0.18 |
0.98 |
| 47) |
516 + 0.2 |
516.2 |
| 48) |
4.1 + 60 |
64.1 |
| 49) |
74.06 / 1 |
74.06 |
| 50) |
1 * 0.453 |
0.453 |
| 51) |
-38 + 9.6 |
-28.4 |
| 52) |
3062 * 0.1 |
306.2 |
| 53) |
5.9 - 25 |
-19.1 |
| 54) |
-5 + 64.5 |
59.5 |
| 55) |
-845 - 4 |
-849 |
| 56) |
7 * -7 |
-49 |
| 57) |
3 / 0.005 |
600 |
| 58) |
5 - -0.038 |
5.038 |
| 59) |
25 * 16 |
400 |
| 60) |
-8 + 0.06 |
-7.94 |
| 61) |
9.9 + 2.5 |
12.4 |
| 62) |
95 * 5 |
475 |
| 63) |
6 + -97 |
-91 |
| 64) |
233 - 50 |
183 |
| 65) |
-34 * -0.082 |
2.788 |
| 66) |
82 + 577 |
659 |
| 67) |
0.8 - -908 |
908.8 |
| 68) |
68.02 + -0.5 |
67.52 |
| 69) |
9 * 91 |
819 |
| 70) |
0.8 - 81.3 |
-80.5 |
| 71) |
0.863 * 3 |
2.589 |
| 72) |
8956 - 29 |
8927 |
| 73) |
-0.071 + 0.001 |
-0.07 |
| 74) |
81 / 5 |
16.2 |
| 75) |
-6 + 7 |
1 |
| 76) |
-2.32 - -2.6 |
0.28 |
| 77) |
9 + -73.3 |
-64.3 |
| 78) |
748 - 99 |
649 |
| 79) |
87.5 * 6.904 |
604.1 |
| 80) |
99 * 3.6 |
356.4 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized