
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) |
-3 * -0.03 |
0.09 |
| 2) |
0.07 - 9.51 |
-9.44 |
| 3) |
9 + 0.858 |
9.858 |
| 4) |
7 + 131 |
138 |
| 5) |
-15 - 3 |
-18 |
| 6) |
-5.4 - -0.8 |
-4.6 |
| 7) |
60 / 4 |
15 |
| 8) |
-1128 + 2762 |
1634 |
| 9) |
0.14 - -0.519 |
0.659 |
| 10) |
6 - 559 |
-553 |
| 11) |
-113 * 0.8 |
-90.4 |
| 12) |
23.72 + 2.91 |
26.63 |
| 13) |
2 * 963 |
1926 |
| 14) |
75.3 + -9.4 |
65.9 |
| 15) |
0.3 * 838 |
251.4 |
| 16) |
306 / 9 |
34 |
| 17) |
31 + 46 |
77 |
| 18) |
407 - 62.8 |
344.2 |
| 19) |
423 + -209.1 |
213.9 |
| 20) |
16 / 1 |
16 |
| 21) |
62 - 0.6 |
61.4 |
| 22) |
9 - -7.65 |
16.65 |
| 23) |
0.4 * 8 |
3.2 |
| 24) |
50.67 - 55 |
-4.33 |
| 25) |
-0.54 - -22 |
21.46 |
| 26) |
0.1 - -7.09 |
7.19 |
| 27) |
-0.2 - 6.3 |
-6.5 |
| 28) |
6.018 + -0.008 |
6.01 |
| 29) |
2.92 + 0.055 |
2.975 |
| 30) |
0.005 - -7.7 |
7.705 |
| 31) |
0.009 * 2 |
0.018 |
| 32) |
-0.3 + -1 |
-1.3 |
| 33) |
1 + 6 |
7 |
| 34) |
6 * 0.007 |
0.042 |
| 35) |
2375 * 0.26 |
617.5 |
| 36) |
9.5 + 592.8 |
602.3 |
| 37) |
282.5 - 86 |
196.5 |
| 38) |
3 + 2401 |
2404 |
| 39) |
78 - -1458 |
1536 |
| 40) |
1 + 0.046 |
1.046 |
| 41) |
0.745 - 0.08 |
0.665 |
| 42) |
6 - 0.384 |
5.616 |
| 43) |
0.09 - -41.23 |
41.32 |
| 44) |
696 * 0.4 |
278.4 |
| 45) |
6735 - 43 |
6692 |
| 46) |
82 * -0.02 |
-1.64 |
| 47) |
0.315 + 6.15 |
6.465 |
| 48) |
-4 * -0.006 |
0.024 |
| 49) |
926 + -8.4 |
917.6 |
| 50) |
0.4 + 26.8 |
27.2 |
| 51) |
9.9 - -816 |
825.9 |
| 52) |
-39 - -3067 |
3028 |
| 53) |
7 + 196 |
203 |
| 54) |
-624 * -7 |
4368 |
| 55) |
7937 + 1 |
7938 |
| 56) |
44 - -7264 |
7308 |
| 57) |
10 - -495 |
505 |
| 58) |
-25.9 / -0.04 |
647.5 |
| 59) |
3 * 30.52 |
91.56 |
| 60) |
3061 - 4 |
3057 |
| 61) |
8 * 505 |
4040 |
| 62) |
-0.96 + 7 |
6.04 |
| 63) |
229 / 2 |
114.5 |
| 64) |
0.08 - -0.002 |
0.082 |
| 65) |
-26 + 33.83 |
7.83 |
| 66) |
8.3 - -678 |
686.3 |
| 67) |
1500 / -2 |
-750 |
| 68) |
0.94 + -9 |
-8.06 |
| 69) |
5 - -6.1 |
11.1 |
| 70) |
2 * 901 |
1802 |
| 71) |
5 + 9222 |
9227 |
| 72) |
-8 * -0.362 |
2.896 |
| 73) |
418 - -3.8 |
421.8 |
| 74) |
-4 + 9442 |
9438 |
| 75) |
21.09 - 7 |
14.09 |
| 76) |
-9 + -0.08 |
-9.08 |
| 77) |
9 + 24.72 |
33.72 |
| 78) |
3.585 - 0.38 |
3.205 |
| 79) |
6017 + -804 |
5213 |
| 80) |
-6.14 - 0.6 |
-6.74 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized