
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.04 - 9 |
-8.96 |
| 2) |
9 * -74 |
-666 |
| 3) |
5 - 988 |
-983 |
| 4) |
17 - -1 |
18 |
| 5) |
-0.05 + 7.174 |
7.124 |
| 6) |
5 + 303 |
308 |
| 7) |
1.9 - 83 |
-81.1 |
| 8) |
-6.3 - -493 |
486.7 |
| 9) |
-11 / 0.05 |
-220 |
| 10) |
13.6 + 6 |
19.6 |
| 11) |
9.163 - 0.003 |
9.16 |
| 12) |
5.4 - 36 |
-30.6 |
| 13) |
0.03 + 50 |
50.03 |
| 14) |
-0.006 * -6 |
0.036 |
| 15) |
8.04 * 9 |
72.36 |
| 16) |
-7 + -0.2 |
-7.2 |
| 17) |
1 * 5.837 |
5.837 |
| 18) |
0.5 - 9 |
-8.5 |
| 19) |
84 * 5.7 |
478.8 |
| 20) |
0.06 / -2 |
-0.03 |
| 21) |
0.9 * 0.06 |
0.054 |
| 22) |
11 / 0.04 |
275 |
| 23) |
91 * 0.7 |
63.7 |
| 24) |
62 - -11 |
73 |
| 25) |
9.1 + 11 |
20.1 |
| 26) |
86 - 0.46 |
85.54 |
| 27) |
15 + -0.13 |
14.87 |
| 28) |
9 * 45.5 |
409.5 |
| 29) |
45 - 0.64 |
44.36 |
| 30) |
81.53 + 2.56 |
84.09 |
| 31) |
12.15 * 8 |
97.2 |
| 32) |
0.04 - 3.1 |
-3.06 |
| 33) |
-0.3 / 0.04 |
-7.5 |
| 34) |
-47 - 1 |
-48 |
| 35) |
9 / 8 |
1.125 |
| 36) |
0.3 * 88 |
26.4 |
| 37) |
0.36 / -0.04 |
-9 |
| 38) |
4.3 - -377 |
381.3 |
| 39) |
-920 - 76 |
-996 |
| 40) |
2 + 14.06 |
16.06 |
| 41) |
8595 - -29 |
8624 |
| 42) |
2435 + 7 |
2442 |
| 43) |
6 - 68 |
-62 |
| 44) |
-5 + -85 |
-90 |
| 45) |
5 * -87 |
-435 |
| 46) |
-1061 * -8 |
8488 |
| 47) |
48.5 + 0.04 |
48.54 |
| 48) |
67 * 0.1 |
6.7 |
| 49) |
135 + 1 |
136 |
| 50) |
52 - 13.9 |
38.1 |
| 51) |
1 - 3 |
-2 |
| 52) |
-161 + 2270 |
2109 |
| 53) |
4237 + 807 |
5044 |
| 54) |
0.01 / 2 |
0.005 |
| 55) |
3 - -0.09 |
3.09 |
| 56) |
3 + 4 |
7 |
| 57) |
315 + 8663 |
8978 |
| 58) |
2 - 10 |
-8 |
| 59) |
4.6 - 90.5 |
-85.9 |
| 60) |
-1.2 + 15 |
13.8 |
| 61) |
5.4 * -2 |
-10.8 |
| 62) |
767.2 - 2 |
765.2 |
| 63) |
-9 * 2 |
-18 |
| 64) |
-9 - -5 |
-4 |
| 65) |
0.79 + 2.983 |
3.773 |
| 66) |
646.2 - 77 |
569.2 |
| 67) |
0.668 + 5.31 |
5.978 |
| 68) |
699.9 - 126 |
573.9 |
| 69) |
-11 * 8 |
-88 |
| 70) |
56 + 42 |
98 |
| 71) |
7712 - 41 |
7671 |
| 72) |
73 - 65 |
8 |
| 73) |
42 / 6 |
7 |
| 74) |
5 - 1.1 |
3.9 |
| 75) |
0.5 - 5 |
-4.5 |
| 76) |
32.2 - 67 |
-34.8 |
| 77) |
0.6 + 0.429 |
1.029 |
| 78) |
44 - -49.74 |
93.74 |
| 79) |
-66 * -8 |
528 |
| 80) |
-4 + 35.3 |
31.3 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized