
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) |
-0.6 + 69.2 |
68.6 |
| 2) |
-7 - 65.9 |
-72.9 |
| 3) |
1 * 3.15 |
3.15 |
| 4) |
2.3 + 15 |
17.3 |
| 5) |
3760 - 5 |
3755 |
| 6) |
-88.5 + 63 |
-25.5 |
| 7) |
-0.093 + 0.25 |
0.157 |
| 8) |
-35.3 - 0.3 |
-35.6 |
| 9) |
911 - 6 |
905 |
| 10) |
0.2 * 0.04 |
0.008 |
| 11) |
0.2 + 6.053 |
6.253 |
| 12) |
0.328 - -0.01 |
0.338 |
| 13) |
0.02 * 93 |
1.86 |
| 14) |
-89 / 1 |
-89 |
| 15) |
44 - 41 |
3 |
| 16) |
85 - 183 |
-98 |
| 17) |
-3 * -4 |
12 |
| 18) |
0.6 - 23 |
-22.4 |
| 19) |
0.86 / 4.3 |
0.2 |
| 20) |
-0.45 - 7 |
-7.45 |
| 21) |
69 + 0.08 |
69.08 |
| 22) |
-68 + 38 |
-30 |
| 23) |
-494 - -97 |
-397 |
| 24) |
8 - 0.136 |
7.864 |
| 25) |
8 / 0.02 |
400 |
| 26) |
-35 * -81 |
2835 |
| 27) |
29 * 8 |
232 |
| 28) |
13.6 / 0.05 |
272 |
| 29) |
0.007 * 6500 |
45.5 |
| 30) |
2 * 4 |
8 |
| 31) |
-75 - -8 |
-67 |
| 32) |
-54 * -3 |
162 |
| 33) |
979 + 729 |
1708 |
| 34) |
90.7 + 38 |
128.7 |
| 35) |
4 * 0.04 |
0.16 |
| 36) |
-6.8 + -60 |
-66.8 |
| 37) |
911.6 - 4 |
907.6 |
| 38) |
0.65 + 9 |
9.65 |
| 39) |
-742 - 217 |
-959 |
| 40) |
4 * -38 |
-152 |
| 41) |
-6 * -5 |
30 |
| 42) |
78 - 4 |
74 |
| 43) |
720 - -0.4 |
720.4 |
| 44) |
5.03 + 58.5 |
63.53 |
| 45) |
-492 + 1194 |
702 |
| 46) |
2 - 78 |
-76 |
| 47) |
61.16 + 0.05 |
61.21 |
| 48) |
3711 - -847 |
4558 |
| 49) |
8 + 70.94 |
78.94 |
| 50) |
-0.008 + 2 |
1.992 |
| 51) |
7.6 - -0.94 |
8.54 |
| 52) |
49 * 0.06 |
2.94 |
| 53) |
-11 - -6856 |
6845 |
| 54) |
8 * 0.04 |
0.32 |
| 55) |
9.5 * 760 |
7220 |
| 56) |
1.66 - 0.337 |
1.323 |
| 57) |
-80 + 7 |
-73 |
| 58) |
0.03 / 0.05 |
0.6 |
| 59) |
0.87 + -1 |
-0.13 |
| 60) |
359 + 782 |
1141 |
| 61) |
-3.21 - 6.6 |
-9.81 |
| 62) |
6 / 4 |
1.5 |
| 63) |
96 - 41 |
55 |
| 64) |
0.7 + 0.4 |
1.1 |
| 65) |
0.3 * 58 |
17.4 |
| 66) |
727 + 39 |
766 |
| 67) |
497 + 9330 |
9827 |
| 68) |
8.5 - 0.02 |
8.48 |
| 69) |
71 + 685 |
756 |
| 70) |
204 - 156.3 |
47.7 |
| 71) |
398 + 51.7 |
449.7 |
| 72) |
14 + 711.4 |
725.4 |
| 73) |
84 - -50 |
134 |
| 74) |
-3 + 0.01 |
-2.99 |
| 75) |
0.7 + 0.08 |
0.78 |
| 76) |
3 * 62 |
186 |
| 77) |
3894 + -4 |
3890 |
| 78) |
0.07 - 7 |
-6.93 |
| 79) |
179.8 - -23 |
202.8 |
| 80) |
0.574 + 0.005 |
0.579 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized