
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) |
866 - 77 |
789 |
| 2) |
1.08 * 9 |
9.72 |
| 3) |
-7 + -0.7 |
-7.7 |
| 4) |
5.4 - 7 |
-1.6 |
| 5) |
-79 * -3 |
237 |
| 6) |
0.6 * 1 |
0.6 |
| 7) |
2.1 - 0.745 |
1.355 |
| 8) |
10 - 49.4 |
-39.4 |
| 9) |
-12 / 3.2 |
-3.75 |
| 10) |
0.008 + 0.06 |
0.068 |
| 11) |
-7 - 0.3 |
-7.3 |
| 12) |
8.663 + 0.009 |
8.672 |
| 13) |
-451 + 27 |
-424 |
| 14) |
4207 / 5 |
841.4 |
| 15) |
0.42 * -20 |
-8.4 |
| 16) |
-917 - -548 |
-369 |
| 17) |
16 + 7 |
23 |
| 18) |
2 - -5740 |
5742 |
| 19) |
9 - 0.009 |
8.991 |
| 20) |
0.7 * -3 |
-2.1 |
| 21) |
-4 + 9.8 |
5.8 |
| 22) |
-0.81 + -1.68 |
-2.49 |
| 23) |
6112 - 4570 |
1542 |
| 24) |
6 + 33 |
39 |
| 25) |
-8.48 * 75 |
-636 |
| 26) |
995 - 16.3 |
978.7 |
| 27) |
-0.2 * -258 |
51.6 |
| 28) |
-144 / -0.45 |
320 |
| 29) |
2 + 28 |
30 |
| 30) |
27 - 9 |
18 |
| 31) |
543 - -4.1 |
547.1 |
| 32) |
4.6 - 2 |
2.6 |
| 33) |
8.444 + 0.672 |
9.116 |
| 34) |
407.5 + -77 |
330.5 |
| 35) |
91.7 - 1.9 |
89.8 |
| 36) |
-9 + 7.24 |
-1.76 |
| 37) |
1 - -79 |
80 |
| 38) |
0.09 + 0.308 |
0.398 |
| 39) |
-5 - 5 |
-10 |
| 40) |
772 + -156 |
616 |
| 41) |
-316 + 19 |
-297 |
| 42) |
-690 + 49 |
-641 |
| 43) |
82.1 - 0.4 |
81.7 |
| 44) |
27 / 8 |
3.375 |
| 45) |
9 + -0.002 |
8.998 |
| 46) |
377 + -500 |
-123 |
| 47) |
-0.007 - -5 |
4.993 |
| 48) |
950 + 682 |
1632 |
| 49) |
2.6 * 218 |
566.8 |
| 50) |
9 / 0.6 |
15 |
| 51) |
5404 * 0.05 |
270.2 |
| 52) |
-0.17 + -1 |
-1.17 |
| 53) |
2.668 / 0.008 |
333.5 |
| 54) |
-9 + 964 |
955 |
| 55) |
-17.3 + 8 |
-9.3 |
| 56) |
-14 - -7 |
-7 |
| 57) |
47 + -97 |
-50 |
| 58) |
-27 - 4 |
-31 |
| 59) |
156 + 882 |
1038 |
| 60) |
-492 * -2 |
984 |
| 61) |
33 + 5.95 |
38.95 |
| 62) |
-0.63 - 2.4 |
-3.03 |
| 63) |
10 * 77.22 |
772.2 |
| 64) |
4.906 + -0.08 |
4.826 |
| 65) |
-3.5 * 3 |
-10.5 |
| 66) |
3 + -4 |
-1 |
| 67) |
482.7 - -343.9 |
826.6 |
| 68) |
-2.9 * 20 |
-58 |
| 69) |
-0.6 * 4 |
-2.4 |
| 70) |
60 - 81 |
-21 |
| 71) |
932 - 1 |
931 |
| 72) |
61 + 3 |
64 |
| 73) |
704 + 559 |
1263 |
| 74) |
590 - 3 |
587 |
| 75) |
2 + 0.22 |
2.22 |
| 76) |
48 - -7 |
55 |
| 77) |
0.05 + 0.08 |
0.13 |
| 78) |
204 - 90 |
114 |
| 79) |
-5 * -0.713 |
3.565 |
| 80) |
0.5 + -18 |
-17.5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized