
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) |
308.7 + -9.4 |
299.3 |
| 2) |
-0.09 * -9 |
0.81 |
| 3) |
391 + 8195 |
8586 |
| 4) |
5 - 0.099 |
4.901 |
| 5) |
58 + -844 |
-786 |
| 6) |
9.3 - 1 |
8.3 |
| 7) |
0.006 * 1368 |
8.208 |
| 8) |
-4 - 128 |
-132 |
| 9) |
0.09 * 615 |
55.35 |
| 10) |
9 + 40 |
49 |
| 11) |
2.297 + 3.4 |
5.697 |
| 12) |
4.92 - 3 |
1.92 |
| 13) |
8.4 + 977.9 |
986.3 |
| 14) |
312 - 9 |
303 |
| 15) |
-95 - -4780 |
4685 |
| 16) |
-0.08 + 1 |
0.92 |
| 17) |
9.8 - -59 |
68.8 |
| 18) |
3 + -27 |
-24 |
| 19) |
7 - 0.008 |
6.992 |
| 20) |
0.08 * 92 |
7.36 |
| 21) |
-23 / 4 |
-5.75 |
| 22) |
8659 + 400 |
9059 |
| 23) |
79 - 1 |
78 |
| 24) |
-3 * 3.09 |
-9.27 |
| 25) |
90 + 867 |
957 |
| 26) |
0.6 - 52 |
-51.4 |
| 27) |
5.59 + -8.83 |
-3.24 |
| 28) |
2.9 * 48 |
139.2 |
| 29) |
955 - -68 |
1023 |
| 30) |
9 + 461 |
470 |
| 31) |
86.7 - -7.2 |
93.9 |
| 32) |
3069 - 1467 |
1602 |
| 33) |
-34 * 0.05 |
-1.7 |
| 34) |
0.7 + -2 |
-1.3 |
| 35) |
605 / 242 |
2.5 |
| 36) |
-61 + -664 |
-725 |
| 37) |
-0.7 + -45 |
-45.7 |
| 38) |
0.07 - 0.004 |
0.066 |
| 39) |
99.1 - -50 |
149.1 |
| 40) |
6 / -1 |
-6 |
| 41) |
-0.008 - -0.3 |
0.292 |
| 42) |
1.947 + 0.003 |
1.95 |
| 43) |
1.63 + 4.88 |
6.51 |
| 44) |
95 - 94 |
1 |
| 45) |
-0.08 / 2 |
-0.04 |
| 46) |
-6 * 5.6 |
-33.6 |
| 47) |
703 - 0.9 |
702.1 |
| 48) |
6 * 337 |
2022 |
| 49) |
5.35 + -7 |
-1.65 |
| 50) |
-12.1 + 5.4 |
-6.7 |
| 51) |
0.083 / 1 |
0.083 |
| 52) |
38 - -0.08 |
38.08 |
| 53) |
39.4 + 2 |
41.4 |
| 54) |
314 + 7 |
321 |
| 55) |
2 * 943 |
1886 |
| 56) |
60.2 + 125 |
185.2 |
| 57) |
2.9 + 4 |
6.9 |
| 58) |
13.8 * 0.09 |
1.242 |
| 59) |
909 * 5 |
4545 |
| 60) |
902 + -41.2 |
860.8 |
| 61) |
6 - -6.84 |
12.84 |
| 62) |
26 + 269 |
295 |
| 63) |
8 / 0.5 |
16 |
| 64) |
2 * 584 |
1168 |
| 65) |
0.07 + -2 |
-1.93 |
| 66) |
-74.2 + 461 |
386.8 |
| 67) |
0.008 + 8.926 |
8.934 |
| 68) |
2 * 7.75 |
15.5 |
| 69) |
5429 - 5741 |
-312 |
| 70) |
265.8 - -5.8 |
271.6 |
| 71) |
-0.397 - -2 |
1.603 |
| 72) |
-0.3 - 56 |
-56.3 |
| 73) |
17 * -2 |
-34 |
| 74) |
0.13 + -0.1 |
0.03 |
| 75) |
9.632 - -0.27 |
9.902 |
| 76) |
8 + -5.7 |
2.3 |
| 77) |
4 * 6 |
24 |
| 78) |
2.6 - 3.5 |
-0.9 |
| 79) |
81.9 + -4.2 |
77.7 |
| 80) |
2 * 500 |
1000 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized