
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) |
-5.93 + 0.54 |
-5.39 |
| 2) |
-3.88 - 6 |
-9.88 |
| 3) |
73 + 8 |
81 |
| 4) |
732 / -4 |
-183 |
| 5) |
43 + -1 |
42 |
| 6) |
682 - 3 |
679 |
| 7) |
72 * 4 |
288 |
| 8) |
784 - 26 |
758 |
| 9) |
-20 * 0.002 |
-0.04 |
| 10) |
0.026 - 0.004 |
0.022 |
| 11) |
82 + 0.47 |
82.47 |
| 12) |
84 / -0.1 |
-840 |
| 13) |
-15 * -0.3 |
4.5 |
| 14) |
0.08 - -0.83 |
0.91 |
| 15) |
149 + 63.4 |
212.4 |
| 16) |
6 - -0.009 |
6.009 |
| 17) |
-318.8 + 485 |
166.2 |
| 18) |
97 - 0.18 |
96.82 |
| 19) |
78 - 0.38 |
77.62 |
| 20) |
-1 * 25 |
-25 |
| 21) |
8 + -6 |
2 |
| 22) |
38 - -1 |
39 |
| 23) |
0.03 * 4 |
0.12 |
| 24) |
38 + 88 |
126 |
| 25) |
-7 + 4 |
-3 |
| 26) |
-0.81 + -3.2 |
-4.01 |
| 27) |
3 - 7 |
-4 |
| 28) |
8.44 * 9 |
75.96 |
| 29) |
3 * 0.77 |
2.31 |
| 30) |
6 + 9056 |
9062 |
| 31) |
-46 * -47 |
2162 |
| 32) |
2487 + 325 |
2812 |
| 33) |
7 - 55 |
-48 |
| 34) |
0.426 + 9 |
9.426 |
| 35) |
0.5 - 0.043 |
0.457 |
| 36) |
-111 + 1246 |
1135 |
| 37) |
1 * -3.2 |
-3.2 |
| 38) |
506 / 4 |
126.5 |
| 39) |
97 - -8 |
105 |
| 40) |
1.9 + -6 |
-4.1 |
| 41) |
4678 - 96 |
4582 |
| 42) |
-6.5 - -4 |
-2.5 |
| 43) |
4.8 / 0.02 |
240 |
| 44) |
-4 * 5.7 |
-22.8 |
| 45) |
-413 + 7919 |
7506 |
| 46) |
0.09 / 0.008 |
11.25 |
| 47) |
-750 - 7 |
-757 |
| 48) |
595 + 8 |
603 |
| 49) |
880 * -0.008 |
-7.04 |
| 50) |
0.006 + 0.4 |
0.406 |
| 51) |
6 + 77 |
83 |
| 52) |
22 * 4 |
88 |
| 53) |
-73 + 6955 |
6882 |
| 54) |
246.8 - 27 |
219.8 |
| 55) |
-0.01 * 8700 |
-87 |
| 56) |
-3 + 59.9 |
56.9 |
| 57) |
9 + 44.7 |
53.7 |
| 58) |
42 / -28 |
-1.5 |
| 59) |
5 - 410 |
-405 |
| 60) |
5 + -0.25 |
4.75 |
| 61) |
-0.025 * 308 |
-7.7 |
| 62) |
0.007 / 7 |
0.001 |
| 63) |
9 + -0.69 |
8.31 |
| 64) |
0.745 + 1.5 |
2.245 |
| 65) |
730 + -9 |
721 |
| 66) |
55 / 0.8 |
68.75 |
| 67) |
2.7 - 3 |
-0.3 |
| 68) |
0.01 - 0.07 |
-0.06 |
| 69) |
136 / 4 |
34 |
| 70) |
5 + 10.3 |
15.3 |
| 71) |
0.14 - 4 |
-3.86 |
| 72) |
0.088 + 0.7 |
0.788 |
| 73) |
0.7 * 77 |
53.9 |
| 74) |
5 - 7 |
-2 |
| 75) |
-29 + 52 |
23 |
| 76) |
8 - 2 |
6 |
| 77) |
0.05 + 0.069 |
0.119 |
| 78) |
0.185 - 0.06 |
0.125 |
| 79) |
78.4 / 4 |
19.6 |
| 80) |
-0.009 - -9.67 |
9.661 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized