
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) |
730 + -0.2 |
729.8 |
| 2) |
1 * 123 |
123 |
| 3) |
6.7 - -52 |
58.7 |
| 4) |
-232 - 21 |
-253 |
| 5) |
-1 - -7.27 |
6.27 |
| 6) |
0.5 - -0.052 |
0.552 |
| 7) |
9 * 0.174 |
1.566 |
| 8) |
90 - 1 |
89 |
| 9) |
9 + -0.006 |
8.994 |
| 10) |
-0.043 + 7 |
6.957 |
| 11) |
652.2 - 78 |
574.2 |
| 12) |
0.16 + 0.021 |
0.181 |
| 13) |
-1 * -2.88 |
2.88 |
| 14) |
302 + 6 |
308 |
| 15) |
-6 + 2967 |
2961 |
| 16) |
-0.9 * 9 |
-8.1 |
| 17) |
36.02 - 2 |
34.02 |
| 18) |
57 + 8 |
65 |
| 19) |
-5 + -177 |
-182 |
| 20) |
-162 * -5 |
810 |
| 21) |
-0.6 / 2 |
-0.3 |
| 22) |
-6 + -0.3 |
-6.3 |
| 23) |
695 - -1508 |
2203 |
| 24) |
0.8 * 689 |
551.2 |
| 25) |
-0.04 + 33 |
32.96 |
| 26) |
97 * 0.89 |
86.33 |
| 27) |
8 * 293 |
2344 |
| 28) |
6.62 - -25 |
31.62 |
| 29) |
-0.9 + -1.6 |
-2.5 |
| 30) |
88.8 - -3 |
91.8 |
| 31) |
22 - -9105 |
9127 |
| 32) |
7 - 0.016 |
6.984 |
| 33) |
226 - -18 |
244 |
| 34) |
19 * 27 |
513 |
| 35) |
4.35 + 86 |
90.35 |
| 36) |
212.1 - -78 |
290.1 |
| 37) |
-9.4 + 387 |
377.6 |
| 38) |
5 - 0.07 |
4.93 |
| 39) |
-6 / 0.3 |
-20 |
| 40) |
43 - -0.81 |
43.81 |
| 41) |
4.551 - 0.002 |
4.549 |
| 42) |
1.511 + 0.09 |
1.601 |
| 43) |
-8 - -61 |
53 |
| 44) |
0.86 / -2 |
-0.43 |
| 45) |
8 * 2.62 |
20.96 |
| 46) |
9.23 - 0.163 |
9.067 |
| 47) |
7.56 + 77 |
84.56 |
| 48) |
5 + 958.8 |
963.8 |
| 49) |
0.6 + -4 |
-3.4 |
| 50) |
36 - 9 |
27 |
| 51) |
6162 + -458 |
5704 |
| 52) |
-6 + 0.1 |
-5.9 |
| 53) |
1 + 0.618 |
1.618 |
| 54) |
0.04 - -1.465 |
1.505 |
| 55) |
7.2 * 41 |
295.2 |
| 56) |
78 + 4286 |
4364 |
| 57) |
79 / -2 |
-39.5 |
| 58) |
0.6 - 4.19 |
-3.59 |
| 59) |
312 + 81 |
393 |
| 60) |
96 - -88 |
184 |
| 61) |
0.06 / 0.3 |
0.2 |
| 62) |
0.1 + 602 |
602.1 |
| 63) |
329 + 54 |
383 |
| 64) |
167 - 880 |
-713 |
| 65) |
-14 + -647 |
-661 |
| 66) |
-9 + -0.02 |
-9.02 |
| 67) |
60.7 * 8 |
485.6 |
| 68) |
24 / 0.008 |
3000 |
| 69) |
7 + 5.04 |
12.04 |
| 70) |
4.51 * 3 |
13.53 |
| 71) |
44.7 + 76.5 |
121.2 |
| 72) |
3238 * 1 |
3238 |
| 73) |
0.56 + 1.1 |
1.66 |
| 74) |
6512 - 6 |
6506 |
| 75) |
0.7 / -0.7 |
-1 |
| 76) |
0.9 + 3.25 |
4.15 |
| 77) |
4.1 * 220 |
902 |
| 78) |
-54 - 86 |
-140 |
| 79) |
28 - 0.02 |
27.98 |
| 80) |
-0.008 + 4 |
3.992 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized