
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) |
231 - 624 |
-393 |
| 2) |
-2.6 + 0.9 |
-1.7 |
| 3) |
21 + 96 |
117 |
| 4) |
39 - 39.5 |
-0.5 |
| 5) |
-596 + -7 |
-603 |
| 6) |
0.92 * 0.275 |
0.253 |
| 7) |
8 + 5 |
13 |
| 8) |
884 - 18.8 |
865.2 |
| 9) |
-0.4 - 0.03 |
-0.43 |
| 10) |
-5 * -64 |
320 |
| 11) |
6.735 - 0.877 |
5.858 |
| 12) |
1 * 698.1 |
698.1 |
| 13) |
1.55 + 0.98 |
2.53 |
| 14) |
-0.07 + 9.221 |
9.151 |
| 15) |
977 - 1.2 |
975.8 |
| 16) |
-4.1 * 7 |
-28.7 |
| 17) |
6 - -434 |
440 |
| 18) |
6 - 0.9 |
5.1 |
| 19) |
96.6 - -880 |
976.6 |
| 20) |
0.29 + -0.047 |
0.243 |
| 21) |
751.4 + 0.6 |
752 |
| 22) |
9306 + -17 |
9289 |
| 23) |
0.72 - -0.9 |
1.62 |
| 24) |
6168 + -4335 |
1833 |
| 25) |
-3 + 9512 |
9509 |
| 26) |
-5.8 - 7 |
-12.8 |
| 27) |
0.3 + 0.098 |
0.398 |
| 28) |
-77 + 755 |
678 |
| 29) |
0.007 * 3 |
0.021 |
| 30) |
9 + -7.6 |
1.4 |
| 31) |
1 + -1 |
0 |
| 32) |
9612 + 37 |
9649 |
| 33) |
-39 * 5 |
-195 |
| 34) |
99 - -3 |
102 |
| 35) |
4703 + -4 |
4699 |
| 36) |
994 / 0.2 |
4970 |
| 37) |
-0.008 + 0.7 |
0.692 |
| 38) |
55.6 * -5 |
-278 |
| 39) |
-6.96 - 0.8 |
-7.76 |
| 40) |
-0.007 + 0.9 |
0.893 |
| 41) |
1 / 0.1 |
10 |
| 42) |
0.01 * 0.1 |
0.001 |
| 43) |
33.1 - 75 |
-41.9 |
| 44) |
8 - 42 |
-34 |
| 45) |
4.1 + 3 |
7.1 |
| 46) |
-6 - -4639 |
4633 |
| 47) |
23.9 + 20 |
43.9 |
| 48) |
49 - 0.3 |
48.7 |
| 49) |
0.26 + 1 |
1.26 |
| 50) |
1 * 4 |
4 |
| 51) |
6.1 * 83 |
506.3 |
| 52) |
76 - -87 |
163 |
| 53) |
-239 + 8 |
-231 |
| 54) |
0.025 * 916 |
22.9 |
| 55) |
0.2 * 0.05 |
0.01 |
| 56) |
7 + -1 |
6 |
| 57) |
5 - 514 |
-509 |
| 58) |
74 * 2 |
148 |
| 59) |
92 - -8 |
100 |
| 60) |
1 - 0.002 |
0.998 |
| 61) |
77 - 0.01 |
76.99 |
| 62) |
-0.05 * 93 |
-4.65 |
| 63) |
-30.7 + -8 |
-38.7 |
| 64) |
-114.9 * -1 |
114.9 |
| 65) |
-4 * 2.5 |
-10 |
| 66) |
0.62 + 6 |
6.62 |
| 67) |
47 - -7 |
54 |
| 68) |
5 + 0.02 |
5.02 |
| 69) |
2 - 439 |
-437 |
| 70) |
0.007 * 5 |
0.035 |
| 71) |
31.2 - 12 |
19.2 |
| 72) |
-1226 + 836 |
-390 |
| 73) |
1 / 0.8 |
1.25 |
| 74) |
-43 * 0.8 |
-34.4 |
| 75) |
-0.01 - 1.8 |
-1.81 |
| 76) |
6.33 + 3 |
9.33 |
| 77) |
0.291 - 0.007 |
0.284 |
| 78) |
196 + 4 |
200 |
| 79) |
3 * -0.86 |
-2.58 |
| 80) |
0.003 * 2 |
0.006 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized