
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) |
1782 + 92 |
1874 |
| 2) |
2443 + 1 |
2444 |
| 3) |
1.7 - 0.5 |
1.2 |
| 4) |
41 + -0.4 |
40.6 |
| 5) |
2605 - -5 |
2610 |
| 6) |
-54 + 30 |
-24 |
| 7) |
0.34 + 1.9 |
2.24 |
| 8) |
81.17 - 3 |
78.17 |
| 9) |
-53 * 1 |
-53 |
| 10) |
43 - 8.73 |
34.27 |
| 11) |
73.8 / 1 |
73.8 |
| 12) |
14 + 1 |
15 |
| 13) |
0.2 + 8 |
8.2 |
| 14) |
124 * 0.06 |
7.44 |
| 15) |
6 + -0.06 |
5.94 |
| 16) |
308 * -0.2 |
-61.6 |
| 17) |
7 - -19 |
26 |
| 18) |
-0.06 + 3 |
2.94 |
| 19) |
6457 + -784 |
5673 |
| 20) |
0.05 * 689 |
34.45 |
| 21) |
-9 - 95 |
-104 |
| 22) |
374 - 3.9 |
370.1 |
| 23) |
9 * 0.036 |
0.324 |
| 24) |
-76.2 * 1 |
-76.2 |
| 25) |
0.08 / 0.01 |
8 |
| 26) |
2.63 - 0.003 |
2.627 |
| 27) |
0.07 + -0.009 |
0.061 |
| 28) |
5 * 5.27 |
26.35 |
| 29) |
6.8 + -0.046 |
6.754 |
| 30) |
96 - 720 |
-624 |
| 31) |
5 * 738 |
3690 |
| 32) |
6 + 0.6 |
6.6 |
| 33) |
0.2 - 0.24 |
-0.04 |
| 34) |
8408 / 8 |
1051 |
| 35) |
9 + -87 |
-78 |
| 36) |
6.5 - 7.3 |
-0.8 |
| 37) |
-6.2 * 9 |
-55.8 |
| 38) |
9 + 9874 |
9883 |
| 39) |
0.324 - 0.009 |
0.315 |
| 40) |
8 * -0.8 |
-6.4 |
| 41) |
6.889 - 8.579 |
-1.69 |
| 42) |
36.6 / 0.04 |
915 |
| 43) |
6 * -48 |
-288 |
| 44) |
1753 + -80 |
1673 |
| 45) |
2.3 - -757 |
759.3 |
| 46) |
9 / 36 |
0.25 |
| 47) |
6 - 3 |
3 |
| 48) |
-3 * 0.9 |
-2.7 |
| 49) |
31.8 / 0.06 |
530 |
| 50) |
8 + -0.007 |
7.993 |
| 51) |
1.3 * 23.1 |
30.03 |
| 52) |
-0.6 / 0.5 |
-1.2 |
| 53) |
0.9 / 9 |
0.1 |
| 54) |
20 + -0.53 |
19.47 |
| 55) |
1.3 * 0.04 |
0.052 |
| 56) |
-29.4 + 493 |
463.6 |
| 57) |
1.75 - 0.004 |
1.746 |
| 58) |
-324 - 89 |
-413 |
| 59) |
-0.22 + -7.7 |
-7.92 |
| 60) |
613.4 / 2 |
306.7 |
| 61) |
6.748 / 0.01 |
674.8 |
| 62) |
228.1 + 0.3 |
228.4 |
| 63) |
-54 * 9 |
-486 |
| 64) |
0.1 / 4 |
0.025 |
| 65) |
39.4 - 0.8 |
38.6 |
| 66) |
91 + 0.05 |
91.05 |
| 67) |
3.7 - 72.8 |
-69.1 |
| 68) |
-0.07 / 0.01 |
-7 |
| 69) |
-95 + -6 |
-101 |
| 70) |
5 + 0.009 |
5.009 |
| 71) |
-50 - -9.6 |
-40.4 |
| 72) |
-5 - 631 |
-636 |
| 73) |
-0.02 + 0.848 |
0.828 |
| 74) |
52 - 0.3 |
51.7 |
| 75) |
-0.05 * -0.4 |
0.02 |
| 76) |
0.6 / -0.02 |
-30 |
| 77) |
-424 - -7 |
-417 |
| 78) |
4 + 2906 |
2910 |
| 79) |
7527 - -5 |
7532 |
| 80) |
0.07 * 4850 |
339.5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized