
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) |
74 - 39 |
35 |
| 2) |
-131 + 66 |
-65 |
| 3) |
691 + 98 |
789 |
| 4) |
4 + -0.04 |
3.96 |
| 5) |
-8 * 85 |
-680 |
| 6) |
8 - 81 |
-73 |
| 7) |
-8 + 667 |
659 |
| 8) |
4 * 0.4 |
1.6 |
| 9) |
9.2 + 0.58 |
9.78 |
| 10) |
9 - 722 |
-713 |
| 11) |
5317 + -3422 |
1895 |
| 12) |
53.6 + 0.08 |
53.68 |
| 13) |
6.6 + 76 |
82.6 |
| 14) |
8 - -1731 |
1739 |
| 15) |
96 + 9 |
105 |
| 16) |
0.17 - 2 |
-1.83 |
| 17) |
9.226 + 0.1 |
9.326 |
| 18) |
11 - -750 |
761 |
| 19) |
4892 - 3 |
4889 |
| 20) |
355 + -1217 |
-862 |
| 21) |
6 + 8965 |
8971 |
| 22) |
5 + 0.06 |
5.06 |
| 23) |
-63.3 * -0.02 |
1.266 |
| 24) |
0.3 * 607 |
182.1 |
| 25) |
889.4 + 5.6 |
895 |
| 26) |
32.16 - -6 |
38.16 |
| 27) |
8.36 - 8 |
0.36 |
| 28) |
0.888 + 8.1 |
8.988 |
| 29) |
0.07 * 0.5 |
0.035 |
| 30) |
0.3 - -0.04 |
0.34 |
| 31) |
0.05 + 59.81 |
59.86 |
| 32) |
65 * 0.6 |
39 |
| 33) |
72 - -0.6 |
72.6 |
| 34) |
-1.497 / -0.075 |
19.96 |
| 35) |
4251 + -11 |
4240 |
| 36) |
1 + 0.002 |
1.002 |
| 37) |
596 * 0.007 |
4.172 |
| 38) |
210 - 8 |
202 |
| 39) |
8.9 + 510 |
518.9 |
| 40) |
0.4 * 52 |
20.8 |
| 41) |
0.13 + 3.853 |
3.983 |
| 42) |
-6.3 - 0.9 |
-7.2 |
| 43) |
3 / 0.005 |
600 |
| 44) |
6554 - 65 |
6489 |
| 45) |
0.084 + -0.006 |
0.078 |
| 46) |
0.26 / 0.1 |
2.6 |
| 47) |
25 - 2.52 |
22.48 |
| 48) |
-75 * 0.038 |
-2.85 |
| 49) |
1158 + 83 |
1241 |
| 50) |
62.1 * 0.08 |
4.968 |
| 51) |
1853 - 28 |
1825 |
| 52) |
0.09 + -3 |
-2.91 |
| 53) |
816 / 0.6 |
1360 |
| 54) |
2 + 5634 |
5636 |
| 55) |
-3 + -0.12 |
-3.12 |
| 56) |
219 - -73 |
292 |
| 57) |
-8 - -5 |
-3 |
| 58) |
-172 / 5 |
-34.4 |
| 59) |
4988 - 7 |
4981 |
| 60) |
-8 * 17.5 |
-140 |
| 61) |
4.12 - 4.2 |
-0.08 |
| 62) |
4 * -6 |
-24 |
| 63) |
0.044 - 0.009 |
0.035 |
| 64) |
1.679 / 23 |
0.073 |
| 65) |
-4 + 66 |
62 |
| 66) |
-3 * -1 |
3 |
| 67) |
55 - 0.19 |
54.81 |
| 68) |
-6 + 25 |
19 |
| 69) |
3.6 * 5 |
18 |
| 70) |
3 + 683 |
686 |
| 71) |
-80 - -7 |
-73 |
| 72) |
8896 + 214 |
9110 |
| 73) |
-2 - 6.54 |
-8.54 |
| 74) |
500 * 3.3 |
1650 |
| 75) |
6942 + 4 |
6946 |
| 76) |
9 * 6.58 |
59.22 |
| 77) |
0.09 + -7 |
-6.91 |
| 78) |
44 * 96 |
4224 |
| 79) |
3724 - 1 |
3723 |
| 80) |
70 / 0.08 |
875 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized