
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.03 * 54 |
-1.62 |
| 2) |
967 + -62 |
905 |
| 3) |
7.1 + 3.4 |
10.5 |
| 4) |
-5.89 - -9 |
3.11 |
| 5) |
0.06 * 97 |
5.82 |
| 6) |
-4 + 0.22 |
-3.78 |
| 7) |
35.9 + 0.6 |
36.5 |
| 8) |
4 * 7 |
28 |
| 9) |
0.05 + 0.001 |
0.051 |
| 10) |
5244 - -74 |
5318 |
| 11) |
928 + 71 |
999 |
| 12) |
3 * 401 |
1203 |
| 13) |
3 * 0.054 |
0.162 |
| 14) |
-0.06 + 56 |
55.94 |
| 15) |
240 + -911 |
-671 |
| 16) |
-64 / -8 |
8 |
| 17) |
9.7 + 2 |
11.7 |
| 18) |
7174 - -22 |
7196 |
| 19) |
1 + -3.66 |
-2.66 |
| 20) |
70 * 9 |
630 |
| 21) |
-2.32 + -0.1 |
-2.42 |
| 22) |
93 * -0.9 |
-83.7 |
| 23) |
0.003 - -2.167 |
2.17 |
| 24) |
8700 * 0.05 |
435 |
| 25) |
2139 + 2 |
2141 |
| 26) |
2 - 17 |
-15 |
| 27) |
0.07 + 77 |
77.07 |
| 28) |
6 * 836 |
5016 |
| 29) |
2.7 - -45.3 |
48 |
| 30) |
8 - -4 |
12 |
| 31) |
0.049 + 7 |
7.049 |
| 32) |
54 * 5 |
270 |
| 33) |
-3.3 + 957 |
953.7 |
| 34) |
88 - 32 |
56 |
| 35) |
2652 + -32 |
2620 |
| 36) |
7 + 0.607 |
7.607 |
| 37) |
1.7 - 69 |
-67.3 |
| 38) |
111 - 258 |
-147 |
| 39) |
-6.7 + 90.8 |
84.1 |
| 40) |
965.2 - 1 |
964.2 |
| 41) |
-2 * 48 |
-96 |
| 42) |
1.3 + -3.32 |
-2.02 |
| 43) |
-2 + 0.04 |
-1.96 |
| 44) |
73.3 - -87 |
160.3 |
| 45) |
-0.452 * 5 |
-2.26 |
| 46) |
0.23 + 0.008 |
0.238 |
| 47) |
0.4 * 863 |
345.2 |
| 48) |
0.31 + 50 |
50.31 |
| 49) |
-0.19 - 9 |
-9.19 |
| 50) |
-726 + -4 |
-730 |
| 51) |
88 + -0.3 |
87.7 |
| 52) |
-3 * -480 |
1440 |
| 53) |
679 + 1768 |
2447 |
| 54) |
149 * 16 |
2384 |
| 55) |
21.48 + -0.09 |
21.39 |
| 56) |
-741 / -5 |
148.2 |
| 57) |
36 * 0.54 |
19.44 |
| 58) |
123.9 + -94 |
29.9 |
| 59) |
3.6 - 36 |
-32.4 |
| 60) |
0.009 * 4 |
0.036 |
| 61) |
45.64 + 4 |
49.64 |
| 62) |
-0.008 + 6 |
5.992 |
| 63) |
963 + -0.8 |
962.2 |
| 64) |
-40.8 - -92 |
51.2 |
| 65) |
-267 + 5 |
-262 |
| 66) |
32.4 / -0.05 |
-648 |
| 67) |
-0.31 / 6.2 |
-0.05 |
| 68) |
-166 + 6473 |
6307 |
| 69) |
55 - -6795 |
6850 |
| 70) |
2096 / 25 |
83.84 |
| 71) |
1.8 + -0.07 |
1.73 |
| 72) |
8 / -4 |
-2 |
| 73) |
2 - 6.1 |
-4.1 |
| 74) |
151 + -4 |
147 |
| 75) |
1 - -0.3 |
1.3 |
| 76) |
872 / 0.4 |
2180 |
| 77) |
-70 + 3032 |
2962 |
| 78) |
-7 * -0.006 |
0.042 |
| 79) |
6 - 0.098 |
5.902 |
| 80) |
2 * 9 |
18 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized