
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) |
0.2 + 0.38 |
0.58 |
| 2) |
66 * 0.01 |
0.66 |
| 3) |
-0.6 + -3.66 |
-4.26 |
| 4) |
-0.46 * 8 |
-3.68 |
| 5) |
29.7 - 0.03 |
29.67 |
| 6) |
-0.4 + 6.4 |
6 |
| 7) |
571 * 2 |
1142 |
| 8) |
2 + -94 |
-92 |
| 9) |
-9 - -5 |
-4 |
| 10) |
497 + 929 |
1426 |
| 11) |
17 * 7 |
119 |
| 12) |
7.69 * 80 |
615.2 |
| 13) |
-0.06 + 45.75 |
45.69 |
| 14) |
16 - 84 |
-68 |
| 15) |
5 + -1 |
4 |
| 16) |
0.699 + 9 |
9.699 |
| 17) |
7 * 0.5 |
3.5 |
| 18) |
0.19 + 47.3 |
47.49 |
| 19) |
-14.5 + 4.9 |
-9.6 |
| 20) |
19 * 0.063 |
1.197 |
| 21) |
70 + 8 |
78 |
| 22) |
-21 + -173 |
-194 |
| 23) |
-0.1 + 85 |
84.9 |
| 24) |
9693 / 30 |
323.1 |
| 25) |
4100 - -2761 |
6861 |
| 26) |
10 * -1 |
-10 |
| 27) |
3243 + -11 |
3232 |
| 28) |
7.2 / -9 |
-0.8 |
| 29) |
0.5 * 6 |
3 |
| 30) |
-769 * -8 |
6152 |
| 31) |
0.7 - 6.8 |
-6.1 |
| 32) |
6 * 4.6 |
27.6 |
| 33) |
0.009 + 1.9 |
1.909 |
| 34) |
-5695 + 8397 |
2702 |
| 35) |
7.481 - 4 |
3.481 |
| 36) |
-0.01 + 5.177 |
5.167 |
| 37) |
2 - -64 |
66 |
| 38) |
-0.003 / -1 |
0.003 |
| 39) |
0.1 * -751 |
-75.1 |
| 40) |
-0.356 + 7.4 |
7.044 |
| 41) |
589 + 51.8 |
640.8 |
| 42) |
5.5 + -1.52 |
3.98 |
| 43) |
9.8 + -78.3 |
-68.5 |
| 44) |
0.008 / 0.08 |
0.1 |
| 45) |
9022 + 87 |
9109 |
| 46) |
0.4 * 1591 |
636.4 |
| 47) |
-460 - 7 |
-467 |
| 48) |
753 * 0.004 |
3.012 |
| 49) |
109 + -0.2 |
108.8 |
| 50) |
8 / 2 |
4 |
| 51) |
-2 + 69 |
67 |
| 52) |
-1.7 - -0.43 |
-1.27 |
| 53) |
6 + 4 |
10 |
| 54) |
64 * -4 |
-256 |
| 55) |
9 - -90 |
99 |
| 56) |
316 - -30 |
346 |
| 57) |
4 - -0.5 |
4.5 |
| 58) |
90 * 4.8 |
432 |
| 59) |
988 + 258 |
1246 |
| 60) |
0.02 + 0.6 |
0.62 |
| 61) |
8 + 212 |
220 |
| 62) |
70 - 0.7 |
69.3 |
| 63) |
33.4 / 4 |
8.35 |
| 64) |
50 * 2 |
100 |
| 65) |
9 + -6 |
3 |
| 66) |
-16 / 1 |
-16 |
| 67) |
604 + 4028 |
4632 |
| 68) |
0.04 + -2 |
-1.96 |
| 69) |
0.5 / -0.005 |
-100 |
| 70) |
539 + 421 |
960 |
| 71) |
-437 - 13 |
-450 |
| 72) |
2 - 0.04 |
1.96 |
| 73) |
3 + 0.951 |
3.951 |
| 74) |
0.95 * 75 |
71.25 |
| 75) |
5 - 0.73 |
4.27 |
| 76) |
7.228 + -0.007 |
7.221 |
| 77) |
45.95 - 0.9 |
45.05 |
| 78) |
0.05 - -0.315 |
0.365 |
| 79) |
-96 + 24.5 |
-71.5 |
| 80) |
0.007 * 4850 |
33.95 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized