
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) |
92.79 - 4 |
88.79 |
| 2) |
95 + 977 |
1072 |
| 3) |
0.8 - 0.712 |
0.088 |
| 4) |
76.9 + 141 |
217.9 |
| 5) |
0.85 - -73.92 |
74.77 |
| 6) |
-4.2 / 0.028 |
-150 |
| 7) |
-0.5 + -1 |
-1.5 |
| 8) |
5 + -920 |
-915 |
| 9) |
-28 / 0.4 |
-70 |
| 10) |
0.8 * 812 |
649.6 |
| 11) |
0.02 - 6.4 |
-6.38 |
| 12) |
-0.84 - 4 |
-4.84 |
| 13) |
-42 - 54 |
-96 |
| 14) |
-9 / -36 |
0.25 |
| 15) |
753 + -54.7 |
698.3 |
| 16) |
0.356 * 0.5 |
0.178 |
| 17) |
5 / 40 |
0.125 |
| 18) |
0.02 + 0.003 |
0.023 |
| 19) |
3 / 8 |
0.375 |
| 20) |
0.1 + 30 |
30.1 |
| 21) |
-84 - 153 |
-237 |
| 22) |
-0.007 + 0.06 |
0.053 |
| 23) |
6.8 - 990.8 |
-984 |
| 24) |
9 + 7132 |
7141 |
| 25) |
-279 + 2 |
-277 |
| 26) |
2 + -0.5 |
1.5 |
| 27) |
2 - 1 |
1 |
| 28) |
0.004 * 24 |
0.096 |
| 29) |
-0.61 + 6 |
5.39 |
| 30) |
-13.8 + 28 |
14.2 |
| 31) |
26 - 7.85 |
18.15 |
| 32) |
-4 - 77.1 |
-81.1 |
| 33) |
7 / 0.007 |
1000 |
| 34) |
74 - -71 |
145 |
| 35) |
717 + 0.3 |
717.3 |
| 36) |
0.06 * -2 |
-0.12 |
| 37) |
24.76 + 51.02 |
75.78 |
| 38) |
3 - 52 |
-49 |
| 39) |
84 + -0.67 |
83.33 |
| 40) |
3.6 - 0.26 |
3.34 |
| 41) |
99 + 514 |
613 |
| 42) |
6 - 7 |
-1 |
| 43) |
-81 * -3 |
243 |
| 44) |
84 + 468 |
552 |
| 45) |
0.1 * -36 |
-3.6 |
| 46) |
-7.5 + 245 |
237.5 |
| 47) |
728 - -5.8 |
733.8 |
| 48) |
9 + 60 |
69 |
| 49) |
8 + 0.3 |
8.3 |
| 50) |
67 - -0.5 |
67.5 |
| 51) |
803.4 - 5 |
798.4 |
| 52) |
2 - 78.8 |
-76.8 |
| 53) |
-8 + 3 |
-5 |
| 54) |
0.03 + 0.15 |
0.18 |
| 55) |
0.079 * 9 |
0.711 |
| 56) |
-89 - 62 |
-151 |
| 57) |
67.38 / 6 |
11.23 |
| 58) |
4.8 - 0.087 |
4.713 |
| 59) |
391 + 4 |
395 |
| 60) |
3 + 0.783 |
3.783 |
| 61) |
38.57 + -5 |
33.57 |
| 62) |
4312 - 2 |
4310 |
| 63) |
57.77 - 9 |
48.77 |
| 64) |
0.002 / -0.008 |
-0.25 |
| 65) |
2.019 - -0.004 |
2.023 |
| 66) |
1.8 - -3 |
4.8 |
| 67) |
8 + 498 |
506 |
| 68) |
4369 + -38 |
4331 |
| 69) |
-721 + 9 |
-712 |
| 70) |
-8 * -233 |
1864 |
| 71) |
8 + 47 |
55 |
| 72) |
3 - 3.63 |
-0.63 |
| 73) |
3 + -8.79 |
-5.79 |
| 74) |
436 + 1869 |
2305 |
| 75) |
14 - 48 |
-34 |
| 76) |
1.9 + 8.64 |
10.54 |
| 77) |
1 + 5527 |
5528 |
| 78) |
2.78 - 1.495 |
1.285 |
| 79) |
547 * 7 |
3829 |
| 80) |
-4 + 1 |
-3 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized