
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) |
7 / -70 |
-0.1 |
| 2) |
74 + -0.02 |
73.98 |
| 3) |
1 * 40 |
40 |
| 4) |
9.6 - -0.08 |
9.68 |
| 5) |
8.93 + 0.02 |
8.95 |
| 6) |
2 * 0.008 |
0.016 |
| 7) |
0.004 * 869 |
3.476 |
| 8) |
5 * -0.066 |
-0.33 |
| 9) |
-0.04 + 9.495 |
9.455 |
| 10) |
4.02 * 9 |
36.18 |
| 11) |
-38 - -7 |
-31 |
| 12) |
1 - 5 |
-4 |
| 13) |
954 + 627 |
1581 |
| 14) |
-46.7 + 87.3 |
40.6 |
| 15) |
9 + 0.3 |
9.3 |
| 16) |
0.1 - 0.005 |
0.095 |
| 17) |
6 * 0.94 |
5.64 |
| 18) |
44 * 4 |
176 |
| 19) |
8.5 - -6 |
14.5 |
| 20) |
3 + 168 |
171 |
| 21) |
87.6 - -0.03 |
87.63 |
| 22) |
5650 * 0.14 |
791 |
| 23) |
0.4 * 2 |
0.8 |
| 24) |
30.5 + 2 |
32.5 |
| 25) |
61 - 0.4 |
60.6 |
| 26) |
48 * 1 |
48 |
| 27) |
0.1 - 0.97 |
-0.87 |
| 28) |
-0.07 * 2 |
-0.14 |
| 29) |
9153 + -2 |
9151 |
| 30) |
173 - -2.7 |
175.7 |
| 31) |
-0.492 / 0.05 |
-9.84 |
| 32) |
70.7 + -0.09 |
70.61 |
| 33) |
9 + 226 |
235 |
| 34) |
6619 + 3 |
6622 |
| 35) |
0.58 + 6 |
6.58 |
| 36) |
7 - 75 |
-68 |
| 37) |
0.01 / 1 |
0.01 |
| 38) |
0.5 + 1 |
1.5 |
| 39) |
8370 + -9360 |
-990 |
| 40) |
62 * 1.3 |
80.6 |
| 41) |
8 + -7 |
1 |
| 42) |
27 - 95.7 |
-68.7 |
| 43) |
-63 + 5 |
-58 |
| 44) |
-761 - 69 |
-830 |
| 45) |
21.6 + -0.08 |
21.52 |
| 46) |
0.49 / 5 |
0.098 |
| 47) |
-67 + 4 |
-63 |
| 48) |
290 - 809 |
-519 |
| 49) |
29 * 8 |
232 |
| 50) |
-200.5 + 553 |
352.5 |
| 51) |
120 * 75.6 |
9072 |
| 52) |
0.1 + -1.23 |
-1.13 |
| 53) |
-89 - -3074 |
2985 |
| 54) |
0.9 + 0.1 |
1 |
| 55) |
37 + -0.82 |
36.18 |
| 56) |
1426 + 998 |
2424 |
| 57) |
0.019 / 0.5 |
0.038 |
| 58) |
-579 - 6 |
-585 |
| 59) |
7 - 3 |
4 |
| 60) |
9 * 1.21 |
10.89 |
| 61) |
6.5 - 1 |
5.5 |
| 62) |
79.1 + 72 |
151.1 |
| 63) |
8446 - -26 |
8472 |
| 64) |
9 / 8 |
1.125 |
| 65) |
0.962 + 0.08 |
1.042 |
| 66) |
-0.605 / -1 |
0.605 |
| 67) |
1.87 + 75 |
76.87 |
| 68) |
-8 - -827 |
819 |
| 69) |
-0.7 / 0.2 |
-3.5 |
| 70) |
0.9 + 0.009 |
0.909 |
| 71) |
194 + 5 |
199 |
| 72) |
0.3 + 64 |
64.3 |
| 73) |
7.047 - 0.381 |
6.666 |
| 74) |
-7.6 * -9 |
68.4 |
| 75) |
-8 + 63 |
55 |
| 76) |
2.164 + 0.8 |
2.964 |
| 77) |
-0.098 * -71 |
6.958 |
| 78) |
-5 + 9498 |
9493 |
| 79) |
-9 / -3.6 |
2.5 |
| 80) |
524 + 7.9 |
531.9 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized