
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) |
22 - 62.5 |
-40.5 |
| 2) |
2.5 - 0.596 |
1.904 |
| 3) |
-15 - -12.73 |
-2.27 |
| 4) |
0.007 / 0.7 |
0.01 |
| 5) |
3.83 - -11.13 |
14.96 |
| 6) |
2653 / 28 |
94.75 |
| 7) |
6 - 15 |
-9 |
| 8) |
7 * -8 |
-56 |
| 9) |
216 * 4 |
864 |
| 10) |
5907 + -84 |
5823 |
| 11) |
-36 * -0.007 |
0.252 |
| 12) |
0.08 + -0.021 |
0.059 |
| 13) |
98 - 43.6 |
54.4 |
| 14) |
69.16 + 1.6 |
70.76 |
| 15) |
582 * 8 |
4656 |
| 16) |
6 - 3 |
3 |
| 17) |
9.2 - 0.087 |
9.113 |
| 18) |
47 + -0.76 |
46.24 |
| 19) |
0.008 + 0.8 |
0.808 |
| 20) |
0.07 - -0.1 |
0.17 |
| 21) |
7 * 602 |
4214 |
| 22) |
4.4 * 25 |
110 |
| 23) |
35.65 * 6 |
213.9 |
| 24) |
5 - 67.1 |
-62.1 |
| 25) |
-2.866 + 4 |
1.134 |
| 26) |
0.8 + 538 |
538.8 |
| 27) |
81 * 23 |
1863 |
| 28) |
1.85 - 0.011 |
1.839 |
| 29) |
-464 + 179 |
-285 |
| 30) |
9 + 5 |
14 |
| 31) |
760 - 9 |
751 |
| 32) |
3 * 2 |
6 |
| 33) |
8 * 195 |
1560 |
| 34) |
280 - -81 |
361 |
| 35) |
5890 * 0.05 |
294.5 |
| 36) |
-0.64 * -56 |
35.84 |
| 37) |
-94.8 - -57.9 |
-36.9 |
| 38) |
0.07 * 379 |
26.53 |
| 39) |
-4.2 - -0.05 |
-4.15 |
| 40) |
4 + -713 |
-709 |
| 41) |
4 + -7 |
-3 |
| 42) |
-458 + 956 |
498 |
| 43) |
4 - -0.4 |
4.4 |
| 44) |
5 - 0.05 |
4.95 |
| 45) |
-0.73 + -6.84 |
-7.57 |
| 46) |
-30 - -6078 |
6048 |
| 47) |
-0.352 + 0.88 |
0.528 |
| 48) |
4 + 50 |
54 |
| 49) |
461 + 3.4 |
464.4 |
| 50) |
-0.45 * -0.4 |
0.18 |
| 51) |
0.004 - -0.008 |
0.012 |
| 52) |
4 + 8.42 |
12.42 |
| 53) |
-0.2 / 0.001 |
-200 |
| 54) |
-0.004 + 0.74 |
0.736 |
| 55) |
0.5 * -0.04 |
-0.02 |
| 56) |
-26 / -0.4 |
65 |
| 57) |
8.4 + 0.04 |
8.44 |
| 58) |
8.7 - -0.4 |
9.1 |
| 59) |
-0.014 + 7 |
6.986 |
| 60) |
4 * 0.003 |
0.012 |
| 61) |
0.27 + 85 |
85.27 |
| 62) |
-0.1 - -0.36 |
0.26 |
| 63) |
5948 - 33 |
5915 |
| 64) |
2 - 5.2 |
-3.2 |
| 65) |
2.3 - -578.9 |
581.2 |
| 66) |
-0.08 - -0.02 |
-0.06 |
| 67) |
4 * 1 |
4 |
| 68) |
245 + 1.3 |
246.3 |
| 69) |
0.7 - 4 |
-3.3 |
| 70) |
-0.544 + 6 |
5.456 |
| 71) |
4 - 0.047 |
3.953 |
| 72) |
6 - -1.25 |
7.25 |
| 73) |
12.8 + 494.4 |
507.2 |
| 74) |
5 - -2.42 |
7.42 |
| 75) |
47.9 + -0.26 |
47.64 |
| 76) |
-97 - -514 |
417 |
| 77) |
-0.836 - -5.3 |
4.464 |
| 78) |
2.34 / -2 |
-1.17 |
| 79) |
5 + 10.7 |
15.7 |
| 80) |
-25.4 * -0.31 |
7.874 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized