
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.6 * 2.99 |
7.774 |
| 2) |
-0.003 - -1 |
0.997 |
| 3) |
194 / -0.4 |
-485 |
| 4) |
718.7 + -469 |
249.7 |
| 5) |
-8.9 - -71 |
62.1 |
| 6) |
82 + 10.44 |
92.44 |
| 7) |
0.54 + 7 |
7.54 |
| 8) |
69 + 0.8 |
69.8 |
| 9) |
93 - 83 |
10 |
| 10) |
0.59 * 6 |
3.54 |
| 11) |
8.6 / 0.8 |
10.75 |
| 12) |
42 - -908.3 |
950.3 |
| 13) |
-8.25 / 3 |
-2.75 |
| 14) |
0.015 * -2 |
-0.03 |
| 15) |
63.13 - 11 |
52.13 |
| 16) |
0.001 + 0.005 |
0.006 |
| 17) |
0.065 / 0.026 |
2.5 |
| 18) |
10.9 + 724.6 |
735.5 |
| 19) |
327 - 710 |
-383 |
| 20) |
77 + -0.5 |
76.5 |
| 21) |
5 + 848 |
853 |
| 22) |
-36 / 9 |
-4 |
| 23) |
-223 * 2 |
-446 |
| 24) |
0.05 * 4 |
0.2 |
| 25) |
-3 - -88 |
85 |
| 26) |
88.9 - -77 |
165.9 |
| 27) |
54 * 40 |
2160 |
| 28) |
0.08 * -0.5 |
-0.04 |
| 29) |
-46.5 * -3 |
139.5 |
| 30) |
-362 - 75 |
-437 |
| 31) |
7199 + 56 |
7255 |
| 32) |
911 + 7 |
918 |
| 33) |
-5 + 221 |
216 |
| 34) |
3.788 - -3.825 |
7.613 |
| 35) |
434 + 0.5 |
434.5 |
| 36) |
0.11 + -1 |
-0.89 |
| 37) |
9 - -0.789 |
9.789 |
| 38) |
10 * 2 |
20 |
| 39) |
9 * 0.54 |
4.86 |
| 40) |
0.1 / 5 |
0.02 |
| 41) |
266 + 73 |
339 |
| 42) |
3743 + -638 |
3105 |
| 43) |
-237 + 8791 |
8554 |
| 44) |
-5.88 * -5 |
29.4 |
| 45) |
-863 + -5 |
-868 |
| 46) |
23 / 2 |
11.5 |
| 47) |
12.2 - -0.01 |
12.21 |
| 48) |
11 + -16 |
-5 |
| 49) |
48 + 68 |
116 |
| 50) |
33.5 - 1.92 |
31.58 |
| 51) |
0.7 + 9.2 |
9.9 |
| 52) |
2 * 5.63 |
11.26 |
| 53) |
-411 - 8 |
-419 |
| 54) |
27.1 - 4 |
23.1 |
| 55) |
3 * 549 |
1647 |
| 56) |
5.8 + 135.1 |
140.9 |
| 57) |
-5 - 97 |
-102 |
| 58) |
8 * 0.004 |
0.032 |
| 59) |
7 - 12.52 |
-5.52 |
| 60) |
716 / -4 |
-179 |
| 61) |
49.08 / 0.006 |
8180 |
| 62) |
85.73 + 0.07 |
85.8 |
| 63) |
0.8 * 1 |
0.8 |
| 64) |
175.9 - 4.1 |
171.8 |
| 65) |
8.798 + 0.2 |
8.998 |
| 66) |
6.1 - 85 |
-78.9 |
| 67) |
-92 + 4428 |
4336 |
| 68) |
9 * -107 |
-963 |
| 69) |
-87 - 6 |
-93 |
| 70) |
5.4 * 6 |
32.4 |
| 71) |
-0.7 * 2 |
-1.4 |
| 72) |
28 * 167 |
4676 |
| 73) |
0.79 * 82 |
64.78 |
| 74) |
184 + 22 |
206 |
| 75) |
0.02 + 9.11 |
9.13 |
| 76) |
-0.738 / 0.045 |
-16.4 |
| 77) |
38.07 + 3.86 |
41.93 |
| 78) |
0.3 / 4 |
0.075 |
| 79) |
-28 + -21 |
-49 |
| 80) |
-35 + 7.8 |
-27.2 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized