
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) |
19 - 61.2 |
-42.2 |
| 2) |
0.09 + 4 |
4.09 |
| 3) |
2.1 * 0.09 |
0.189 |
| 4) |
8724 / 1 |
8724 |
| 5) |
221.3 + 23.3 |
244.6 |
| 6) |
-0.058 - -2.7 |
2.642 |
| 7) |
-0.001 * -1 |
0.001 |
| 8) |
38 / 8 |
4.75 |
| 9) |
-16 - -6 |
-10 |
| 10) |
9 - -0.465 |
9.465 |
| 11) |
0.151 * 4 |
0.604 |
| 12) |
57.9 * 8 |
463.2 |
| 13) |
-3 / 0.05 |
-60 |
| 14) |
0.5 - 3 |
-2.5 |
| 15) |
76 + 7 |
83 |
| 16) |
1 - 5.45 |
-4.45 |
| 17) |
0.304 - -9 |
9.304 |
| 18) |
-3 * 14 |
-42 |
| 19) |
946 - 2 |
944 |
| 20) |
9 - 0.07 |
8.93 |
| 21) |
4.6 + 3 |
7.6 |
| 22) |
-0.89 + 3.52 |
2.63 |
| 23) |
-0.04 + 0.06 |
0.02 |
| 24) |
0.008 * 41 |
0.328 |
| 25) |
-74 + -9 |
-83 |
| 26) |
-0.17 / -0.04 |
4.25 |
| 27) |
-0.083 + 4 |
3.917 |
| 28) |
0.04 - -5.4 |
5.44 |
| 29) |
0.229 - 0.081 |
0.148 |
| 30) |
-81 * 0.8 |
-64.8 |
| 31) |
31.9 + 23.2 |
55.1 |
| 32) |
1 + -575 |
-574 |
| 33) |
-61 * -0.4 |
24.4 |
| 34) |
-635 + 69 |
-566 |
| 35) |
-0.077 + 3.91 |
3.833 |
| 36) |
731 + 98 |
829 |
| 37) |
7 - -2149 |
2156 |
| 38) |
1 + 4.43 |
5.43 |
| 39) |
0.235 + 0.03 |
0.265 |
| 40) |
6.9 - 3 |
3.9 |
| 41) |
7 - -9485 |
9492 |
| 42) |
8 + 515 |
523 |
| 43) |
856 / 80 |
10.7 |
| 44) |
66 + 25 |
91 |
| 45) |
47 - -5 |
52 |
| 46) |
8723 - -28 |
8751 |
| 47) |
-108 * -0.6 |
64.8 |
| 48) |
-9.47 - -71.72 |
62.25 |
| 49) |
5 + -595 |
-590 |
| 50) |
63.07 - -3 |
66.07 |
| 51) |
9.6 + 0.192 |
9.792 |
| 52) |
7.92 - 0.009 |
7.911 |
| 53) |
5 + 72.2 |
77.2 |
| 54) |
9.2 - 9 |
0.2 |
| 55) |
96 / 0.6 |
160 |
| 56) |
960 + 671 |
1631 |
| 57) |
1.49 - 0.386 |
1.104 |
| 58) |
-0.5 * 0.96 |
-0.48 |
| 59) |
4 - 0.086 |
3.914 |
| 60) |
-50 * -17.91 |
895.5 |
| 61) |
-0.768 + 4 |
3.232 |
| 62) |
8.19 / 0.021 |
390 |
| 63) |
-7.48 + 7.94 |
0.46 |
| 64) |
19 * 73 |
1387 |
| 65) |
66 - 34 |
32 |
| 66) |
0.008 - -9 |
9.008 |
| 67) |
-0.042 / -0.5 |
0.084 |
| 68) |
0.025 * 1 |
0.025 |
| 69) |
53 - 91 |
-38 |
| 70) |
74 - 3 |
71 |
| 71) |
-8 * 0.64 |
-5.12 |
| 72) |
5795 + 8 |
5803 |
| 73) |
84 / -5 |
-16.8 |
| 74) |
7.73 - -60 |
67.73 |
| 75) |
60.3 - 65 |
-4.7 |
| 76) |
34 + 3 |
37 |
| 77) |
0.8 * 738 |
590.4 |
| 78) |
129 + 74 |
203 |
| 79) |
92 + -62.97 |
29.03 |
| 80) |
99 - 7.23 |
91.77 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized