
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) |
64 + 7.98 |
71.98 |
| 2) |
9 - -0.353 |
9.353 |
| 3) |
7 + -0.04 |
6.96 |
| 4) |
9 + 17.5 |
26.5 |
| 5) |
6 - -4.9 |
10.9 |
| 6) |
28 - 53 |
-25 |
| 7) |
0.525 + 3 |
3.525 |
| 8) |
-4 + -94.8 |
-98.8 |
| 9) |
3.99 - 0.82 |
3.17 |
| 10) |
43 - -513 |
556 |
| 11) |
7 + 47 |
54 |
| 12) |
33 - 7 |
26 |
| 13) |
9 * 96 |
864 |
| 14) |
4 - -2.58 |
6.58 |
| 15) |
2.025 + 0.1 |
2.125 |
| 16) |
0.09 / -0.18 |
-0.5 |
| 17) |
-0.07 * 48 |
-3.36 |
| 18) |
2.8 - 4 |
-1.2 |
| 19) |
-90 - 9 |
-99 |
| 20) |
4 + -51 |
-47 |
| 21) |
79 - 7.9 |
71.1 |
| 22) |
-7 * 46 |
-322 |
| 23) |
56.6 + 415 |
471.6 |
| 24) |
9.92 / 0.002 |
4960 |
| 25) |
52.6 * 0.1 |
5.26 |
| 26) |
-99 * -0.49 |
48.51 |
| 27) |
-250 - 8 |
-258 |
| 28) |
2 * 9.2 |
18.4 |
| 29) |
6.3 + 4 |
10.3 |
| 30) |
9876 + 9 |
9885 |
| 31) |
0.149 - -0.004 |
0.153 |
| 32) |
928.8 + -71 |
857.8 |
| 33) |
-122 - 7 |
-129 |
| 34) |
36 + 7 |
43 |
| 35) |
5.7 - 2.5 |
3.2 |
| 36) |
-7 * -0.19 |
1.33 |
| 37) |
6 + 9318 |
9324 |
| 38) |
0.08 + 0.088 |
0.168 |
| 39) |
0.001 + 9.544 |
9.545 |
| 40) |
4727 - 6 |
4721 |
| 41) |
742 + -62 |
680 |
| 42) |
0.48 - -9 |
9.48 |
| 43) |
0.1 - -0.002 |
0.102 |
| 44) |
0.45 - 0.06 |
0.39 |
| 45) |
-0.61 * 4 |
-2.44 |
| 46) |
5335 - 70 |
5265 |
| 47) |
-4 - -575.9 |
571.9 |
| 48) |
3 + 837 |
840 |
| 49) |
2 + 12.8 |
14.8 |
| 50) |
323 - -5392 |
5715 |
| 51) |
79.1 - -6 |
85.1 |
| 52) |
0.05 - -87.2 |
87.25 |
| 53) |
-0.96 - -91 |
90.04 |
| 54) |
0.004 * 80 |
0.32 |
| 55) |
-0.007 + 5 |
4.993 |
| 56) |
-0.573 + 4 |
3.427 |
| 57) |
71 * 0.002 |
0.142 |
| 58) |
-6 - 1.73 |
-7.73 |
| 59) |
2.8 + 0.03 |
2.83 |
| 60) |
0.05 * 8902 |
445.1 |
| 61) |
-5 - 9 |
-14 |
| 62) |
8 + 0.04 |
8.04 |
| 63) |
-6.5 * 8.8 |
-57.2 |
| 64) |
60 + 0.3 |
60.3 |
| 65) |
-592 + 82 |
-510 |
| 66) |
3.108 / 0.5 |
6.216 |
| 67) |
4 * 0.12 |
0.48 |
| 68) |
0.06 - 4 |
-3.94 |
| 69) |
54 / 0.6 |
90 |
| 70) |
44 + -750 |
-706 |
| 71) |
-8.1 / 4.5 |
-1.8 |
| 72) |
8 + 0.526 |
8.526 |
| 73) |
-0.029 - -8 |
7.971 |
| 74) |
-69 + -2 |
-71 |
| 75) |
-559 + 60 |
-499 |
| 76) |
487.4 - -351 |
838.4 |
| 77) |
9 * -2.1 |
-18.9 |
| 78) |
50.3 - -219 |
269.3 |
| 79) |
8 - 4 |
4 |
| 80) |
-0.03 - -5 |
4.97 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized