
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) |
6 - 7.9 |
-1.9 |
| 2) |
18 + -17 |
1 |
| 3) |
477 + 388 |
865 |
| 4) |
8 + 71 |
79 |
| 5) |
-8 - 0.6 |
-8.6 |
| 6) |
0.006 + -0.002 |
0.004 |
| 7) |
-16 - -3497 |
3481 |
| 8) |
94 + 78 |
172 |
| 9) |
2449 + 434 |
2883 |
| 10) |
0.5 * 661 |
330.5 |
| 11) |
57.33 + 8 |
65.33 |
| 12) |
5 - -7 |
12 |
| 13) |
-73 + 7.6 |
-65.4 |
| 14) |
-86 - 64 |
-150 |
| 15) |
-46 + 58 |
12 |
| 16) |
4159 - -6 |
4165 |
| 17) |
64 - 7 |
57 |
| 18) |
9 + 0.09 |
9.09 |
| 19) |
-7.1 - 9 |
-16.1 |
| 20) |
9 - 98 |
-89 |
| 21) |
0.76 + 92.03 |
92.79 |
| 22) |
1 * 921 |
921 |
| 23) |
5441 + 810 |
6251 |
| 24) |
4.08 - 7 |
-2.92 |
| 25) |
3.7 + -70.3 |
-66.6 |
| 26) |
-0.4 * -2.095 |
0.838 |
| 27) |
-404 + 2 |
-402 |
| 28) |
0.7 * 7 |
4.9 |
| 29) |
7 - 3.855 |
3.145 |
| 30) |
340 - 2.4 |
337.6 |
| 31) |
-0.096 - -3 |
2.904 |
| 32) |
708 + 70 |
778 |
| 33) |
-0.07 - 0.11 |
-0.18 |
| 34) |
-72.2 - 0.3 |
-72.5 |
| 35) |
54.7 - 0.59 |
54.11 |
| 36) |
0.063 + 7 |
7.063 |
| 37) |
1 + -2.1 |
-1.1 |
| 38) |
307 * 2 |
614 |
| 39) |
2.05 + 0.42 |
2.47 |
| 40) |
-272 - -7 |
-265 |
| 41) |
0.305 * 0.4 |
0.122 |
| 42) |
-208.7 - -421 |
212.3 |
| 43) |
-0.08 + 0.71 |
0.63 |
| 44) |
65.32 - 4.26 |
61.06 |
| 45) |
1 + -471 |
-470 |
| 46) |
612 + 21 |
633 |
| 47) |
-77 - 63 |
-140 |
| 48) |
-0.9 * 47 |
-42.3 |
| 49) |
3.278 + 0.5 |
3.778 |
| 50) |
22 - 5 |
17 |
| 51) |
-9 + 0.47 |
-8.53 |
| 52) |
107.3 + -77 |
30.3 |
| 53) |
0.214 + 8.9 |
9.114 |
| 54) |
-556 + 815 |
259 |
| 55) |
854 + 79 |
933 |
| 56) |
-487 + -54 |
-541 |
| 57) |
3 * -17 |
-51 |
| 58) |
-6 * -2 |
12 |
| 59) |
-70 / 8 |
-8.75 |
| 60) |
0.42 * 35 |
14.7 |
| 61) |
96 / -8 |
-12 |
| 62) |
5 + 98.7 |
103.7 |
| 63) |
0.25 + 0.087 |
0.337 |
| 64) |
-62 - -0.8 |
-61.2 |
| 65) |
71 + -0.7 |
70.3 |
| 66) |
-0.1 - 8 |
-8.1 |
| 67) |
6926 + 937 |
7863 |
| 68) |
76 - 0.01 |
75.99 |
| 69) |
7.1 + 0.092 |
7.192 |
| 70) |
995 - 7 |
988 |
| 71) |
-0.6 + 99 |
98.4 |
| 72) |
0.17 * 30 |
5.1 |
| 73) |
0.5 + -33 |
-32.5 |
| 74) |
91 - -0.51 |
91.51 |
| 75) |
66 + 5.48 |
71.48 |
| 76) |
0.007 + 8 |
8.007 |
| 77) |
6.924 + 1 |
7.924 |
| 78) |
-118 + -3 |
-121 |
| 79) |
0.04 / 10 |
0.004 |
| 80) |
-6 + 89 |
83 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized