
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) |
-46 * -6 |
276 |
| 2) |
2 / 0.064 |
31.25 |
| 3) |
1.1 + -95 |
-93.9 |
| 4) |
8.593 - 1.09 |
7.503 |
| 5) |
31.91 - -7 |
38.91 |
| 6) |
-0.046 + 8.59 |
8.544 |
| 7) |
1622 + 41 |
1663 |
| 8) |
-0.35 / 0.04 |
-8.75 |
| 9) |
8.407 - 0.007 |
8.4 |
| 10) |
0.579 - 0.049 |
0.53 |
| 11) |
7 - -51.26 |
58.26 |
| 12) |
51 * 4 |
204 |
| 13) |
0.04 - 0.09 |
-0.05 |
| 14) |
-46 + 8221 |
8175 |
| 15) |
0.06 - 9 |
-8.94 |
| 16) |
18 + -24.44 |
-6.44 |
| 17) |
-5 + 79 |
74 |
| 18) |
-0.08 * -8 |
0.64 |
| 19) |
57 + 9.5 |
66.5 |
| 20) |
0.04 * 42 |
1.68 |
| 21) |
-95 * 0.7 |
-66.5 |
| 22) |
3 + -4 |
-1 |
| 23) |
1 + 3.774 |
4.774 |
| 24) |
0.51 / 0.6 |
0.85 |
| 25) |
2 - -83.8 |
85.8 |
| 26) |
8.32 - 0.8 |
7.52 |
| 27) |
386 + 79.4 |
465.4 |
| 28) |
709 - -913 |
1622 |
| 29) |
-77 + 90 |
13 |
| 30) |
4 + -0.006 |
3.994 |
| 31) |
7.4 - 30 |
-22.6 |
| 32) |
8.34 - 2 |
6.34 |
| 33) |
91 + 4 |
95 |
| 34) |
-36 - -4172 |
4136 |
| 35) |
606.1 + -66 |
540.1 |
| 36) |
-0.02 * -743 |
14.86 |
| 37) |
-167 + -27 |
-194 |
| 38) |
29 * -8 |
-232 |
| 39) |
-4 - 1 |
-5 |
| 40) |
984 * 9 |
8856 |
| 41) |
68.2 - 46 |
22.2 |
| 42) |
-0.009 + 0.29 |
0.281 |
| 43) |
-0.078 + 4.953 |
4.875 |
| 44) |
4.42 - 0.008 |
4.412 |
| 45) |
6 * -0.06 |
-0.36 |
| 46) |
0.9 * -4 |
-3.6 |
| 47) |
0.48 + 0.622 |
1.102 |
| 48) |
-3 * 1 |
-3 |
| 49) |
61 + 0.05 |
61.05 |
| 50) |
2 + 64 |
66 |
| 51) |
0.004 - -2 |
2.004 |
| 52) |
-0.09 + 0.5 |
0.41 |
| 53) |
0.1 - -6 |
6.1 |
| 54) |
7137 - 7603 |
-466 |
| 55) |
1.7 * 0.8 |
1.36 |
| 56) |
4.457 + 5.35 |
9.807 |
| 57) |
9 - 0.83 |
8.17 |
| 58) |
238 * 5 |
1190 |
| 59) |
14.2 * 58 |
823.6 |
| 60) |
7.83 + -9.1 |
-1.27 |
| 61) |
0.5 - -4.9 |
5.4 |
| 62) |
1 + -6.22 |
-5.22 |
| 63) |
3073 - 5 |
3068 |
| 64) |
-2.4 - -88 |
85.6 |
| 65) |
34 - 6.2 |
27.8 |
| 66) |
0.033 + 9 |
9.033 |
| 67) |
0.073 - 2.543 |
-2.47 |
| 68) |
6 + 297.1 |
303.1 |
| 69) |
0.4 * -930 |
-372 |
| 70) |
21 - -0.06 |
21.06 |
| 71) |
-838 + 96 |
-742 |
| 72) |
0.05 * -28 |
-1.4 |
| 73) |
262 - -0.1 |
262.1 |
| 74) |
58 + 1317 |
1375 |
| 75) |
0.003 + 6.618 |
6.621 |
| 76) |
67 + 4 |
71 |
| 77) |
59 + -549 |
-490 |
| 78) |
-0.8 - -0.77 |
-0.03 |
| 79) |
0.08 + 55.89 |
55.97 |
| 80) |
0.352 - -0.3 |
0.652 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized