
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 * -149 |
447 |
| 2) |
10 + 0.08 |
10.08 |
| 3) |
0.006 / 0.4 |
0.015 |
| 4) |
1 * 9 |
9 |
| 5) |
-227 - 88 |
-315 |
| 6) |
-70.78 - -64.21 |
-6.57 |
| 7) |
0.38 + 6 |
6.38 |
| 8) |
0.71 - 10.4 |
-9.69 |
| 9) |
-0.2 + 0.819 |
0.619 |
| 10) |
794 * 7 |
5558 |
| 11) |
-6.57 - -54 |
47.43 |
| 12) |
-35.66 - -99 |
63.34 |
| 13) |
-4 + 3251 |
3247 |
| 14) |
64 * 11.1 |
710.4 |
| 15) |
-1.6 + -0.11 |
-1.71 |
| 16) |
11.4 / 4 |
2.85 |
| 17) |
8.6 + 70.6 |
79.2 |
| 18) |
76 - 3 |
73 |
| 19) |
97.4 + 175.5 |
272.9 |
| 20) |
13 * 0.3 |
3.9 |
| 21) |
3 + 657 |
660 |
| 22) |
0.1 * 1882 |
188.2 |
| 23) |
81 - 9.39 |
71.61 |
| 24) |
5752 + 10 |
5762 |
| 25) |
9525 - 6647 |
2878 |
| 26) |
6.7 * -4 |
-26.8 |
| 27) |
76 / 8 |
9.5 |
| 28) |
-0.512 - -8.795 |
8.283 |
| 29) |
61 - 956 |
-895 |
| 30) |
-0.26 / -5.2 |
0.05 |
| 31) |
0.005 - -0.17 |
0.175 |
| 32) |
0.256 - -0.447 |
0.703 |
| 33) |
0.5 - 40 |
-39.5 |
| 34) |
0.4 + 0.05 |
0.45 |
| 35) |
0.037 + -0.197 |
-0.16 |
| 36) |
8 * 39 |
312 |
| 37) |
9802 + -5 |
9797 |
| 38) |
38.35 - 2.9 |
35.45 |
| 39) |
74 * -0.05 |
-3.7 |
| 40) |
7.62 - 0.66 |
6.96 |
| 41) |
3.98 + 9.99 |
13.97 |
| 42) |
9309 - 490 |
8819 |
| 43) |
848 - 4 |
844 |
| 44) |
559 + -747 |
-188 |
| 45) |
-3 + 2.43 |
-0.57 |
| 46) |
-66 + 2 |
-64 |
| 47) |
0.14 - 2 |
-1.86 |
| 48) |
8568 + -191 |
8377 |
| 49) |
3 - 0.219 |
2.781 |
| 50) |
31 - -5.24 |
36.24 |
| 51) |
16 + 0.42 |
16.42 |
| 52) |
-38 / 0.08 |
-475 |
| 53) |
66 + 550 |
616 |
| 54) |
-0.01 / -2 |
0.005 |
| 55) |
-8 * 88 |
-704 |
| 56) |
6 * -5 |
-30 |
| 57) |
-94 + -357 |
-451 |
| 58) |
0.94 / -0.2 |
-4.7 |
| 59) |
866 + -54 |
812 |
| 60) |
8 * 451 |
3608 |
| 61) |
2 + 0.746 |
2.746 |
| 62) |
-8 * -75 |
600 |
| 63) |
39 * -9 |
-351 |
| 64) |
82 + 618 |
700 |
| 65) |
1435 + -775 |
660 |
| 66) |
0.1 / 1 |
0.1 |
| 67) |
3.6 + 8 |
11.6 |
| 68) |
0.02 - 7 |
-6.98 |
| 69) |
275 + -79 |
196 |
| 70) |
5 + 84 |
89 |
| 71) |
794 - 22 |
772 |
| 72) |
0.08 + 4.7 |
4.78 |
| 73) |
-3.4 * -335 |
1139 |
| 74) |
306 - 75 |
231 |
| 75) |
6 - 0.03 |
5.97 |
| 76) |
273 - 4 |
269 |
| 77) |
2 * 8.4 |
16.8 |
| 78) |
-596 / -5 |
119.2 |
| 79) |
41.6 + 199 |
240.6 |
| 80) |
0.4 / 20 |
0.02 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized