
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 - -6 |
-2 |
| 2) |
9786 - 76 |
9710 |
| 3) |
0.02 * 2 |
0.04 |
| 4) |
1 + 90.6 |
91.6 |
| 5) |
183 + 91 |
274 |
| 6) |
5.1 - -907 |
912.1 |
| 7) |
0.07 * 59 |
4.13 |
| 8) |
863 + 8 |
871 |
| 9) |
-453 + 8 |
-445 |
| 10) |
0.6 * -90 |
-54 |
| 11) |
2.3 + 504.3 |
506.6 |
| 12) |
0.3 + 5 |
5.3 |
| 13) |
-1.9 + 693 |
691.1 |
| 14) |
-0.2 * 15.9 |
-3.18 |
| 15) |
-9.88 + 78.81 |
68.93 |
| 16) |
4 - 3 |
1 |
| 17) |
9 + -13.1 |
-4.1 |
| 18) |
9 * 0.164 |
1.476 |
| 19) |
4 - 642 |
-638 |
| 20) |
-9.4 - 47 |
-56.4 |
| 21) |
835 - 0.3 |
834.7 |
| 22) |
924 + 973 |
1897 |
| 23) |
0.3 - 0.58 |
-0.28 |
| 24) |
-6.896 - -7.6 |
0.704 |
| 25) |
9 * 901 |
8109 |
| 26) |
-7 / 5 |
-1.4 |
| 27) |
0.75 * -0.2 |
-0.15 |
| 28) |
5 - 0.953 |
4.047 |
| 29) |
-0.9 - -654 |
653.1 |
| 30) |
35.6 + 82 |
117.6 |
| 31) |
69 + -1 |
68 |
| 32) |
54 - 95 |
-41 |
| 33) |
-8 - -1 |
-7 |
| 34) |
-405 + 32 |
-373 |
| 35) |
883.5 - -9 |
892.5 |
| 36) |
0.6 * 1.93 |
1.158 |
| 37) |
9701 - 21 |
9680 |
| 38) |
2 * 18.54 |
37.08 |
| 39) |
2.268 / 6 |
0.378 |
| 40) |
-17 * -42.6 |
724.2 |
| 41) |
9158 - 16 |
9142 |
| 42) |
9 + 74.6 |
83.6 |
| 43) |
21.1 * 0.02 |
0.422 |
| 44) |
5.1 + 0.417 |
5.517 |
| 45) |
7 * 26 |
182 |
| 46) |
-2 * 78 |
-156 |
| 47) |
261 - 5 |
256 |
| 48) |
72 * 6 |
432 |
| 49) |
9 - 79 |
-70 |
| 50) |
49 / 0.14 |
350 |
| 51) |
5.7 * 68 |
387.6 |
| 52) |
0.84 + -0.008 |
0.832 |
| 53) |
667 - -3.2 |
670.2 |
| 54) |
10 + 3 |
13 |
| 55) |
97 - -0.94 |
97.94 |
| 56) |
368.3 + 5.7 |
374 |
| 57) |
624 - 6.1 |
617.9 |
| 58) |
83.03 - 5 |
78.03 |
| 59) |
8.78 + 3.8 |
12.58 |
| 60) |
5.88 - 3 |
2.88 |
| 61) |
5 - 154 |
-149 |
| 62) |
-0.5 + 85 |
84.5 |
| 63) |
-0.1 / 0.005 |
-20 |
| 64) |
821 + 64 |
885 |
| 65) |
-0.9 * -4 |
3.6 |
| 66) |
49 - 0.3 |
48.7 |
| 67) |
0.19 + -9 |
-8.81 |
| 68) |
0.88 + 91 |
91.88 |
| 69) |
8 * -90 |
-720 |
| 70) |
63 + -0.92 |
62.08 |
| 71) |
7 - 0.2 |
6.8 |
| 72) |
40 - -40 |
80 |
| 73) |
0.7 + 0.022 |
0.722 |
| 74) |
-643 * -9 |
5787 |
| 75) |
6.91 - -5 |
11.91 |
| 76) |
0.04 + -0.006 |
0.034 |
| 77) |
0.02 - -1 |
1.02 |
| 78) |
-3.2 - 7 |
-10.2 |
| 79) |
6 + 0.05 |
6.05 |
| 80) |
-351 / 5 |
-70.2 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized