
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 + 6.2 |
0.2 |
| 2) |
-82 - -235 |
153 |
| 3) |
5936 + 32 |
5968 |
| 4) |
-0.088 + -0.002 |
-0.09 |
| 5) |
0.7 + 860 |
860.7 |
| 6) |
0.9 - 0.03 |
0.87 |
| 7) |
-1.68 + 6 |
4.32 |
| 8) |
0.06 / 1 |
0.06 |
| 9) |
0.42 * -6 |
-2.52 |
| 10) |
406 - -9 |
415 |
| 11) |
0.084 / 0.4 |
0.21 |
| 12) |
0.31 - -27.49 |
27.8 |
| 13) |
0.07 + 8.635 |
8.705 |
| 14) |
87 * -7 |
-609 |
| 15) |
9.471 + 0.09 |
9.561 |
| 16) |
90 + 1 |
91 |
| 17) |
79 + 144.1 |
223.1 |
| 18) |
4 - -0.658 |
4.658 |
| 19) |
-1.01 * -9 |
9.09 |
| 20) |
88 - 99.8 |
-11.8 |
| 21) |
7 * 0.414 |
2.898 |
| 22) |
-2 + 6.1 |
4.1 |
| 23) |
934.6 - 9 |
925.6 |
| 24) |
75.1 - -7 |
82.1 |
| 25) |
40 * -0.004 |
-0.16 |
| 26) |
-1 * -3 |
3 |
| 27) |
2 - 38 |
-36 |
| 28) |
0.003 + 2.92 |
2.923 |
| 29) |
-0.04 / 0.008 |
-5 |
| 30) |
72 + -4 |
68 |
| 31) |
6 - 1 |
5 |
| 32) |
77.5 + 168 |
245.5 |
| 33) |
-0.003 * -4 |
0.012 |
| 34) |
0.451 - 0.009 |
0.442 |
| 35) |
0.3 + 8.98 |
9.28 |
| 36) |
2252 - -966 |
3218 |
| 37) |
14 - -7 |
21 |
| 38) |
75 - 5 |
70 |
| 39) |
60 + 7 |
67 |
| 40) |
0.85 - -4.01 |
4.86 |
| 41) |
0.018 * 0.5 |
0.009 |
| 42) |
-826 + 4814 |
3988 |
| 43) |
-5 - 123 |
-128 |
| 44) |
7919 * 0.001 |
7.919 |
| 45) |
-8 + 55 |
47 |
| 46) |
-780 + -3 |
-783 |
| 47) |
2 * -0.535 |
-1.07 |
| 48) |
-0.35 - 7.79 |
-8.14 |
| 49) |
0.01 - 4 |
-3.99 |
| 50) |
6 + 644 |
650 |
| 51) |
81.8 - -6.15 |
87.95 |
| 52) |
-2.5 * 0.156 |
-0.39 |
| 53) |
120.5 + -99.7 |
20.8 |
| 54) |
-0.01 * 73 |
-0.73 |
| 55) |
194 + -293 |
-99 |
| 56) |
638 + 0.1 |
638.1 |
| 57) |
0.7 + 110 |
110.7 |
| 58) |
29.6 + -4.4 |
25.2 |
| 59) |
44 - 0.58 |
43.42 |
| 60) |
-56.67 - -48 |
-8.67 |
| 61) |
-62 * 7 |
-434 |
| 62) |
92 - 67 |
25 |
| 63) |
174 / -0.3 |
-580 |
| 64) |
-26 + 0.1 |
-25.9 |
| 65) |
0.004 + 2 |
2.004 |
| 66) |
0.05 * -28 |
-1.4 |
| 67) |
36.5 - 0.18 |
36.32 |
| 68) |
3.88 + 27 |
30.88 |
| 69) |
16 - 50.8 |
-34.8 |
| 70) |
5 - -75.68 |
80.68 |
| 71) |
-53 + -2 |
-55 |
| 72) |
7 + 0.25 |
7.25 |
| 73) |
-3 + 5244 |
5241 |
| 74) |
428 + -479 |
-51 |
| 75) |
8 + -5.5 |
2.5 |
| 76) |
0.008 - -0.007 |
0.015 |
| 77) |
3 - 48 |
-45 |
| 78) |
-9.1 + 700.9 |
691.8 |
| 79) |
-0.5 * -0.4 |
0.2 |
| 80) |
10.02 / 0.04 |
250.5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized