
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) |
2 - 1.517 |
0.483 |
| 2) |
8 - -89.6 |
97.6 |
| 3) |
5161 - -1074 |
6235 |
| 4) |
8 + 13.5 |
21.5 |
| 5) |
-1 + 1124 |
1123 |
| 6) |
8 * 0.43 |
3.44 |
| 7) |
-6 + 2.2 |
-3.8 |
| 8) |
-80 + 0.7 |
-79.3 |
| 9) |
61 - -93.1 |
154.1 |
| 10) |
312 * 1 |
312 |
| 11) |
0.201 / 1 |
0.201 |
| 12) |
164.9 - -470 |
634.9 |
| 13) |
0.8 + 9 |
9.8 |
| 14) |
34.38 - 7.14 |
27.24 |
| 15) |
0.005 + 5 |
5.005 |
| 16) |
98 - -30 |
128 |
| 17) |
2.004 - -3 |
5.004 |
| 18) |
24 * 0.795 |
19.08 |
| 19) |
87 + -305 |
-218 |
| 20) |
473 + 8028 |
8501 |
| 21) |
-362 - 28 |
-390 |
| 22) |
0.6 + 0.03 |
0.63 |
| 23) |
5032 - 12 |
5020 |
| 24) |
0.762 * 9 |
6.858 |
| 25) |
0.023 * 5 |
0.115 |
| 26) |
-96 + 6 |
-90 |
| 27) |
51 * 0.26 |
13.26 |
| 28) |
2959 - 342 |
2617 |
| 29) |
27.86 + 0.8 |
28.66 |
| 30) |
889.4 - 785 |
104.4 |
| 31) |
4 * 577 |
2308 |
| 32) |
51.94 + 9 |
60.94 |
| 33) |
0.6 - 54 |
-53.4 |
| 34) |
7.04 + -0.89 |
6.15 |
| 35) |
9 * -0.6 |
-5.4 |
| 36) |
0.054 / -0.06 |
-0.9 |
| 37) |
1.2 - 7.5 |
-6.3 |
| 38) |
0.9 + -1 |
-0.1 |
| 39) |
1 * 98 |
98 |
| 40) |
99.04 - 9.86 |
89.18 |
| 41) |
4.3 - 0.008 |
4.292 |
| 42) |
78 + -2.6 |
75.4 |
| 43) |
-1 * -992 |
992 |
| 44) |
-1 - -3.43 |
2.43 |
| 45) |
944 * 5.5 |
5192 |
| 46) |
783 * 2 |
1566 |
| 47) |
-2.99 + -3 |
-5.99 |
| 48) |
16 + 8.4 |
24.4 |
| 49) |
86.3 - 96 |
-9.7 |
| 50) |
8.5 + -0.002 |
8.498 |
| 51) |
0.01 - 0.09 |
-0.08 |
| 52) |
49 * -9 |
-441 |
| 53) |
1 - 9 |
-8 |
| 54) |
8 + 0.096 |
8.096 |
| 55) |
9.301 + -0.4 |
8.901 |
| 56) |
5 - -90 |
95 |
| 57) |
0.2 - 0.09 |
0.11 |
| 58) |
0.045 * 114.4 |
5.148 |
| 59) |
159 + 5 |
164 |
| 60) |
-32 - 5.8 |
-37.8 |
| 61) |
9.2 - 0.05 |
9.15 |
| 62) |
-0.07 / 0.005 |
-14 |
| 63) |
-1 + -6 |
-7 |
| 64) |
-45 * -92 |
4140 |
| 65) |
8 * 5.3 |
42.4 |
| 66) |
9 + 92.7 |
101.7 |
| 67) |
54 + 8 |
62 |
| 68) |
-47 - -214 |
167 |
| 69) |
-1 * 0.1 |
-0.1 |
| 70) |
-0.694 + 10.54 |
9.846 |
| 71) |
4179 - 2 |
4177 |
| 72) |
40 - 9.49 |
30.51 |
| 73) |
-0.07 - -8.7 |
8.63 |
| 74) |
8.273 - 7.4 |
0.873 |
| 75) |
9 / 0.001 |
9000 |
| 76) |
-78 - -43 |
-35 |
| 77) |
-0.51 * 90 |
-45.9 |
| 78) |
3 + 1.37 |
4.37 |
| 79) |
2506 + 78 |
2584 |
| 80) |
2 * 8 |
16 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized