
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.76 - -44 |
44.76 |
| 2) |
724.7 - 34 |
690.7 |
| 3) |
4.89 + 8 |
12.89 |
| 4) |
17.5 - 45 |
-27.5 |
| 5) |
27 + -85 |
-58 |
| 6) |
251.8 + -286 |
-34.2 |
| 7) |
5621 - 893 |
4728 |
| 8) |
-3.1 + 7.37 |
4.27 |
| 9) |
4.9 + 5 |
9.9 |
| 10) |
54 + -3 |
51 |
| 11) |
0.1 * 2496 |
249.6 |
| 12) |
0.06 + 6.157 |
6.217 |
| 13) |
7 * 2 |
14 |
| 14) |
0.005 / 0.04 |
0.125 |
| 15) |
-1.05 + 0.04 |
-1.01 |
| 16) |
0.09 + 94 |
94.09 |
| 17) |
-0.08 * 9 |
-0.72 |
| 18) |
0.09 - -37 |
37.09 |
| 19) |
-15 - 3.4 |
-18.4 |
| 20) |
-97 / 5 |
-19.4 |
| 21) |
-38.8 + 92 |
53.2 |
| 22) |
1 * -384 |
-384 |
| 23) |
-8 / 0.5 |
-16 |
| 24) |
74 - -0.3 |
74.3 |
| 25) |
-931 + 6 |
-925 |
| 26) |
71 - 6 |
65 |
| 27) |
-2 + -148 |
-150 |
| 28) |
-84 * 5 |
-420 |
| 29) |
38 + 43 |
81 |
| 30) |
98 - 97 |
1 |
| 31) |
-44 / -50 |
0.88 |
| 32) |
4 - 0.734 |
3.266 |
| 33) |
3 + 8 |
11 |
| 34) |
4.05 - 2.407 |
1.643 |
| 35) |
-8 + 5.03 |
-2.97 |
| 36) |
0.14 * -2 |
-0.28 |
| 37) |
0.7 + -97 |
-96.3 |
| 38) |
-92 + 6 |
-86 |
| 39) |
3708 + 48 |
3756 |
| 40) |
59.5 * -6 |
-357 |
| 41) |
0.9 - -7 |
7.9 |
| 42) |
65 + -5 |
60 |
| 43) |
9 - 0.007 |
8.993 |
| 44) |
0.848 + 0.99 |
1.838 |
| 45) |
4.937 - -0.993 |
5.93 |
| 46) |
8450 / 10 |
845 |
| 47) |
-605 + -20 |
-625 |
| 48) |
31 + -30.57 |
0.43 |
| 49) |
-0.25 - 8 |
-8.25 |
| 50) |
325 * -0.008 |
-2.6 |
| 51) |
5 + 1252 |
1257 |
| 52) |
25 * 0.04 |
1 |
| 53) |
-0.2 + 0.9 |
0.7 |
| 54) |
3.89 + 0.003 |
3.893 |
| 55) |
7 * 915 |
6405 |
| 56) |
0.087 + 0.006 |
0.093 |
| 57) |
-909 / -9 |
101 |
| 58) |
-40 - -5520 |
5480 |
| 59) |
-6 - -8403 |
8397 |
| 60) |
9 / -10 |
-0.9 |
| 61) |
3.52 + 0.06 |
3.58 |
| 62) |
0.009 * 3 |
0.027 |
| 63) |
29 + -76 |
-47 |
| 64) |
17 / 0.2 |
85 |
| 65) |
3.5 * 2.2 |
7.7 |
| 66) |
-2 - -6 |
4 |
| 67) |
-3 - -5 |
2 |
| 68) |
4 - 963 |
-959 |
| 69) |
0.878 + 1 |
1.878 |
| 70) |
2501 - 9 |
2492 |
| 71) |
18 - 3 |
15 |
| 72) |
356 * 0.008 |
2.848 |
| 73) |
-97 + -63 |
-160 |
| 74) |
2.7 - -0.01 |
2.71 |
| 75) |
867 - 49 |
818 |
| 76) |
-37 * -21 |
777 |
| 77) |
84 * 0.7 |
58.8 |
| 78) |
3 + -41.3 |
-38.3 |
| 79) |
1619 + 15 |
1634 |
| 80) |
-1 + 4.97 |
3.97 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized