
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) |
-42 + 202 |
160 |
| 2) |
7 * 26 |
182 |
| 3) |
0.572 - 0.001 |
0.571 |
| 4) |
-3 + 3 |
0 |
| 5) |
974 - 3 |
971 |
| 6) |
0.624 + 3.8 |
4.424 |
| 7) |
0.07 + 0.001 |
0.071 |
| 8) |
1 * 0.2 |
0.2 |
| 9) |
0.12 + 5.4 |
5.52 |
| 10) |
2 + 854 |
856 |
| 11) |
1 * -234 |
-234 |
| 12) |
0.006 + 0.3 |
0.306 |
| 13) |
0.4 * 62 |
24.8 |
| 14) |
0.6 - -9 |
9.6 |
| 15) |
-0.2 + -97.1 |
-97.3 |
| 16) |
4283 - -3 |
4286 |
| 17) |
601 + -3 |
598 |
| 18) |
0.7 + 76 |
76.7 |
| 19) |
7 + -40 |
-33 |
| 20) |
0.5 - -74 |
74.5 |
| 21) |
-0.3 + 98 |
97.7 |
| 22) |
8.35 * -1 |
-8.35 |
| 23) |
5 + 4.6 |
9.6 |
| 24) |
898 * -0.05 |
-44.9 |
| 25) |
0.009 - -5.505 |
5.514 |
| 26) |
684 + 0.1 |
684.1 |
| 27) |
781 + -0.5 |
780.5 |
| 28) |
0.9 + -0.006 |
0.894 |
| 29) |
0.4 - 5 |
-4.6 |
| 30) |
9 + 225 |
234 |
| 31) |
87.4 + 0.4 |
87.8 |
| 32) |
657 - 939 |
-282 |
| 33) |
2.77 + 84 |
86.77 |
| 34) |
-0.3 * -2 |
0.6 |
| 35) |
-0.02 + 55 |
54.98 |
| 36) |
0.24 - 4.36 |
-4.12 |
| 37) |
0.008 + 7 |
7.008 |
| 38) |
8 - -84 |
92 |
| 39) |
54 - -2 |
56 |
| 40) |
-0.9 + -2 |
-2.9 |
| 41) |
383 * 0.004 |
1.532 |
| 42) |
-9 - 945 |
-954 |
| 43) |
436 - 2 |
434 |
| 44) |
0.004 - -6 |
6.004 |
| 45) |
3 + 0.7 |
3.7 |
| 46) |
2 + 0.001 |
2.001 |
| 47) |
57 - 30 |
27 |
| 48) |
0.091 + 0.08 |
0.171 |
| 49) |
1 * -2 |
-2 |
| 50) |
-6 - -8896 |
8890 |
| 51) |
92 - 0.09 |
91.91 |
| 52) |
2 - -194 |
196 |
| 53) |
-21 + 9 |
-12 |
| 54) |
-0.92 + 6 |
5.08 |
| 55) |
-2 - 4 |
-6 |
| 56) |
3.8 + -1.9 |
1.9 |
| 57) |
833 * 0.01 |
8.33 |
| 58) |
-2 / 4 |
-0.5 |
| 59) |
-0.5 + 4.462 |
3.962 |
| 60) |
-93 - 40 |
-133 |
| 61) |
-783 / -5 |
156.6 |
| 62) |
-8 + -552 |
-560 |
| 63) |
8.9 * -1 |
-8.9 |
| 64) |
467 + 641 |
1108 |
| 65) |
-36 - 2 |
-38 |
| 66) |
1.4 - 0.02 |
1.38 |
| 67) |
26 + 3 |
29 |
| 68) |
6153 - 5 |
6148 |
| 69) |
4 + 58 |
62 |
| 70) |
9 - 41 |
-32 |
| 71) |
7833 + 96 |
7929 |
| 72) |
27 / 0.008 |
3375 |
| 73) |
-0.7 * 5 |
-3.5 |
| 74) |
0.5 - -0.3 |
0.8 |
| 75) |
2251 + 3 |
2254 |
| 76) |
8.023 - -0.831 |
8.854 |
| 77) |
0.015 + 3 |
3.015 |
| 78) |
-0.4 - 7.8 |
-8.2 |
| 79) |
2.44 + 3 |
5.44 |
| 80) |
518 * 0.1 |
51.8 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized