
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) |
-3.8 - 0.6 |
-4.4 |
| 2) |
3 - 1.91 |
1.09 |
| 3) |
35.4 + -5.8 |
29.6 |
| 4) |
0.7 + 0.009 |
0.709 |
| 5) |
6422 - 80 |
6342 |
| 6) |
0.41 + -0.086 |
0.324 |
| 7) |
-17 + 2 |
-15 |
| 8) |
92.9 - -0.06 |
92.96 |
| 9) |
0.08 + 1 |
1.08 |
| 10) |
984 - 155 |
829 |
| 11) |
1.8 + 24 |
25.8 |
| 12) |
-4.7 - 0.97 |
-5.67 |
| 13) |
0.8 - -502 |
502.8 |
| 14) |
0.34 + 8.853 |
9.193 |
| 15) |
8 - -0.003 |
8.003 |
| 16) |
-2 + 3.2 |
1.2 |
| 17) |
4 - 0.056 |
3.944 |
| 18) |
0.16 + 7.797 |
7.957 |
| 19) |
5.32 - -2.94 |
8.26 |
| 20) |
3.4 / 0.008 |
425 |
| 21) |
14 * 4 |
56 |
| 22) |
1 * 5.24 |
5.24 |
| 23) |
8 + 33 |
41 |
| 24) |
0.03 - -70 |
70.03 |
| 25) |
7 * -0.99 |
-6.93 |
| 26) |
-92.2 - -7 |
-85.2 |
| 27) |
0.023 + 0.08 |
0.103 |
| 28) |
0.005 * 77.2 |
0.386 |
| 29) |
6 + 445.8 |
451.8 |
| 30) |
-0.7 - -804 |
803.3 |
| 31) |
63 + 2821 |
2884 |
| 32) |
2860 + -11 |
2849 |
| 33) |
76.1 / 0.5 |
152.2 |
| 34) |
315 * -0.3 |
-94.5 |
| 35) |
2 + 3.511 |
5.511 |
| 36) |
-86 - 40 |
-126 |
| 37) |
4357 + -4 |
4353 |
| 38) |
-86 - -85 |
-1 |
| 39) |
1 - 609 |
-608 |
| 40) |
6.533 - -3 |
9.533 |
| 41) |
734 * 0.005 |
3.67 |
| 42) |
217 - 225 |
-8 |
| 43) |
-37.7 - -43 |
5.3 |
| 44) |
-5.5 - -982 |
976.5 |
| 45) |
9 * 3.1 |
27.9 |
| 46) |
4 + 48 |
52 |
| 47) |
-0.9 - -374 |
373.1 |
| 48) |
-3 + 285 |
282 |
| 49) |
-0.217 / 0.1 |
-2.17 |
| 50) |
-4 + 0.04 |
-3.96 |
| 51) |
29 - 6 |
23 |
| 52) |
6 + 0.078 |
6.078 |
| 53) |
-65 - -1 |
-64 |
| 54) |
5883 + 758 |
6641 |
| 55) |
9 - 0.883 |
8.117 |
| 56) |
0.087 * 46 |
4.002 |
| 57) |
-3 + 2 |
-1 |
| 58) |
1 + 11 |
12 |
| 59) |
2 * 34 |
68 |
| 60) |
-4 - -325 |
321 |
| 61) |
133 * 0.5 |
66.5 |
| 62) |
170 / 8 |
21.25 |
| 63) |
-6 + 9719 |
9713 |
| 64) |
-5 + 5570 |
5565 |
| 65) |
58 + 4.37 |
62.37 |
| 66) |
456 / 6 |
76 |
| 67) |
-6 * 0.005 |
-0.03 |
| 68) |
-4.53 + 4 |
-0.53 |
| 69) |
0.93 + 0.1 |
1.03 |
| 70) |
4159 + 5672 |
9831 |
| 71) |
0.1 * 6.64 |
0.664 |
| 72) |
-3.68 + 1 |
-2.68 |
| 73) |
-4 + 90.01 |
86.01 |
| 74) |
326 - -19.2 |
345.2 |
| 75) |
-4 + 9.1 |
5.1 |
| 76) |
9335 * 0.08 |
746.8 |
| 77) |
-168 + -450 |
-618 |
| 78) |
-8.1 + -0.09 |
-8.19 |
| 79) |
9.1 - 0.302 |
8.798 |
| 80) |
92.54 + 5 |
97.54 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized