
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) |
-2 - 491 |
-493 |
| 2) |
0.6 - -3 |
3.6 |
| 3) |
0.7 + 69 |
69.7 |
| 4) |
589 + -0.4 |
588.6 |
| 5) |
7 * 0.49 |
3.43 |
| 6) |
63 - 8 |
55 |
| 7) |
-32 - 92 |
-124 |
| 8) |
-1.64 / 0.5 |
-3.28 |
| 9) |
298 - 231 |
67 |
| 10) |
-5 + 6906 |
6901 |
| 11) |
8884 * 0.5 |
4442 |
| 12) |
8.14 + 0.91 |
9.05 |
| 13) |
6771 + -4 |
6767 |
| 14) |
77.1 - 0.4 |
76.7 |
| 15) |
-6 - -0.02 |
-5.98 |
| 16) |
-34 - 8 |
-42 |
| 17) |
3.952 - 2.4 |
1.552 |
| 18) |
-2 * 0.9 |
-1.8 |
| 19) |
2378 + 926 |
3304 |
| 20) |
0.08 * 9 |
0.72 |
| 21) |
978 + 1.3 |
979.3 |
| 22) |
0.5 - 9 |
-8.5 |
| 23) |
76 + 0.2 |
76.2 |
| 24) |
37 * 0.2 |
7.4 |
| 25) |
4 - 16 |
-12 |
| 26) |
3 - 63 |
-60 |
| 27) |
0.3 + 0.64 |
0.94 |
| 28) |
-23 - 2 |
-25 |
| 29) |
467 + -97 |
370 |
| 30) |
13.64 + 8 |
21.64 |
| 31) |
0.7 - 0.68 |
0.02 |
| 32) |
-7.9 + 873 |
865.1 |
| 33) |
94 + 0.7 |
94.7 |
| 34) |
0.32 + -6 |
-5.68 |
| 35) |
4 - 75 |
-71 |
| 36) |
-3.8 / -0.08 |
47.5 |
| 37) |
28.94 + 28 |
56.94 |
| 38) |
5 + -1 |
4 |
| 39) |
77 + -34 |
43 |
| 40) |
-0.24 + 82 |
81.76 |
| 41) |
3.509 - 0.001 |
3.508 |
| 42) |
8 * 42.2 |
337.6 |
| 43) |
391 - 7 |
384 |
| 44) |
6 * 45.4 |
272.4 |
| 45) |
-0.008 + 1 |
0.992 |
| 46) |
62 * 0.06 |
3.72 |
| 47) |
-0.1 - -1 |
0.9 |
| 48) |
85 - 11.62 |
73.38 |
| 49) |
577 * 1 |
577 |
| 50) |
-0.007 / -0.5 |
0.014 |
| 51) |
141 * 9 |
1269 |
| 52) |
3.31 + 0.753 |
4.063 |
| 53) |
1 * -884 |
-884 |
| 54) |
0.04 + 44.2 |
44.24 |
| 55) |
2652 * 0.2 |
530.4 |
| 56) |
8.03 - -52 |
60.03 |
| 57) |
30 + 71.5 |
101.5 |
| 58) |
1.2 + 71.64 |
72.84 |
| 59) |
99 - 98 |
1 |
| 60) |
5.1 + 202 |
207.1 |
| 61) |
80 * 0.045 |
3.6 |
| 62) |
-6 + 87 |
81 |
| 63) |
66 - -2 |
68 |
| 64) |
-7 + 0.87 |
-6.13 |
| 65) |
451 + 2 |
453 |
| 66) |
-0.042 + 0.4 |
0.358 |
| 67) |
0.96 - -8 |
8.96 |
| 68) |
0.9 + 5 |
5.9 |
| 69) |
0.59 - 0.002 |
0.588 |
| 70) |
3054 + 61 |
3115 |
| 71) |
0.41 - 8.34 |
-7.93 |
| 72) |
2 - 7 |
-5 |
| 73) |
-98 + 7 |
-91 |
| 74) |
160.4 - 15.9 |
144.5 |
| 75) |
0.703 - 0.03 |
0.673 |
| 76) |
5237 + 6 |
5243 |
| 77) |
-0.703 + 5.5 |
4.797 |
| 78) |
3 - 0.048 |
2.952 |
| 79) |
500.2 + -7.3 |
492.9 |
| 80) |
-0.01 + 69.7 |
69.69 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized