
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) |
-5.9 + 3 |
-2.9 |
| 2) |
6.201 / 477 |
0.013 |
| 3) |
-16 - 591 |
-607 |
| 4) |
-5.06 - -9 |
3.94 |
| 5) |
4 + -69 |
-65 |
| 6) |
-0.28 * 8 |
-2.24 |
| 7) |
796 - 9 |
787 |
| 8) |
374 * 0.4 |
149.6 |
| 9) |
-488 - -932 |
444 |
| 10) |
15.27 + 0.1 |
15.37 |
| 11) |
52 - 11.34 |
40.66 |
| 12) |
6 + -3.34 |
2.66 |
| 13) |
-0.35 - 0.7 |
-1.05 |
| 14) |
-0.9 + 8.73 |
7.83 |
| 15) |
0.063 - 0.06 |
0.003 |
| 16) |
-2 / 4 |
-0.5 |
| 17) |
49.2 + 6.4 |
55.6 |
| 18) |
1161 - -48 |
1209 |
| 19) |
6508 - -1 |
6509 |
| 20) |
-3 * 0.06 |
-0.18 |
| 21) |
0.05 / 0.08 |
0.625 |
| 22) |
-4 - 59 |
-63 |
| 23) |
24 * 3 |
72 |
| 24) |
-265 + -99 |
-364 |
| 25) |
0.4 - -7 |
7.4 |
| 26) |
-5 + 0.14 |
-4.86 |
| 27) |
22 - -481 |
503 |
| 28) |
2 - -1.028 |
3.028 |
| 29) |
1 * 0.582 |
0.582 |
| 30) |
2.245 - 0.07 |
2.175 |
| 31) |
2 - 64 |
-62 |
| 32) |
0.71 + 18 |
18.71 |
| 33) |
-4 - 0.95 |
-4.95 |
| 34) |
6 - 97.2 |
-91.2 |
| 35) |
86.62 + 1 |
87.62 |
| 36) |
4 + -176 |
-172 |
| 37) |
4.8 + 0.31 |
5.11 |
| 38) |
1 - -4.183 |
5.183 |
| 39) |
0.7 + 0.007 |
0.707 |
| 40) |
4523 + 5 |
4528 |
| 41) |
4.5 * 46 |
207 |
| 42) |
-6.8 * 40 |
-272 |
| 43) |
2.8 - 7.7 |
-4.9 |
| 44) |
1 * 0.06 |
0.06 |
| 45) |
389 + 9 |
398 |
| 46) |
90.9 * 1 |
90.9 |
| 47) |
570 - 0.8 |
569.2 |
| 48) |
87 + -73.04 |
13.96 |
| 49) |
180 - 791 |
-611 |
| 50) |
6.12 * 0.6 |
3.672 |
| 51) |
9218 + 227 |
9445 |
| 52) |
27 - 5.53 |
21.47 |
| 53) |
169 / 5 |
33.8 |
| 54) |
0.051 + 0.58 |
0.631 |
| 55) |
495.3 + 343 |
838.3 |
| 56) |
4.9 - 2.76 |
2.14 |
| 57) |
1.65 / 5 |
0.33 |
| 58) |
426 / 3 |
142 |
| 59) |
3.7 - -0.98 |
4.68 |
| 60) |
9 * 18.6 |
167.4 |
| 61) |
3.3 / 0.08 |
41.25 |
| 62) |
0.007 + 8.57 |
8.577 |
| 63) |
0.009 * 6 |
0.054 |
| 64) |
14 + 21.69 |
35.69 |
| 65) |
9.3 + 6.45 |
15.75 |
| 66) |
25 / 2 |
12.5 |
| 67) |
-46 + 4 |
-42 |
| 68) |
81.7 + -8.8 |
72.9 |
| 69) |
22 * 55 |
1210 |
| 70) |
3 * -0.9 |
-2.7 |
| 71) |
-0.07 + 0.01 |
-0.06 |
| 72) |
9.131 + -6.2 |
2.931 |
| 73) |
2.5 + 1.126 |
3.626 |
| 74) |
25.65 - 19.1 |
6.55 |
| 75) |
-0.1 + 75 |
74.9 |
| 76) |
0.1 - 3 |
-2.9 |
| 77) |
0.09 + 0.006 |
0.096 |
| 78) |
-64 + -7 |
-71 |
| 79) |
-0.08 * -26.85 |
2.148 |
| 80) |
3.3 - 0.514 |
2.786 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized