
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) |
-2 / 2 |
-1 |
| 2) |
2 + 6835 |
6837 |
| 3) |
964 + 86 |
1050 |
| 4) |
-76 - 2 |
-78 |
| 5) |
7 + 8 |
15 |
| 6) |
389 - 26 |
363 |
| 7) |
-4 - 13 |
-17 |
| 8) |
56 / 0.008 |
7000 |
| 9) |
41.12 + -6 |
35.12 |
| 10) |
4 + 284 |
288 |
| 11) |
9 * 3 |
27 |
| 12) |
0.06 + 4 |
4.06 |
| 13) |
64 - 6 |
58 |
| 14) |
91 + 2 |
93 |
| 15) |
0.03 * -5 |
-0.15 |
| 16) |
0.03 - -0.494 |
0.524 |
| 17) |
131 + 42 |
173 |
| 18) |
9.41 + 6 |
15.41 |
| 19) |
78.6 - 36.69 |
41.91 |
| 20) |
0.3 / -0.005 |
-60 |
| 21) |
459.6 + 0.4 |
460 |
| 22) |
7 / 4 |
1.75 |
| 23) |
4 - 22 |
-18 |
| 24) |
0.8 - 1 |
-0.2 |
| 25) |
6.42 + -2.8 |
3.62 |
| 26) |
7157 - 3561 |
3596 |
| 27) |
5 - 0.06 |
4.94 |
| 28) |
25 + -78 |
-53 |
| 29) |
70 * -7 |
-490 |
| 30) |
179.2 * 0.25 |
44.8 |
| 31) |
0.1 - 0.12 |
-0.02 |
| 32) |
-4 / 0.08 |
-50 |
| 33) |
-3 + -38 |
-41 |
| 34) |
3.72 - 1 |
2.72 |
| 35) |
-1.7 * -362 |
615.4 |
| 36) |
-7759 + 9063 |
1304 |
| 37) |
-8 - -71 |
63 |
| 38) |
-8 + 4642 |
4634 |
| 39) |
0.22 * 9.9 |
2.178 |
| 40) |
-26.1 - 7 |
-33.1 |
| 41) |
-5 * 39 |
-195 |
| 42) |
-58 * 0.09 |
-5.22 |
| 43) |
1 + -0.7 |
0.3 |
| 44) |
-0.04 * -46 |
1.84 |
| 45) |
4 / -0.32 |
-12.5 |
| 46) |
-3 - 0.03 |
-3.03 |
| 47) |
-82 / 0.1 |
-820 |
| 48) |
7.912 + 0.088 |
8 |
| 49) |
609 / 37.5 |
16.24 |
| 50) |
5823 - 539 |
5284 |
| 51) |
65 / 52 |
1.25 |
| 52) |
5 + 0.24 |
5.24 |
| 53) |
-0.01 - 0.3 |
-0.31 |
| 54) |
-8 + 700 |
692 |
| 55) |
3.6 * 590 |
2124 |
| 56) |
-0.7 / -0.28 |
2.5 |
| 57) |
8.4 - 0.8 |
7.6 |
| 58) |
5 * 62 |
310 |
| 59) |
5790 - 2485 |
3305 |
| 60) |
344 * 7 |
2408 |
| 61) |
0.45 + 0.08 |
0.53 |
| 62) |
9 - 7.18 |
1.82 |
| 63) |
0.6 * 626 |
375.6 |
| 64) |
-13 * 6.6 |
-85.8 |
| 65) |
-62.2 + 8.5 |
-53.7 |
| 66) |
3 * 6 |
18 |
| 67) |
4.7 - -21.36 |
26.06 |
| 68) |
0.2 * -479 |
-95.8 |
| 69) |
0.009 + 5.8 |
5.809 |
| 70) |
1 * 0.74 |
0.74 |
| 71) |
31.1 + 0.03 |
31.13 |
| 72) |
-0.034 - -2 |
1.966 |
| 73) |
0.6 * -83.5 |
-50.1 |
| 74) |
7 + 0.01 |
7.01 |
| 75) |
-9.7 - -279 |
269.3 |
| 76) |
39.5 + 0.02 |
39.52 |
| 77) |
9 - 46 |
-37 |
| 78) |
1.4 - 38 |
-36.6 |
| 79) |
0.3 * 58 |
17.4 |
| 80) |
4.5 + -84 |
-79.5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized