
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) |
98 - 10 |
88 |
| 2) |
0.08 - -2 |
2.08 |
| 3) |
129 + -7 |
122 |
| 4) |
-1.1 + 197 |
195.9 |
| 5) |
0.006 * -25 |
-0.15 |
| 6) |
5.353 + 3 |
8.353 |
| 7) |
83 - -35.2 |
118.2 |
| 8) |
-0.04 - 0.71 |
-0.75 |
| 9) |
-2.99 + -0.02 |
-3.01 |
| 10) |
79.7 * 5 |
398.5 |
| 11) |
822 - 50 |
772 |
| 12) |
0.01 * 85 |
0.85 |
| 13) |
11 - 10.2 |
0.8 |
| 14) |
0.42 + 0.057 |
0.477 |
| 15) |
7279 + -61 |
7218 |
| 16) |
82 - 13 |
69 |
| 17) |
0.62 + 2 |
2.62 |
| 18) |
2 * 0.23 |
0.46 |
| 19) |
4.7 - 7 |
-2.3 |
| 20) |
36 + 0.91 |
36.91 |
| 21) |
912 - 7 |
905 |
| 22) |
4 - -3682 |
3686 |
| 23) |
47 * 8 |
376 |
| 24) |
0.144 + 0.04 |
0.184 |
| 25) |
194 + 83 |
277 |
| 26) |
1 * 6 |
6 |
| 27) |
-76 - 2 |
-78 |
| 28) |
0.08 + -1 |
-0.92 |
| 29) |
801 + 8 |
809 |
| 30) |
-838 - 1 |
-839 |
| 31) |
-2 + 92.5 |
90.5 |
| 32) |
3.9 - -0.159 |
4.059 |
| 33) |
9 + 8.64 |
17.64 |
| 34) |
-71 + 5665 |
5594 |
| 35) |
4 - -5022 |
5026 |
| 36) |
3.86 + 4.5 |
8.36 |
| 37) |
990 - 3.5 |
986.5 |
| 38) |
0.986 + 2 |
2.986 |
| 39) |
9 - 0.698 |
8.302 |
| 40) |
0.2 + 507.1 |
507.3 |
| 41) |
0.75 + 4 |
4.75 |
| 42) |
796 - 9 |
787 |
| 43) |
0.001 * 2 |
0.002 |
| 44) |
-37 - -71 |
34 |
| 45) |
8 * 0.435 |
3.48 |
| 46) |
-1.67 + 4.27 |
2.6 |
| 47) |
48 - 0.6 |
47.4 |
| 48) |
13 * 1.5 |
19.5 |
| 49) |
56 + 122.6 |
178.6 |
| 50) |
-28 - 94 |
-122 |
| 51) |
2253 + -9 |
2244 |
| 52) |
28 + -60 |
-32 |
| 53) |
-20 * -0.38 |
7.6 |
| 54) |
763 - 75.4 |
687.6 |
| 55) |
-2.1 * 2 |
-4.2 |
| 56) |
5 * 0.038 |
0.19 |
| 57) |
60.03 - 7 |
53.03 |
| 58) |
6887 + 9 |
6896 |
| 59) |
72 - -735.3 |
807.3 |
| 60) |
-58 / 0.25 |
-232 |
| 61) |
1 * 72 |
72 |
| 62) |
-5 / 1 |
-5 |
| 63) |
-585 + 1 |
-584 |
| 64) |
92 * 4 |
368 |
| 65) |
0.055 - -4 |
4.055 |
| 66) |
0.12 + 0.933 |
1.053 |
| 67) |
50 * -0.04 |
-2 |
| 68) |
43 * -2.2 |
-94.6 |
| 69) |
6 - 0.008 |
5.992 |
| 70) |
4 + 47 |
51 |
| 71) |
0.26 + -0.002 |
0.258 |
| 72) |
-1 / 0.005 |
-200 |
| 73) |
-0.39 * -94 |
36.66 |
| 74) |
5.29 + 62 |
67.29 |
| 75) |
94 * 0.106 |
9.964 |
| 76) |
53 - 9.64 |
43.36 |
| 77) |
-0.2 * 1 |
-0.2 |
| 78) |
-72 + -0.5 |
-72.5 |
| 79) |
6.811 - -0.05 |
6.861 |
| 80) |
6.74 - 6 |
0.74 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized