
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) |
9450 + 224 |
9674 |
| 2) |
0.3 - -0.01 |
0.31 |
| 3) |
0.09 + 0.16 |
0.25 |
| 4) |
38 * 41 |
1558 |
| 5) |
35 + 0.3 |
35.3 |
| 6) |
-27 + 9750 |
9723 |
| 7) |
1 - -74 |
75 |
| 8) |
1.6 + -65.3 |
-63.7 |
| 9) |
7604 - 1 |
7603 |
| 10) |
4 + -3 |
1 |
| 11) |
-78 - -60 |
-18 |
| 12) |
-50.4 * -8 |
403.2 |
| 13) |
4756 - -526 |
5282 |
| 14) |
1 * 0.05 |
0.05 |
| 15) |
9 * 7 |
63 |
| 16) |
-0.08 + -3 |
-3.08 |
| 17) |
9248 - 3 |
9245 |
| 18) |
2.52 + 0.251 |
2.771 |
| 19) |
1 * 8.4 |
8.4 |
| 20) |
59 / 8 |
7.375 |
| 21) |
925 + 405 |
1330 |
| 22) |
9 + 0.02 |
9.02 |
| 23) |
-4 + 0.08 |
-3.92 |
| 24) |
15 - 412 |
-397 |
| 25) |
0.35 + 3 |
3.35 |
| 26) |
2.44 + 29.2 |
31.64 |
| 27) |
5 * 21 |
105 |
| 28) |
-1 + -6 |
-7 |
| 29) |
40.88 - -0.5 |
41.38 |
| 30) |
86 + -28 |
58 |
| 31) |
6 - 7.89 |
-1.89 |
| 32) |
-0.04 + 87 |
86.96 |
| 33) |
2100 + 5121 |
7221 |
| 34) |
-0.8 - 14.6 |
-15.4 |
| 35) |
-5 * 0.8 |
-4 |
| 36) |
9.9 + 70 |
79.9 |
| 37) |
7925 - 3 |
7922 |
| 38) |
59 + 108 |
167 |
| 39) |
8 * 0.54 |
4.32 |
| 40) |
85.62 - -3 |
88.62 |
| 41) |
8.06 + 6 |
14.06 |
| 42) |
0.09 - -4 |
4.09 |
| 43) |
-0.009 + 7 |
6.991 |
| 44) |
838 + -6.5 |
831.5 |
| 45) |
-454 - -666 |
212 |
| 46) |
794 + 29 |
823 |
| 47) |
16.21 - 0.01 |
16.2 |
| 48) |
-3.95 + 9 |
5.05 |
| 49) |
0.3 - -3.55 |
3.85 |
| 50) |
32 * 0.006 |
0.192 |
| 51) |
28 - 77 |
-49 |
| 52) |
-18 + 9 |
-9 |
| 53) |
9700 + 191 |
9891 |
| 54) |
7 * 1 |
7 |
| 55) |
-0.006 / -0.6 |
0.01 |
| 56) |
1.2 + -85 |
-83.8 |
| 57) |
9.92 - -6.14 |
16.06 |
| 58) |
455 / 5 |
91 |
| 59) |
-87 - 17 |
-104 |
| 60) |
-814 / -0.22 |
3700 |
| 61) |
4.1 - 0.834 |
3.266 |
| 62) |
8 + 295 |
303 |
| 63) |
41.31 * 1 |
41.31 |
| 64) |
13 - 8.3 |
4.7 |
| 65) |
9.34 / 0.004 |
2335 |
| 66) |
7 * -2.8 |
-19.6 |
| 67) |
-0.063 + 7 |
6.937 |
| 68) |
7 + 8389 |
8396 |
| 69) |
271 - 9.6 |
261.4 |
| 70) |
4.47 + 0.09 |
4.56 |
| 71) |
431 * 0.001 |
0.431 |
| 72) |
3 + 6 |
9 |
| 73) |
-1 - 422 |
-423 |
| 74) |
-0.04 * 7 |
-0.28 |
| 75) |
-526 + 210 |
-316 |
| 76) |
0.09 * 8 |
0.72 |
| 77) |
-0.01 - -0.906 |
0.896 |
| 78) |
0.34 - -42 |
42.34 |
| 79) |
655 + -41 |
614 |
| 80) |
41 * 0.055 |
2.255 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized