
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) |
128 - 0.6 |
127.4 |
| 2) |
6 * -62 |
-372 |
| 3) |
154 + -77 |
77 |
| 4) |
0.493 - 0.06 |
0.433 |
| 5) |
57 * 94 |
5358 |
| 6) |
5.6 + -8 |
-2.4 |
| 7) |
0.342 / 2 |
0.171 |
| 8) |
509 + 23 |
532 |
| 9) |
-1 * 2 |
-2 |
| 10) |
0.04 + 6.44 |
6.48 |
| 11) |
47 + 69 |
116 |
| 12) |
139 * 0.045 |
6.255 |
| 13) |
0.9 / 0.003 |
300 |
| 14) |
9530 - 8 |
9522 |
| 15) |
-0.2 - -5.294 |
5.094 |
| 16) |
0.808 - 0.024 |
0.784 |
| 17) |
94 / 2 |
47 |
| 18) |
72 - -0.45 |
72.45 |
| 19) |
0.006 * 855 |
5.13 |
| 20) |
-0.3 * 0.7 |
-0.21 |
| 21) |
-0.011 + 9.815 |
9.804 |
| 22) |
0.07 + 6.702 |
6.772 |
| 23) |
0.7 * -11 |
-7.7 |
| 24) |
9 - 681 |
-672 |
| 25) |
1 * 0.04 |
0.04 |
| 26) |
7.67 / 0.005 |
1534 |
| 27) |
-79.5 + 642 |
562.5 |
| 28) |
-6 + 9 |
3 |
| 29) |
5.2 * 0.005 |
0.026 |
| 30) |
155 * 6.6 |
1023 |
| 31) |
-2 - -9.2 |
7.2 |
| 32) |
2135 + -7 |
2128 |
| 33) |
851 * 0.4 |
340.4 |
| 34) |
-1.46 + 7.72 |
6.26 |
| 35) |
2 + 5782 |
5784 |
| 36) |
15 - -0.05 |
15.05 |
| 37) |
7 + 97 |
104 |
| 38) |
119 - 0.9 |
118.1 |
| 39) |
-300 + 7588 |
7288 |
| 40) |
0.001 * 80 |
0.08 |
| 41) |
-94 * -6.8 |
639.2 |
| 42) |
-492 + 4 |
-488 |
| 43) |
-2 - -80 |
78 |
| 44) |
5 + 71 |
76 |
| 45) |
0.7 / 0.005 |
140 |
| 46) |
-0.02 * -7 |
0.14 |
| 47) |
2920 * -0.01 |
-29.2 |
| 48) |
0.02 * -4 |
-0.08 |
| 49) |
52.1 - 61 |
-8.9 |
| 50) |
-96 / 1 |
-96 |
| 51) |
-43 - -988 |
945 |
| 52) |
1.2 + 88.7 |
89.9 |
| 53) |
1 - 9 |
-8 |
| 54) |
62 * 97 |
6014 |
| 55) |
6.8 / 2 |
3.4 |
| 56) |
-31 - -1710 |
1679 |
| 57) |
-81 - -9569 |
9488 |
| 58) |
5704 - -7 |
5711 |
| 59) |
-0.04 * 660 |
-26.4 |
| 60) |
66 + 73 |
139 |
| 61) |
0.5 - -34.4 |
34.9 |
| 62) |
-6.2 - 0.6 |
-6.8 |
| 63) |
48.4 - -810 |
858.4 |
| 64) |
7 + 5.72 |
12.72 |
| 65) |
-3 * 22 |
-66 |
| 66) |
0.2 - 3.31 |
-3.11 |
| 67) |
2 * 297 |
594 |
| 68) |
0.025 + 0.05 |
0.075 |
| 69) |
-37 - -70 |
33 |
| 70) |
72 + -0.03 |
71.97 |
| 71) |
-4 * 0.425 |
-1.7 |
| 72) |
-7 * 1 |
-7 |
| 73) |
59 - 97.5 |
-38.5 |
| 74) |
5.97 - -2.3 |
8.27 |
| 75) |
9 + 8 |
17 |
| 76) |
152 / 5 |
30.4 |
| 77) |
-93 / 0.1 |
-930 |
| 78) |
-0.26 - -9.384 |
9.124 |
| 79) |
6 + 0.529 |
6.529 |
| 80) |
59 - 9 |
50 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized