
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) |
0.8 + 0.2 |
1 |
| 2) |
31 + 32.24 |
63.24 |
| 3) |
5.6 / 0.005 |
1120 |
| 4) |
799 - 68 |
731 |
| 5) |
4.6 - 0.46 |
4.14 |
| 6) |
1 / -0.02 |
-50 |
| 7) |
-5.4 / 0.4 |
-13.5 |
| 8) |
0.36 - -0.2 |
0.56 |
| 9) |
2 * 0.07 |
0.14 |
| 10) |
874 - -0.4 |
874.4 |
| 11) |
0.5 + 0.06 |
0.56 |
| 12) |
-6 + 5 |
-1 |
| 13) |
0.9 / -0.01 |
-90 |
| 14) |
0.6 * -1 |
-0.6 |
| 15) |
-3.5 + -5 |
-8.5 |
| 16) |
-259 - 89 |
-348 |
| 17) |
-0.09 + 1 |
0.91 |
| 18) |
0.26 + 3.9 |
4.16 |
| 19) |
0.03 - -19 |
19.03 |
| 20) |
73.9 - 33 |
40.9 |
| 21) |
674 * 0.7 |
471.8 |
| 22) |
-0.22 - -5 |
4.78 |
| 23) |
-56 + 43 |
-13 |
| 24) |
0.2 * 143.2 |
28.64 |
| 25) |
-4.95 * 4 |
-19.8 |
| 26) |
6 - 4 |
2 |
| 27) |
81 + 0.33 |
81.33 |
| 28) |
39 / 0.02 |
1950 |
| 29) |
-2.8 * 4 |
-11.2 |
| 30) |
40.6 - 3 |
37.6 |
| 31) |
0.4 + 0.002 |
0.402 |
| 32) |
6871 + -28 |
6843 |
| 33) |
0.69 - -5 |
5.69 |
| 34) |
3 - 0.417 |
2.583 |
| 35) |
424 - 11 |
413 |
| 36) |
5 * 4 |
20 |
| 37) |
1 / 0.01 |
100 |
| 38) |
11 - 0.06 |
10.94 |
| 39) |
0.8 + -0.004 |
0.796 |
| 40) |
0.05 + 23.9 |
23.95 |
| 41) |
0.4 + -0.01 |
0.39 |
| 42) |
-0.05 * -0.3 |
0.015 |
| 43) |
0.3 + 6 |
6.3 |
| 44) |
5 * 87 |
435 |
| 45) |
-8 + -3 |
-11 |
| 46) |
1243 * 0.8 |
994.4 |
| 47) |
7 + 52.46 |
59.46 |
| 48) |
-4 - 62 |
-66 |
| 49) |
-19 + -4 |
-23 |
| 50) |
-3 * 70 |
-210 |
| 51) |
5.8 + 8.25 |
14.05 |
| 52) |
145 + 6494 |
6639 |
| 53) |
-85 * 7 |
-595 |
| 54) |
41 * 2 |
82 |
| 55) |
4.6 + -90 |
-85.4 |
| 56) |
-3 - -0.55 |
-2.45 |
| 57) |
66 * -1 |
-66 |
| 58) |
6.6 + 997.4 |
1004 |
| 59) |
0.29 - -20 |
20.29 |
| 60) |
43 / -0.1 |
-430 |
| 61) |
8 - -0.05 |
8.05 |
| 62) |
0.003 + 0.09 |
0.093 |
| 63) |
9 * 0.038 |
0.342 |
| 64) |
7.5 + 1 |
8.5 |
| 65) |
0.002 + 7.59 |
7.592 |
| 66) |
8234 - 6 |
8228 |
| 67) |
0.1 - 7.24 |
-7.14 |
| 68) |
9 * 7.5 |
67.5 |
| 69) |
4455 + -8 |
4447 |
| 70) |
69 * -0.13 |
-8.97 |
| 71) |
7 + 57 |
64 |
| 72) |
59 * 3.8 |
224.2 |
| 73) |
119 * -0.3 |
-35.7 |
| 74) |
3454 - 931 |
2523 |
| 75) |
72.26 + -62 |
10.26 |
| 76) |
-0.2 - 0.05 |
-0.25 |
| 77) |
31 + 9470 |
9501 |
| 78) |
85.7 + -0.27 |
85.43 |
| 79) |
-109.8 * -9 |
988.2 |
| 80) |
6.698 - 0.005 |
6.693 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized