
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.01 * 8040 |
-80.4 |
| 2) |
-5 - 72 |
-77 |
| 3) |
9.5 + 2 |
11.5 |
| 4) |
-0.02 - -0.031 |
0.011 |
| 5) |
0.622 - -2.66 |
3.282 |
| 6) |
0.008 - -1.6 |
1.608 |
| 7) |
495 / -3 |
-165 |
| 8) |
-0.22 * -7 |
1.54 |
| 9) |
3.5 + 9 |
12.5 |
| 10) |
34.3 - -0.02 |
34.32 |
| 11) |
91 - 35.42 |
55.58 |
| 12) |
77 / 7 |
11 |
| 13) |
3 - 9 |
-6 |
| 14) |
0.8 + -61 |
-60.2 |
| 15) |
603.2 + 21 |
624.2 |
| 16) |
99 + 4 |
103 |
| 17) |
2.1 * 1.4 |
2.94 |
| 18) |
0.05 * 310 |
15.5 |
| 19) |
-900 / 5 |
-180 |
| 20) |
7 + 4.5 |
11.5 |
| 21) |
-43 + 97.43 |
54.43 |
| 22) |
5 + 0.088 |
5.088 |
| 23) |
72 / 0.3 |
240 |
| 24) |
-2 * 86 |
-172 |
| 25) |
8.4 / 2 |
4.2 |
| 26) |
0.23 - -3.621 |
3.851 |
| 27) |
42.75 - 6 |
36.75 |
| 28) |
-0.27 + 2 |
1.73 |
| 29) |
6194 * 1 |
6194 |
| 30) |
75.8 + -0.85 |
74.95 |
| 31) |
0.61 / 5 |
0.122 |
| 32) |
-0.9 + 641 |
640.1 |
| 33) |
6739 - 4894 |
1845 |
| 34) |
-5 * 1 |
-5 |
| 35) |
-2123 / -44 |
48.25 |
| 36) |
8 + 63 |
71 |
| 37) |
662 + 69 |
731 |
| 38) |
83 - 9 |
74 |
| 39) |
-262 + 66 |
-196 |
| 40) |
0.1 / 10 |
0.01 |
| 41) |
-62 - 5 |
-67 |
| 42) |
6.361 - 0.008 |
6.353 |
| 43) |
0.817 + 1.83 |
2.647 |
| 44) |
0.078 + 1.85 |
1.928 |
| 45) |
129 * 0.06 |
7.74 |
| 46) |
6 - 535 |
-529 |
| 47) |
-4 + 0.08 |
-3.92 |
| 48) |
-1 + -791 |
-792 |
| 49) |
-0.7 * 0.3 |
-0.21 |
| 50) |
9 * 0.209 |
1.881 |
| 51) |
-6 + 9549 |
9543 |
| 52) |
0.4 * 5.4 |
2.16 |
| 53) |
0.003 - -4.115 |
4.118 |
| 54) |
80 - 31.3 |
48.7 |
| 55) |
1 + 847 |
848 |
| 56) |
-2 + 94 |
92 |
| 57) |
0.08 / -4 |
-0.02 |
| 58) |
3 - 4.8 |
-1.8 |
| 59) |
-5 * 0.7 |
-3.5 |
| 60) |
-8.5 + -0.09 |
-8.59 |
| 61) |
8 + 4 |
12 |
| 62) |
-0.09 / -0.06 |
1.5 |
| 63) |
5 * -0.03 |
-0.15 |
| 64) |
7 + -0.318 |
6.682 |
| 65) |
-4 + 50 |
46 |
| 66) |
0.6 * -80 |
-48 |
| 67) |
873 * 8 |
6984 |
| 68) |
4 - 873 |
-869 |
| 69) |
-0.074 - -0.55 |
0.476 |
| 70) |
7 * 4.2 |
29.4 |
| 71) |
0.04 / -2 |
-0.02 |
| 72) |
254 + 2452 |
2706 |
| 73) |
22 * -8 |
-176 |
| 74) |
194 - -7774 |
7968 |
| 75) |
0.3 + 3 |
3.3 |
| 76) |
2 * 26 |
52 |
| 77) |
7 * 0.094 |
0.658 |
| 78) |
-8 - 73 |
-81 |
| 79) |
-0.3 - 34.9 |
-35.2 |
| 80) |
1634 + 394 |
2028 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized