
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) |
-3 / 0.4 |
-7.5 |
| 2) |
0.4 * 0.1 |
0.04 |
| 3) |
83 * 0.52 |
43.16 |
| 4) |
-0.359 * -9 |
3.231 |
| 5) |
-828 + -96 |
-924 |
| 6) |
-6 - -26.7 |
20.7 |
| 7) |
0.004 + 5 |
5.004 |
| 8) |
7.1 / 0.1 |
71 |
| 9) |
0.9 + 43 |
43.9 |
| 10) |
3.73 - 6 |
-2.27 |
| 11) |
8.39 + -0.008 |
8.382 |
| 12) |
-3.77 - -8.01 |
4.24 |
| 13) |
1884 - 7 |
1877 |
| 14) |
0.01 / 5 |
0.002 |
| 15) |
-94 * 0.7 |
-65.8 |
| 16) |
5 * 676 |
3380 |
| 17) |
0.72 + -3.05 |
-2.33 |
| 18) |
8 + -358 |
-350 |
| 19) |
-49 + -7 |
-56 |
| 20) |
0.07 + -3 |
-2.93 |
| 21) |
-89 / -20 |
4.45 |
| 22) |
2 - 9 |
-7 |
| 23) |
-56.3 + 839 |
782.7 |
| 24) |
2.04 - -27 |
29.04 |
| 25) |
-0.07 + 3 |
2.93 |
| 26) |
7 * -6 |
-42 |
| 27) |
0.384 + -0.028 |
0.356 |
| 28) |
-1221 + 364 |
-857 |
| 29) |
-8 - -33 |
25 |
| 30) |
1096 / 1 |
1096 |
| 31) |
-186 / -3 |
62 |
| 32) |
4 + 21 |
25 |
| 33) |
35 - -9.55 |
44.55 |
| 34) |
68.84 / 1 |
68.84 |
| 35) |
-1.71 * 5 |
-8.55 |
| 36) |
3 - 2 |
1 |
| 37) |
77 * -2 |
-154 |
| 38) |
7 * 8.28 |
57.96 |
| 39) |
60 - 72 |
-12 |
| 40) |
64 + 12 |
76 |
| 41) |
323 * 9 |
2907 |
| 42) |
8 - -0.018 |
8.018 |
| 43) |
-0.016 + 0.2 |
0.184 |
| 44) |
-47 * -2 |
94 |
| 45) |
3 + -2.7 |
0.3 |
| 46) |
6692 - -57 |
6749 |
| 47) |
-67.6 + 4.2 |
-63.4 |
| 48) |
9.6 / 5 |
1.92 |
| 49) |
4 + 553 |
557 |
| 50) |
-0.047 + 1.03 |
0.983 |
| 51) |
0.08 * -9 |
-0.72 |
| 52) |
-0.09 + 92 |
91.91 |
| 53) |
129 / 2 |
64.5 |
| 54) |
4.5 - -0.79 |
5.29 |
| 55) |
1556 * 1 |
1556 |
| 56) |
4.9 + -2 |
2.9 |
| 57) |
4.89 + -5.7 |
-0.81 |
| 58) |
0.06 - -0.9 |
0.96 |
| 59) |
9174 + 87 |
9261 |
| 60) |
0.52 + 0.35 |
0.87 |
| 61) |
0.73 - -81.9 |
82.63 |
| 62) |
-34 - -6492 |
6458 |
| 63) |
0.96 - -6.46 |
7.42 |
| 64) |
-158 + 192 |
34 |
| 65) |
734 + 77 |
811 |
| 66) |
0.689 - 0.002 |
0.687 |
| 67) |
7 * 4.77 |
33.39 |
| 68) |
9 + 6175 |
6184 |
| 69) |
7.1 + 88 |
95.1 |
| 70) |
0.6 + 0.005 |
0.605 |
| 71) |
0.3 * 34 |
10.2 |
| 72) |
-7 + 0.1 |
-6.9 |
| 73) |
9 * -87 |
-783 |
| 74) |
4 + 885.8 |
889.8 |
| 75) |
6 * 0.062 |
0.372 |
| 76) |
545 + 62 |
607 |
| 77) |
-87 * -5.6 |
487.2 |
| 78) |
14.8 - -143 |
157.8 |
| 79) |
-84 * -5.5 |
462 |
| 80) |
-50 * 0.1 |
-5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized