
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) |
4 - 256 |
-252 |
| 2) |
0.06 * 3 |
0.18 |
| 3) |
2690 / 5 |
538 |
| 4) |
8.09 - 0.144 |
7.946 |
| 5) |
60 * 0.05 |
3 |
| 6) |
602.6 + 8 |
610.6 |
| 7) |
9710 + 75 |
9785 |
| 8) |
3 - 957 |
-954 |
| 9) |
0.474 / -0.3 |
-1.58 |
| 10) |
97 + 5540 |
5637 |
| 11) |
-0.276 + 5 |
4.724 |
| 12) |
0.053 * 1140 |
60.42 |
| 13) |
-46 / 8 |
-5.75 |
| 14) |
7.5 - -662 |
669.5 |
| 15) |
-3 / 0.8 |
-3.75 |
| 16) |
95.5 * 34 |
3247 |
| 17) |
7 + 472.4 |
479.4 |
| 18) |
-16 * 0.9 |
-14.4 |
| 19) |
-0.65 + -0.1 |
-0.75 |
| 20) |
42 - 0.02 |
41.98 |
| 21) |
0.009 * 60 |
0.54 |
| 22) |
6.613 / 0.1 |
66.13 |
| 23) |
-1 - 40 |
-41 |
| 24) |
-0.3 / 0.2 |
-1.5 |
| 25) |
3578 + 8 |
3586 |
| 26) |
-9 + 51 |
42 |
| 27) |
1 - -62 |
63 |
| 28) |
265 - -329 |
594 |
| 29) |
3 + -0.068 |
2.932 |
| 30) |
1 - 0.883 |
0.117 |
| 31) |
-4 - -2 |
-2 |
| 32) |
6954 + -48 |
6906 |
| 33) |
946 - 544 |
402 |
| 34) |
8 + 0.9 |
8.9 |
| 35) |
-0.46 * 25 |
-11.5 |
| 36) |
76.1 + -6.64 |
69.46 |
| 37) |
-3.1 * -8.4 |
26.04 |
| 38) |
-7 / 0.08 |
-87.5 |
| 39) |
8084 - 8 |
8076 |
| 40) |
6.42 - 0.017 |
6.403 |
| 41) |
-0.002 + 0.6 |
0.598 |
| 42) |
7200 + -7 |
7193 |
| 43) |
182 / 1 |
182 |
| 44) |
98 + 4 |
102 |
| 45) |
19 - -976 |
995 |
| 46) |
-0.03 * 202 |
-6.06 |
| 47) |
4.964 + -2 |
2.964 |
| 48) |
0.004 - -0.6 |
0.604 |
| 49) |
0.18 + 56 |
56.18 |
| 50) |
32 + 9.88 |
41.88 |
| 51) |
7.62 + 80 |
87.62 |
| 52) |
0.1 - 79 |
-78.9 |
| 53) |
7.4 - -0.8 |
8.2 |
| 54) |
0.047 - -7.5 |
7.547 |
| 55) |
1 * 11.77 |
11.77 |
| 56) |
-8 + 6 |
-2 |
| 57) |
50 - 4.4 |
45.6 |
| 58) |
262.6 + 79 |
341.6 |
| 59) |
32.3 / -0.05 |
-646 |
| 60) |
0.7 + -0.055 |
0.645 |
| 61) |
6 - 0.052 |
5.948 |
| 62) |
0.003 + 3 |
3.003 |
| 63) |
5.1 - 7 |
-1.9 |
| 64) |
-1 + 5.18 |
4.18 |
| 65) |
3.289 - 2 |
1.289 |
| 66) |
-60.2 * -5 |
301 |
| 67) |
-0.04 + 27.79 |
27.75 |
| 68) |
0.81 + 9 |
9.81 |
| 69) |
6 * 0.002 |
0.012 |
| 70) |
440 - 27 |
413 |
| 71) |
34 + -0.01 |
33.99 |
| 72) |
-2.7 + 0.09 |
-2.61 |
| 73) |
0.4 * 200 |
80 |
| 74) |
1 * 0.006 |
0.006 |
| 75) |
-56 - 0.9 |
-56.9 |
| 76) |
7529 + 439 |
7968 |
| 77) |
5.2 * 0.32 |
1.664 |
| 78) |
-0.5 - 8 |
-8.5 |
| 79) |
-0.08 * 5 |
-0.4 |
| 80) |
4 + 45.2 |
49.2 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized