
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) |
-39 / -30 |
1.3 |
| 2) |
0.007 + 4.676 |
4.683 |
| 3) |
0.08 * 55 |
4.4 |
| 4) |
13 + -863 |
-850 |
| 5) |
-6.96 + 9.113 |
2.153 |
| 6) |
-18 / -4 |
4.5 |
| 7) |
7.7 + 435 |
442.7 |
| 8) |
-0.06 * -82.6 |
4.956 |
| 9) |
-0.02 + 10 |
9.98 |
| 10) |
7993 - 833 |
7160 |
| 11) |
53 + -0.7 |
52.3 |
| 12) |
34 * 0.09 |
3.06 |
| 13) |
11.17 + 0.3 |
11.47 |
| 14) |
642 + -84 |
558 |
| 15) |
6 + 4173 |
4179 |
| 16) |
2 - -948 |
950 |
| 17) |
8952 * 0.1 |
895.2 |
| 18) |
-4 - -39 |
35 |
| 19) |
7 * 0.87 |
6.09 |
| 20) |
7 / 0.8 |
8.75 |
| 21) |
48.66 + 2.3 |
50.96 |
| 22) |
0.008 * 568 |
4.544 |
| 23) |
8 + 30.11 |
38.11 |
| 24) |
6 * -9 |
-54 |
| 25) |
1 - 7 |
-6 |
| 26) |
-1 - 1 |
-2 |
| 27) |
-63.06 + 93 |
29.94 |
| 28) |
-1 + 979 |
978 |
| 29) |
6 - -671 |
677 |
| 30) |
4 - -685 |
689 |
| 31) |
0.001 + 2.4 |
2.401 |
| 32) |
0.003 * 1 |
0.003 |
| 33) |
-0.73 + 0.08 |
-0.65 |
| 34) |
2 * 0.056 |
0.112 |
| 35) |
-0.4 * 0.9 |
-0.36 |
| 36) |
0.005 - -0.007 |
0.012 |
| 37) |
0.95 - -4.922 |
5.872 |
| 38) |
-0.08 + 0.39 |
0.31 |
| 39) |
0.9 * 0.7 |
0.63 |
| 40) |
8.5 * 0.03 |
0.255 |
| 41) |
294 + 2669 |
2963 |
| 42) |
38.5 / 0.004 |
9625 |
| 43) |
5.9 + 174 |
179.9 |
| 44) |
0.23 * 1 |
0.23 |
| 45) |
1.39 + 94 |
95.39 |
| 46) |
0.31 + -0.7 |
-0.39 |
| 47) |
92 - 815 |
-723 |
| 48) |
0.68 + -0.09 |
0.59 |
| 49) |
4 * 549 |
2196 |
| 50) |
0.067 - -0.085 |
0.152 |
| 51) |
-3 * 188 |
-564 |
| 52) |
42 + 8124 |
8166 |
| 53) |
0.8 - -0.036 |
0.836 |
| 54) |
74 * 88 |
6512 |
| 55) |
-0.07 * -48 |
3.36 |
| 56) |
4.35 + 7 |
11.35 |
| 57) |
5 / 8 |
0.625 |
| 58) |
0.3 + 10.9 |
11.2 |
| 59) |
2 - -0.1 |
2.1 |
| 60) |
-72 + 736 |
664 |
| 61) |
-2.11 - 7.81 |
-9.92 |
| 62) |
-2 + -4.34 |
-6.34 |
| 63) |
1123 * 0.6 |
673.8 |
| 64) |
278 + 94 |
372 |
| 65) |
-8 + 83.6 |
75.6 |
| 66) |
0.001 - -0.4 |
0.401 |
| 67) |
2 - 449 |
-447 |
| 68) |
0.006 * 621 |
3.726 |
| 69) |
-7 + -79 |
-86 |
| 70) |
3.5 - 95 |
-91.5 |
| 71) |
-682 + 3 |
-679 |
| 72) |
82 + 214 |
296 |
| 73) |
0.09 - 8.47 |
-8.38 |
| 74) |
84 + -623 |
-539 |
| 75) |
-0.032 * -22 |
0.704 |
| 76) |
5.477 + 4 |
9.477 |
| 77) |
5665 - 6526 |
-861 |
| 78) |
0.07 / 0.4 |
0.175 |
| 79) |
64.2 - 777.2 |
-713 |
| 80) |
-5 * 3.1 |
-15.5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized