
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) |
-526 + 1248 |
722 |
| 2) |
0.3 / -0.005 |
-60 |
| 3) |
-8 - -876 |
868 |
| 4) |
36 + -5.41 |
30.59 |
| 5) |
5 + 950 |
955 |
| 6) |
0.5 - 21.4 |
-20.9 |
| 7) |
97 / 5 |
19.4 |
| 8) |
-0.4 * -9.12 |
3.648 |
| 9) |
9.99 - 1.26 |
8.73 |
| 10) |
0.02 + 0.007 |
0.027 |
| 11) |
5 - 0.007 |
4.993 |
| 12) |
9579 / 1 |
9579 |
| 13) |
-61 - 91 |
-152 |
| 14) |
-6 - 0.98 |
-6.98 |
| 15) |
-765 - 7 |
-772 |
| 16) |
0.14 / 0.05 |
2.8 |
| 17) |
0.333 + 8.1 |
8.433 |
| 18) |
-796 + -57 |
-853 |
| 19) |
7 - -0.4 |
7.4 |
| 20) |
800 / 1 |
800 |
| 21) |
-568 - -2821 |
2253 |
| 22) |
-638 + -1 |
-639 |
| 23) |
-6 - 63 |
-69 |
| 24) |
80 + 7812 |
7892 |
| 25) |
-37 + 75 |
38 |
| 26) |
0.5 * 0.7 |
0.35 |
| 27) |
5 + 97 |
102 |
| 28) |
-1 / -2 |
0.5 |
| 29) |
1 - 773 |
-772 |
| 30) |
7593 + 9 |
7602 |
| 31) |
0.1 - 0.003 |
0.097 |
| 32) |
7 - -49 |
56 |
| 33) |
4.29 + -9 |
-4.71 |
| 34) |
20 * 0.007 |
0.14 |
| 35) |
0.04 - -0.036 |
0.076 |
| 36) |
-35.6 - -87 |
51.4 |
| 37) |
0.017 - 0.008 |
0.009 |
| 38) |
1 - 120 |
-119 |
| 39) |
0.14 + -0.005 |
0.135 |
| 40) |
-63 + 4091 |
4028 |
| 41) |
6 / 0.003 |
2000 |
| 42) |
367 * 0.002 |
0.734 |
| 43) |
-5 + 2505 |
2500 |
| 44) |
896 + 5 |
901 |
| 45) |
-50 + 628 |
578 |
| 46) |
-224 - 4 |
-228 |
| 47) |
3.4 - 81.6 |
-78.2 |
| 48) |
2 - 86 |
-84 |
| 49) |
-6 / -0.48 |
12.5 |
| 50) |
56.4 - -171 |
227.4 |
| 51) |
0.08 + -9 |
-8.92 |
| 52) |
1.28 + -0.025 |
1.255 |
| 53) |
0.222 - 0.005 |
0.217 |
| 54) |
230 + 966 |
1196 |
| 55) |
92 + 5025 |
5117 |
| 56) |
3824 / 8 |
478 |
| 57) |
58 + 0.07 |
58.07 |
| 58) |
6 * 84 |
504 |
| 59) |
-0.03 + 0.07 |
0.04 |
| 60) |
-5.3 - 0.9 |
-6.2 |
| 61) |
441 + -0.7 |
440.3 |
| 62) |
8.98 - 10 |
-1.02 |
| 63) |
677 + 4 |
681 |
| 64) |
0.96 - 5.09 |
-4.13 |
| 65) |
-0.2 - -38 |
37.8 |
| 66) |
64 + -2 |
62 |
| 67) |
-2 - 5 |
-7 |
| 68) |
68 * 9 |
612 |
| 69) |
7 + 36 |
43 |
| 70) |
58.9 * 15 |
883.5 |
| 71) |
-77 / 77 |
-1 |
| 72) |
648 + 3481 |
4129 |
| 73) |
606.1 - 0.1 |
606 |
| 74) |
-0.99 + 48 |
47.01 |
| 75) |
3 * 85.8 |
257.4 |
| 76) |
12 + -0.7 |
11.3 |
| 77) |
5 - -1418 |
1423 |
| 78) |
-0.16 / -1 |
0.16 |
| 79) |
256 + 30 |
286 |
| 80) |
0.1 - 73 |
-72.9 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized