
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) |
0.893 * 11 |
9.823 |
| 2) |
0.19 - 0.1 |
0.09 |
| 3) |
0.852 * 1 |
0.852 |
| 4) |
0.06 - -0.008 |
0.068 |
| 5) |
5 - -3.4 |
8.4 |
| 6) |
0.7 * 0.07 |
0.049 |
| 7) |
-91 - 65 |
-156 |
| 8) |
8 * 812 |
6496 |
| 9) |
7 + -0.595 |
6.405 |
| 10) |
7 + 2 |
9 |
| 11) |
-8 * 74 |
-592 |
| 12) |
0.5 - 0.002 |
0.498 |
| 13) |
3 + 2996 |
2999 |
| 14) |
96 + 97 |
193 |
| 15) |
-396 / 1 |
-396 |
| 16) |
4.8 * 5.3 |
25.44 |
| 17) |
760.6 - 1 |
759.6 |
| 18) |
-0.338 * -70 |
23.66 |
| 19) |
4 + 561 |
565 |
| 20) |
1138 + 618 |
1756 |
| 21) |
9 / 1 |
9 |
| 22) |
-65 - 85 |
-150 |
| 23) |
-0.5 * -71 |
35.5 |
| 24) |
-355.5 / -0.5 |
711 |
| 25) |
23 + -821 |
-798 |
| 26) |
0.05 + -0.02 |
0.03 |
| 27) |
0.04 - 2 |
-1.96 |
| 28) |
0.066 + -0.02 |
0.046 |
| 29) |
0.98 - 6 |
-5.02 |
| 30) |
0.754 + 4.68 |
5.434 |
| 31) |
-406 / 28 |
-14.5 |
| 32) |
2 - 44 |
-42 |
| 33) |
-6 + -15 |
-21 |
| 34) |
833.6 - -73 |
906.6 |
| 35) |
16.6 * 0.035 |
0.581 |
| 36) |
202 - -3425 |
3627 |
| 37) |
-4.8 * 77.5 |
-372 |
| 38) |
0.473 + 0.966 |
1.439 |
| 39) |
29.9 / 4 |
7.475 |
| 40) |
-9 * -683 |
6147 |
| 41) |
0.4 - -117 |
117.4 |
| 42) |
-6 + 2.84 |
-3.16 |
| 43) |
360 - 5 |
355 |
| 44) |
212 + 1867 |
2079 |
| 45) |
4 / 0.8 |
5 |
| 46) |
62 - 18.89 |
43.11 |
| 47) |
190 + 34 |
224 |
| 48) |
750 - 86 |
664 |
| 49) |
-7 - -330 |
323 |
| 50) |
70 * 0.098 |
6.86 |
| 51) |
-2608 / 8 |
-326 |
| 52) |
21 * 5 |
105 |
| 53) |
15 + -0.02 |
14.98 |
| 54) |
-4 / 4 |
-1 |
| 55) |
22 - 0.31 |
21.69 |
| 56) |
1.93 * 39 |
75.27 |
| 57) |
3.77 * -1 |
-3.77 |
| 58) |
8 + -875 |
-867 |
| 59) |
-0.51 * -31 |
15.81 |
| 60) |
96 - 51 |
45 |
| 61) |
10 * 31.38 |
313.8 |
| 62) |
629.4 * 5 |
3147 |
| 63) |
0.004 + 5.2 |
5.204 |
| 64) |
679 - 550 |
129 |
| 65) |
-367.9 + 687 |
319.1 |
| 66) |
1 - 6 |
-5 |
| 67) |
0.9 / 0.5 |
1.8 |
| 68) |
-3429 / -9 |
381 |
| 69) |
2 - 0.298 |
1.702 |
| 70) |
1 - 0.048 |
0.952 |
| 71) |
3 * 0.014 |
0.042 |
| 72) |
122 + -95 |
27 |
| 73) |
4.46 + -7 |
-2.54 |
| 74) |
983 - -21 |
1004 |
| 75) |
-0.3 * 3 |
-0.9 |
| 76) |
0.3 - 75 |
-74.7 |
| 77) |
9 * 1 |
9 |
| 78) |
11 - 0.9 |
10.1 |
| 79) |
-3 - 3 |
-6 |
| 80) |
5.18 + 0.69 |
5.87 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized