
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) |
-25.6 / 5 |
-5.12 |
| 2) |
40 / 0.032 |
1250 |
| 3) |
7 - 77 |
-70 |
| 4) |
6176 - 92 |
6084 |
| 5) |
0.06 + 0.77 |
0.83 |
| 6) |
0.826 - 0.013 |
0.813 |
| 7) |
-4 / 0.005 |
-800 |
| 8) |
-62 * -0.013 |
0.806 |
| 9) |
1045 * 0.03 |
31.35 |
| 10) |
4.68 + 89 |
93.68 |
| 11) |
2 - 17 |
-15 |
| 12) |
54.1 + -42 |
12.1 |
| 13) |
0.06 - -55.75 |
55.81 |
| 14) |
97 + -7.3 |
89.7 |
| 15) |
-300 / 6 |
-50 |
| 16) |
6.67 + 0.001 |
6.671 |
| 17) |
5488 + -278 |
5210 |
| 18) |
84 - 296 |
-212 |
| 19) |
0.009 * 621 |
5.589 |
| 20) |
19 / 0.2 |
95 |
| 21) |
-843.8 / -1 |
843.8 |
| 22) |
4 + -3.896 |
0.104 |
| 23) |
98 + 49 |
147 |
| 24) |
7968 - 6438 |
1530 |
| 25) |
4.6 + -0.003 |
4.597 |
| 26) |
4730 + -2624 |
2106 |
| 27) |
-2 + 4 |
2 |
| 28) |
-786 / 1 |
-786 |
| 29) |
6 + 2 |
8 |
| 30) |
7 * -0.08 |
-0.56 |
| 31) |
97 + -0.03 |
96.97 |
| 32) |
21 / 0.1 |
210 |
| 33) |
-3 * -6 |
18 |
| 34) |
7 * 654 |
4578 |
| 35) |
-10.3 - -28.9 |
18.6 |
| 36) |
-98 + 8 |
-90 |
| 37) |
-1 * -902 |
902 |
| 38) |
-720 + 94 |
-626 |
| 39) |
0.104 + 0.58 |
0.684 |
| 40) |
7.09 + 0.18 |
7.27 |
| 41) |
1 - -56 |
57 |
| 42) |
222.2 / 2 |
111.1 |
| 43) |
9.92 * 2 |
19.84 |
| 44) |
0.01 + -8 |
-7.99 |
| 45) |
50 * -0.26 |
-13 |
| 46) |
6072 - 4786 |
1286 |
| 47) |
70 + 51.5 |
121.5 |
| 48) |
-9 / -0.003 |
3000 |
| 49) |
69 - 88 |
-19 |
| 50) |
77 - -4.73 |
81.73 |
| 51) |
9.8 * 29 |
284.2 |
| 52) |
0.01 + 7.59 |
7.6 |
| 53) |
0.005 / 1 |
0.005 |
| 54) |
78.99 + -84 |
-5.01 |
| 55) |
0.04 * 17 |
0.68 |
| 56) |
0.008 + 4 |
4.008 |
| 57) |
-2 * -84 |
168 |
| 58) |
0.5 / -0.001 |
-500 |
| 59) |
6.3 * 0.03 |
0.189 |
| 60) |
639 + -1.3 |
637.7 |
| 61) |
57.1 + -96 |
-38.9 |
| 62) |
9 / -4 |
-2.25 |
| 63) |
467 - 783 |
-316 |
| 64) |
0.9 - 1 |
-0.1 |
| 65) |
837 + -7 |
830 |
| 66) |
8 * 0.1 |
0.8 |
| 67) |
-379 + 9 |
-370 |
| 68) |
8.13 + 2 |
10.13 |
| 69) |
1.1 + 0.002 |
1.102 |
| 70) |
0.26 * 71 |
18.46 |
| 71) |
9.35 + 58.66 |
68.01 |
| 72) |
16.9 - 0.4 |
16.5 |
| 73) |
1 - 2 |
-1 |
| 74) |
0.05 * 5240 |
262 |
| 75) |
19.85 - -5 |
24.85 |
| 76) |
97.7 + 683 |
780.7 |
| 77) |
-5 * 0.45 |
-2.25 |
| 78) |
7 + -0.08 |
6.92 |
| 79) |
-58 - 339 |
-397 |
| 80) |
9.01 / 0.34 |
26.5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized