
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) |
928 / 8 |
116 |
| 2) |
0.05 * 7 |
0.35 |
| 3) |
753.1 - 97.4 |
655.7 |
| 4) |
-2.04 * -6 |
12.24 |
| 5) |
8 - 772 |
-764 |
| 6) |
210 - 36.9 |
173.1 |
| 7) |
5 + 829 |
834 |
| 8) |
2995 + -76 |
2919 |
| 9) |
-3246 + 8278 |
5032 |
| 10) |
2 * 2194 |
4388 |
| 11) |
-6 + 99 |
93 |
| 12) |
8.46 - -0.08 |
8.54 |
| 13) |
7837 + -465 |
7372 |
| 14) |
2 * 252 |
504 |
| 15) |
-25 + -8 |
-33 |
| 16) |
83 / 0.1 |
830 |
| 17) |
0.72 * 96 |
69.12 |
| 18) |
-62 + -13 |
-75 |
| 19) |
284 * 4 |
1136 |
| 20) |
0.006 - -1.71 |
1.716 |
| 21) |
9.2 * 12 |
110.4 |
| 22) |
-4 + 3372 |
3368 |
| 23) |
8178 - 7 |
8171 |
| 24) |
9.31 - 0.02 |
9.29 |
| 25) |
5 + -93 |
-88 |
| 26) |
1 + 470 |
471 |
| 27) |
36 * 143 |
5148 |
| 28) |
9 + 42 |
51 |
| 29) |
0.48 / 1 |
0.48 |
| 30) |
-0.022 + 5 |
4.978 |
| 31) |
57 - -4405 |
4462 |
| 32) |
2 * 474.6 |
949.2 |
| 33) |
5 + 774 |
779 |
| 34) |
8390 - 3047 |
5343 |
| 35) |
0.006 * 28 |
0.168 |
| 36) |
1.03 - -46.89 |
47.92 |
| 37) |
7 * -94 |
-658 |
| 38) |
-4.2 + 8 |
3.8 |
| 39) |
-3 - -19 |
16 |
| 40) |
9 + 8.9 |
17.9 |
| 41) |
7 * 5 |
35 |
| 42) |
-4 + 638 |
634 |
| 43) |
-56 + -6 |
-62 |
| 44) |
9 - 467 |
-458 |
| 45) |
-0.03 / -1 |
0.03 |
| 46) |
2 - 9.03 |
-7.03 |
| 47) |
-57 * -0.006 |
0.342 |
| 48) |
4308 + 82 |
4390 |
| 49) |
7 + 1 |
8 |
| 50) |
8.271 - -0.9 |
9.171 |
| 51) |
49 - 835 |
-786 |
| 52) |
7 - 8.6 |
-1.6 |
| 53) |
939 * 0.9 |
845.1 |
| 54) |
3 * 0.005 |
0.015 |
| 55) |
9 + 49 |
58 |
| 56) |
0.09 * -2 |
-0.18 |
| 57) |
-15.3 + 8.37 |
-6.93 |
| 58) |
3 * 93 |
279 |
| 59) |
0.5 + 685 |
685.5 |
| 60) |
0.005 + 0.768 |
0.773 |
| 61) |
855 * 1 |
855 |
| 62) |
6.39 * 1 |
6.39 |
| 63) |
-2 - 21 |
-23 |
| 64) |
3.9 + -82 |
-78.1 |
| 65) |
-499 - 317 |
-816 |
| 66) |
9 * 4 |
36 |
| 67) |
212 - -80 |
292 |
| 68) |
4714 + -431 |
4283 |
| 69) |
70.59 + 5.24 |
75.83 |
| 70) |
7.5 / 0.005 |
1500 |
| 71) |
70 + -92 |
-22 |
| 72) |
49 * 5.1 |
249.9 |
| 73) |
5.423 + -2 |
3.423 |
| 74) |
5 - 6 |
-1 |
| 75) |
0.9 + 0.08 |
0.98 |
| 76) |
9 - -5 |
14 |
| 77) |
8 - -109.2 |
117.2 |
| 78) |
30.51 + 0.8 |
31.31 |
| 79) |
9 * 0.007 |
0.063 |
| 80) |
0.8 + -59.3 |
-58.5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized