
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 + 457.2 |
463.2 |
| 2) |
350 - -811 |
1161 |
| 3) |
15 * 6.02 |
90.3 |
| 4) |
0.004 / 2 |
0.002 |
| 5) |
51 + -37 |
14 |
| 6) |
-649 + -65 |
-714 |
| 7) |
-840 + 46 |
-794 |
| 8) |
2 * 1 |
2 |
| 9) |
16 + 76.3 |
92.3 |
| 10) |
-43.58 + 98 |
54.42 |
| 11) |
0.008 * 3 |
0.024 |
| 12) |
5 * 3.23 |
16.15 |
| 13) |
-2 - -9471 |
9469 |
| 14) |
4 / 0.064 |
62.5 |
| 15) |
-220 * -0.005 |
1.1 |
| 16) |
2.5 / 1 |
2.5 |
| 17) |
-900 + 58 |
-842 |
| 18) |
3.597 - -0.33 |
3.927 |
| 19) |
-0.07 - -3 |
2.93 |
| 20) |
354 + 534 |
888 |
| 21) |
64 + -79.5 |
-15.5 |
| 22) |
6 - 9 |
-3 |
| 23) |
-1 + -5 |
-6 |
| 24) |
-66 - -8 |
-58 |
| 25) |
35 + -0.05 |
34.95 |
| 26) |
-1.23 / -2 |
0.615 |
| 27) |
9.1 + -54 |
-44.9 |
| 28) |
-9 - -3 |
-6 |
| 29) |
1 - 813 |
-812 |
| 30) |
0.428 + 3.418 |
3.846 |
| 31) |
69 + 6.4 |
75.4 |
| 32) |
9929 - 2563 |
7366 |
| 33) |
0.022 + 5.31 |
5.332 |
| 34) |
9 * 6.2 |
55.8 |
| 35) |
5 * 0.06 |
0.3 |
| 36) |
4.1 - -1.69 |
5.79 |
| 37) |
9.98 - -6 |
15.98 |
| 38) |
0.5 + -21 |
-20.5 |
| 39) |
40 * 19.3 |
772 |
| 40) |
5 * 0.015 |
0.075 |
| 41) |
7.86 + -2 |
5.86 |
| 42) |
-0.7 + -86 |
-86.7 |
| 43) |
7.7 * 0.9 |
6.93 |
| 44) |
-1 + -203 |
-204 |
| 45) |
6 / 8 |
0.75 |
| 46) |
4 - 8 |
-4 |
| 47) |
0.7 * -29 |
-20.3 |
| 48) |
17 * 6 |
102 |
| 49) |
-0.8 - -256 |
255.2 |
| 50) |
-0.8 + -25 |
-25.8 |
| 51) |
6 - -5 |
11 |
| 52) |
1 - 0.763 |
0.237 |
| 53) |
4 + 100.3 |
104.3 |
| 54) |
13 - 8.777 |
4.223 |
| 55) |
-9 * 3 |
-27 |
| 56) |
4.8 + -0.8 |
4 |
| 57) |
-9 - -9.939 |
0.939 |
| 58) |
738 * 6 |
4428 |
| 59) |
-0.3 + 38 |
37.7 |
| 60) |
3.55 - -0.401 |
3.951 |
| 61) |
-3 - -1 |
-2 |
| 62) |
0.605 + 0.115 |
0.72 |
| 63) |
76 + 9501 |
9577 |
| 64) |
6 - 0.6 |
5.4 |
| 65) |
-571 - 66 |
-637 |
| 66) |
9 + 6.28 |
15.28 |
| 67) |
0.05 * 3 |
0.15 |
| 68) |
1 + -410 |
-409 |
| 69) |
-0.02 - -1 |
0.98 |
| 70) |
0.3 - -0.089 |
0.389 |
| 71) |
1 + 0.054 |
1.054 |
| 72) |
-19 * 36 |
-684 |
| 73) |
265 * -3 |
-795 |
| 74) |
9388 - 7 |
9381 |
| 75) |
0.06 - 0.007 |
0.053 |
| 76) |
29 - 682 |
-653 |
| 77) |
4 * -0.05 |
-0.2 |
| 78) |
7 / 0.8 |
8.75 |
| 79) |
-0.07 - -0.1 |
0.03 |
| 80) |
0.005 / 0.008 |
0.625 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized