
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 - 67 |
-64 |
| 2) |
86 - -0.1 |
86.1 |
| 3) |
6.6 / 0.03 |
220 |
| 4) |
2.156 + 0.08 |
2.236 |
| 5) |
56.4 / -7.5 |
-7.52 |
| 6) |
8 + 59 |
67 |
| 7) |
0.03 - 8 |
-7.97 |
| 8) |
-0.6 + 29.82 |
29.22 |
| 9) |
149 - -91 |
240 |
| 10) |
3.84 + -0.072 |
3.768 |
| 11) |
65.08 * 0.75 |
48.81 |
| 12) |
0.02 - 0.05 |
-0.03 |
| 13) |
-0.75 + 1 |
0.25 |
| 14) |
-5 - -686.7 |
681.7 |
| 15) |
0.954 / -0.009 |
-106 |
| 16) |
9 + -0.6 |
8.4 |
| 17) |
-8.78 + 0.4 |
-8.38 |
| 18) |
3.5 + 9 |
12.5 |
| 19) |
5.36 + -0.06 |
5.3 |
| 20) |
57 / -2 |
-28.5 |
| 21) |
64 + 61 |
125 |
| 22) |
7.7 / 0.2 |
38.5 |
| 23) |
-2 + 3 |
1 |
| 24) |
0.1 - 0.4 |
-0.3 |
| 25) |
1.3 / 2 |
0.65 |
| 26) |
0.008 + 7.7 |
7.708 |
| 27) |
761 + -0.7 |
760.3 |
| 28) |
-0.07 - 2 |
-2.07 |
| 29) |
289 + 7 |
296 |
| 30) |
-1 * -2 |
2 |
| 31) |
640 - -22.5 |
662.5 |
| 32) |
8 * 73 |
584 |
| 33) |
0.4 - 0.28 |
0.12 |
| 34) |
2 * 39.48 |
78.96 |
| 35) |
-84 * 5 |
-420 |
| 36) |
1930 - 434 |
1496 |
| 37) |
7353 + 572 |
7925 |
| 38) |
-0.08 + 4 |
3.92 |
| 39) |
4.25 + 0.424 |
4.674 |
| 40) |
65.36 - -22 |
87.36 |
| 41) |
77.7 + 5 |
82.7 |
| 42) |
-986 - 4 |
-990 |
| 43) |
7 * 0.9 |
6.3 |
| 44) |
-0.05 + 59 |
58.95 |
| 45) |
386 + 18 |
404 |
| 46) |
-9.7 / 0.2 |
-48.5 |
| 47) |
10 * 4.8 |
48 |
| 48) |
-2737 / -2.8 |
977.5 |
| 49) |
0.09 - 2.21 |
-2.12 |
| 50) |
879 + 93.4 |
972.4 |
| 51) |
39.2 + -61 |
-21.8 |
| 52) |
-0.09 + -1 |
-1.09 |
| 53) |
35.5 - 0.6 |
34.9 |
| 54) |
3.87 + 78.55 |
82.42 |
| 55) |
0.45 / 0.015 |
30 |
| 56) |
9 - 6 |
3 |
| 57) |
138 + -45 |
93 |
| 58) |
2342 - 423 |
1919 |
| 59) |
492 - -4635 |
5127 |
| 60) |
0.005 - -8.3 |
8.305 |
| 61) |
5.7 * 4 |
22.8 |
| 62) |
857 * 2 |
1714 |
| 63) |
361 + 802 |
1163 |
| 64) |
8739 + 534 |
9273 |
| 65) |
-8 - -13 |
5 |
| 66) |
0.96 + -5 |
-4.04 |
| 67) |
7 / 4 |
1.75 |
| 68) |
-5 - -4 |
-1 |
| 69) |
13.47 + 0.75 |
14.22 |
| 70) |
-0.1 - 23 |
-23.1 |
| 71) |
56.9 + 0.04 |
56.94 |
| 72) |
4 * 8 |
32 |
| 73) |
8 - -903.9 |
911.9 |
| 74) |
-511 + 5553 |
5042 |
| 75) |
71 + 0.26 |
71.26 |
| 76) |
952 + 625 |
1577 |
| 77) |
93.04 + -0.57 |
92.47 |
| 78) |
-0.8 - -912 |
911.2 |
| 79) |
4690 + -79 |
4611 |
| 80) |
0.07 - 0.8 |
-0.73 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized