
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) |
-12.6 - 0.4 |
-13 |
| 2) |
1056 + -479 |
577 |
| 3) |
9.37 - -0.083 |
9.453 |
| 4) |
1 / 0.1 |
10 |
| 5) |
-0.5 + 8.77 |
8.27 |
| 6) |
0.009 / 0.09 |
0.1 |
| 7) |
62 + -4 |
58 |
| 8) |
0.2 - -0.06 |
0.26 |
| 9) |
3.31 - -2 |
5.31 |
| 10) |
9 + 0.221 |
9.221 |
| 11) |
-15 + 8384 |
8369 |
| 12) |
0.2 - 0.1 |
0.1 |
| 13) |
-88 - 848 |
-936 |
| 14) |
3.26 + 0.2 |
3.46 |
| 15) |
413 + 9 |
422 |
| 16) |
4 - 0.04 |
3.96 |
| 17) |
6 + -0.009 |
5.991 |
| 18) |
0.03 - -46.5 |
46.53 |
| 19) |
-3 + 971 |
968 |
| 20) |
-8.75 - 0.01 |
-8.76 |
| 21) |
-2220 + 6693 |
4473 |
| 22) |
-7.61 + 1.64 |
-5.97 |
| 23) |
0.002 * 411 |
0.822 |
| 24) |
-0.002 + 0.03 |
0.028 |
| 25) |
-8 + -0.08 |
-8.08 |
| 26) |
161 * -0.03 |
-4.83 |
| 27) |
652.5 - -82 |
734.5 |
| 28) |
0.44 + 46.1 |
46.54 |
| 29) |
-1 + 5 |
4 |
| 30) |
0.044 + -6.584 |
-6.54 |
| 31) |
-8.7 * 30 |
-261 |
| 32) |
21.2 - -0.02 |
21.22 |
| 33) |
0.036 + 0.92 |
0.956 |
| 34) |
3.1 + 72.59 |
75.69 |
| 35) |
0.1 - 13 |
-12.9 |
| 36) |
-3.16 + 2.56 |
-0.6 |
| 37) |
-9 - 0.09 |
-9.09 |
| 38) |
-0.11 - 4 |
-4.11 |
| 39) |
75 + -80.9 |
-5.9 |
| 40) |
-91 - -0.7 |
-90.3 |
| 41) |
8 + 30.39 |
38.39 |
| 42) |
5 + 929 |
934 |
| 43) |
-7 * -0.05 |
0.35 |
| 44) |
78 * 9 |
702 |
| 45) |
8.6 + 4 |
12.6 |
| 46) |
9.7 + 9 |
18.7 |
| 47) |
0.67 + 5.66 |
6.33 |
| 48) |
-0.33 - 0.1 |
-0.43 |
| 49) |
3 / -0.04 |
-75 |
| 50) |
-7 + 8 |
1 |
| 51) |
5736 - 607 |
5129 |
| 52) |
-0.55 - -43.6 |
43.05 |
| 53) |
0.2 * 89 |
17.8 |
| 54) |
0.03 * 52 |
1.56 |
| 55) |
-44.4 + 1 |
-43.4 |
| 56) |
0.6 / -4 |
-0.15 |
| 57) |
0.92 + 10 |
10.92 |
| 58) |
-9 * 5.8 |
-52.2 |
| 59) |
9 / 5 |
1.8 |
| 60) |
66 + -0.05 |
65.95 |
| 61) |
81 / 90 |
0.9 |
| 62) |
8 + 0.567 |
8.567 |
| 63) |
-7 * 0.69 |
-4.83 |
| 64) |
0.9 + 95 |
95.9 |
| 65) |
0.07 - 5 |
-4.93 |
| 66) |
248 + 0.2 |
248.2 |
| 67) |
-5 - -6374 |
6369 |
| 68) |
4 * 0.04 |
0.16 |
| 69) |
95 - 90.7 |
4.3 |
| 70) |
0.062 * 7 |
0.434 |
| 71) |
-875 + 6737 |
5862 |
| 72) |
0.87 - -40 |
40.87 |
| 73) |
81 + 3 |
84 |
| 74) |
0.5 + 6 |
6.5 |
| 75) |
85 - 9.8 |
75.2 |
| 76) |
608 + 84 |
692 |
| 77) |
0.79 - -0.913 |
1.703 |
| 78) |
586 + 28 |
614 |
| 79) |
8 - 0.721 |
7.279 |
| 80) |
95 * 0.021 |
1.995 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized