
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) |
91.5 - 0.55 |
90.95 |
| 2) |
-2.6 + 78.78 |
76.18 |
| 3) |
4 * 1.56 |
6.24 |
| 4) |
8 * 841 |
6728 |
| 5) |
1 + 0.1 |
1.1 |
| 6) |
0.003 - -0.6 |
0.603 |
| 7) |
-0.9 - -85 |
84.1 |
| 8) |
87.09 + 0.04 |
87.13 |
| 9) |
0.766 * 6 |
4.596 |
| 10) |
0.004 * 33 |
0.132 |
| 11) |
66 - 5 |
61 |
| 12) |
89 - 3 |
86 |
| 13) |
-5.56 + 0.09 |
-5.47 |
| 14) |
-781 - -106 |
-675 |
| 15) |
6 + 820 |
826 |
| 16) |
0.8 * 3 |
2.4 |
| 17) |
-72 / 45 |
-1.6 |
| 18) |
-8 * 4 |
-32 |
| 19) |
-97 + -0.2 |
-97.2 |
| 20) |
-8 - -0.3 |
-7.7 |
| 21) |
-72 + 327 |
255 |
| 22) |
81 * 78 |
6318 |
| 23) |
225 - -490 |
715 |
| 24) |
657 + 73 |
730 |
| 25) |
1.903 + 5 |
6.903 |
| 26) |
204 * 7 |
1428 |
| 27) |
7 * -50 |
-350 |
| 28) |
6 - 2.9 |
3.1 |
| 29) |
27 * 7 |
189 |
| 30) |
3060 * 0.05 |
153 |
| 31) |
-1 + -5.34 |
-6.34 |
| 32) |
4 - 1 |
3 |
| 33) |
8 * 0.006 |
0.048 |
| 34) |
-60 + 386 |
326 |
| 35) |
377 - 70 |
307 |
| 36) |
-744 - -8 |
-736 |
| 37) |
840 * -0.007 |
-5.88 |
| 38) |
0.44 + 24 |
24.44 |
| 39) |
170 * -2.7 |
-459 |
| 40) |
2592 + 47 |
2639 |
| 41) |
4 * 78 |
312 |
| 42) |
-0.074 + 8 |
7.926 |
| 43) |
0.469 - -2 |
2.469 |
| 44) |
61 + -569 |
-508 |
| 45) |
4.14 + 5 |
9.14 |
| 46) |
881 + -78.2 |
802.8 |
| 47) |
-302 + -93 |
-395 |
| 48) |
4 + 19 |
23 |
| 49) |
223 - 718 |
-495 |
| 50) |
-8300 * -0.066 |
547.8 |
| 51) |
71.3 + -4 |
67.3 |
| 52) |
1.7 - 0.181 |
1.519 |
| 53) |
2.4 - -0.065 |
2.465 |
| 54) |
47.7 + 872 |
919.7 |
| 55) |
4 * 92 |
368 |
| 56) |
124.7 + -0.5 |
124.2 |
| 57) |
0.08 + 46 |
46.08 |
| 58) |
13 * -3 |
-39 |
| 59) |
-9.91 - -7 |
-2.91 |
| 60) |
92 + 561 |
653 |
| 61) |
-12 - 95 |
-107 |
| 62) |
-336 * -5 |
1680 |
| 63) |
9 + -331 |
-322 |
| 64) |
4.22 * 1.6 |
6.752 |
| 65) |
10 * 0.007 |
0.07 |
| 66) |
-0.08 + 76.2 |
76.12 |
| 67) |
-6.1 - -496.3 |
490.2 |
| 68) |
8.016 - 2 |
6.016 |
| 69) |
-65 + 5.4 |
-59.6 |
| 70) |
58.6 * 0.005 |
0.293 |
| 71) |
85 - 4 |
81 |
| 72) |
7.4 - -9 |
16.4 |
| 73) |
168 - 70 |
98 |
| 74) |
865 + -69 |
796 |
| 75) |
547 + 55 |
602 |
| 76) |
-99 + 80 |
-19 |
| 77) |
-8 - 107 |
-115 |
| 78) |
-0.05 + 0.6 |
0.55 |
| 79) |
8 * -9.6 |
-76.8 |
| 80) |
14.4 + 865 |
879.4 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized