
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) |
1876 * 0.05 |
93.8 |
| 2) |
81 + 175 |
256 |
| 3) |
-17 * -0.08 |
1.36 |
| 4) |
310 - 8 |
302 |
| 5) |
327 * 7 |
2289 |
| 6) |
-6 - -0.69 |
-5.31 |
| 7) |
503 + 3.1 |
506.1 |
| 8) |
8.28 / 2 |
4.14 |
| 9) |
6.2 + -7 |
-0.8 |
| 10) |
9 + 0.946 |
9.946 |
| 11) |
8614 + -2727 |
5887 |
| 12) |
-3 - 0.41 |
-3.41 |
| 13) |
-222 / 4 |
-55.5 |
| 14) |
6.8 - -80.52 |
87.32 |
| 15) |
-38.7 + 14.5 |
-24.2 |
| 16) |
49 - -46 |
95 |
| 17) |
5.03 + 0.02 |
5.05 |
| 18) |
-39 + 70 |
31 |
| 19) |
0.51 - 0.53 |
-0.02 |
| 20) |
6 * 0.197 |
1.182 |
| 21) |
-0.004 + 0.06 |
0.056 |
| 22) |
0.13 + -5 |
-4.87 |
| 23) |
2.947 - 1 |
1.947 |
| 24) |
0.8 + 0.02 |
0.82 |
| 25) |
0.23 + 0.31 |
0.54 |
| 26) |
1 + -0.001 |
0.999 |
| 27) |
848 * 0.09 |
76.32 |
| 28) |
7860 + -66 |
7794 |
| 29) |
-0.009 * -542 |
4.878 |
| 30) |
63.1 + 57 |
120.1 |
| 31) |
71 - 7.38 |
63.62 |
| 32) |
-6.7 - 0.43 |
-7.13 |
| 33) |
776 + 8 |
784 |
| 34) |
0.002 + 0.02 |
0.022 |
| 35) |
-0.1 - -6.658 |
6.558 |
| 36) |
0.07 / 2 |
0.035 |
| 37) |
-1.6 + 4.782 |
3.182 |
| 38) |
0.98 * 5 |
4.9 |
| 39) |
-6 + -319 |
-325 |
| 40) |
0.45 - 0.5 |
-0.05 |
| 41) |
-4 * -602 |
2408 |
| 42) |
0.31 + 0.007 |
0.317 |
| 43) |
-0.947 - -0.097 |
-0.85 |
| 44) |
-0.74 - 3 |
-3.74 |
| 45) |
45 + 10 |
55 |
| 46) |
-1.7 - 92 |
-93.7 |
| 47) |
0.001 * 684 |
0.684 |
| 48) |
13 * 0.16 |
2.08 |
| 49) |
-917 + -3 |
-920 |
| 50) |
0.005 * 34 |
0.17 |
| 51) |
698.3 + 85 |
783.3 |
| 52) |
-91 + 96.42 |
5.42 |
| 53) |
9 - -44.8 |
53.8 |
| 54) |
-88 + 86 |
-2 |
| 55) |
111 - -9192 |
9303 |
| 56) |
4.727 - 4 |
0.727 |
| 57) |
6 * -0.28 |
-1.68 |
| 58) |
-22.8 * 20 |
-456 |
| 59) |
475.2 / 32 |
14.85 |
| 60) |
3 - 8 |
-5 |
| 61) |
-95 + 3636 |
3541 |
| 62) |
7 / -0.4 |
-17.5 |
| 63) |
-9 - 3 |
-12 |
| 64) |
1735 - 10 |
1725 |
| 65) |
-896 + 6 |
-890 |
| 66) |
95 - 0.05 |
94.95 |
| 67) |
66 / -0.8 |
-82.5 |
| 68) |
0.006 + 9.462 |
9.468 |
| 69) |
4.35 - -6.89 |
11.24 |
| 70) |
30 * -0.008 |
-0.24 |
| 71) |
0.06 / 0.03 |
2 |
| 72) |
451 - -85 |
536 |
| 73) |
76.2 - 147 |
-70.8 |
| 74) |
38 + -60.1 |
-22.1 |
| 75) |
721 - -1 |
722 |
| 76) |
0.8 / 1 |
0.8 |
| 77) |
746 + -5 |
741 |
| 78) |
5 + 312 |
317 |
| 79) |
0.2 - -90 |
90.2 |
| 80) |
54 + 84 |
138 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized