
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) |
-8 * -688 |
5504 |
| 2) |
-28.2 - -14 |
-14.2 |
| 3) |
-553 - 8 |
-561 |
| 4) |
2 * 0.008 |
0.016 |
| 5) |
682.9 - -0.2 |
683.1 |
| 6) |
8 + 559 |
567 |
| 7) |
6 * -8 |
-48 |
| 8) |
-86 - -0.9 |
-85.1 |
| 9) |
-71 + -47 |
-118 |
| 10) |
0.06 - -22.9 |
22.96 |
| 11) |
7143 + -285 |
6858 |
| 12) |
0.835 - 0.06 |
0.775 |
| 13) |
781 - 81 |
700 |
| 14) |
-821 - 37 |
-858 |
| 15) |
5062 + 1963 |
7025 |
| 16) |
-0.87 + 4.95 |
4.08 |
| 17) |
-9 / -0.05 |
180 |
| 18) |
868 - 0.7 |
867.3 |
| 19) |
7.878 + 0.7 |
8.578 |
| 20) |
74 + 43 |
117 |
| 21) |
0.04 - 0.49 |
-0.45 |
| 22) |
74.7 + 614 |
688.7 |
| 23) |
-2 * 5 |
-10 |
| 24) |
9.6 / 0.03 |
320 |
| 25) |
90 + -2.7 |
87.3 |
| 26) |
-8 + 21.74 |
13.74 |
| 27) |
0.9 - 76 |
-75.1 |
| 28) |
35 - -662 |
697 |
| 29) |
-462 * 0.005 |
-2.31 |
| 30) |
-0.94 - -0.04 |
-0.9 |
| 31) |
6 - 15 |
-9 |
| 32) |
6 * 4 |
24 |
| 33) |
0.66 * 6 |
3.96 |
| 34) |
3 * 0.954 |
2.862 |
| 35) |
0.062 * 23 |
1.426 |
| 36) |
1.2 - -0.39 |
1.59 |
| 37) |
72 + 230.9 |
302.9 |
| 38) |
0.7 - 0.009 |
0.691 |
| 39) |
464 + 8.9 |
472.9 |
| 40) |
6 * 0.59 |
3.54 |
| 41) |
1.15 + 0.002 |
1.152 |
| 42) |
-694 * -0.7 |
485.8 |
| 43) |
-60 * -8.6 |
516 |
| 44) |
4.7 / 0.025 |
188 |
| 45) |
-6 + 56 |
50 |
| 46) |
0.4 + 87 |
87.4 |
| 47) |
-6 * -6.53 |
39.18 |
| 48) |
5.3 - 8.2 |
-2.9 |
| 49) |
-0.8 * 5 |
-4 |
| 50) |
7373 - 3792 |
3581 |
| 51) |
821 + 6.2 |
827.2 |
| 52) |
5.61 / 1 |
5.61 |
| 53) |
-2.65 + 5.619 |
2.969 |
| 54) |
-44.5 - 8 |
-52.5 |
| 55) |
-0.7 + 0.11 |
-0.59 |
| 56) |
0.098 - 0.008 |
0.09 |
| 57) |
6 + 0.44 |
6.44 |
| 58) |
7.1 - -9.7 |
16.8 |
| 59) |
0.05 * 6 |
0.3 |
| 60) |
37 - -4508 |
4545 |
| 61) |
162 + 50.3 |
212.3 |
| 62) |
106 * -7 |
-742 |
| 63) |
8 * 0.002 |
0.016 |
| 64) |
-29.5 - 5 |
-34.5 |
| 65) |
8.18 + 78 |
86.18 |
| 66) |
197 * 0.016 |
3.152 |
| 67) |
21.8 - -1.14 |
22.94 |
| 68) |
502 - 7.3 |
494.7 |
| 69) |
4 - 0.08 |
3.92 |
| 70) |
9 + 73 |
82 |
| 71) |
13.1 - 1 |
12.1 |
| 72) |
-9 + 2 |
-7 |
| 73) |
26.7 - 56 |
-29.3 |
| 74) |
-0.99 + 8 |
7.01 |
| 75) |
7 - 9 |
-2 |
| 76) |
0.17 - 0.003 |
0.167 |
| 77) |
-7686 * -1 |
7686 |
| 78) |
-10 + 91 |
81 |
| 79) |
-85.2 / 6 |
-14.2 |
| 80) |
92 + 111 |
203 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized