
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) |
1.32 + 4 |
5.32 |
| 2) |
1.93 - 0.049 |
1.881 |
| 3) |
73 * -5 |
-365 |
| 4) |
903 * 0.004 |
3.612 |
| 5) |
31.22 + 9.27 |
40.49 |
| 6) |
3 + 847 |
850 |
| 7) |
65 - 0.7 |
64.3 |
| 8) |
2.4 + 488 |
490.4 |
| 9) |
5 - 0.99 |
4.01 |
| 10) |
1.5 * 5 |
7.5 |
| 11) |
835 - -39.1 |
874.1 |
| 12) |
37.04 - 5 |
32.04 |
| 13) |
-2.1 + 36 |
33.9 |
| 14) |
-895 * -0.006 |
5.37 |
| 15) |
33.7 + -4 |
29.7 |
| 16) |
-0.4 * -28 |
11.2 |
| 17) |
553 + 2 |
555 |
| 18) |
-40 / -1 |
40 |
| 19) |
0.83 - 0.9 |
-0.07 |
| 20) |
801 + -7.2 |
793.8 |
| 21) |
-0.3 * 32 |
-9.6 |
| 22) |
-61 + -332 |
-393 |
| 23) |
-0.08 / 0.005 |
-16 |
| 24) |
-0.005 * 470 |
-2.35 |
| 25) |
0.7 + -0.006 |
0.694 |
| 26) |
55 + -8 |
47 |
| 27) |
1 - 7 |
-6 |
| 28) |
9 / 0.008 |
1125 |
| 29) |
56.8 - 0.07 |
56.73 |
| 30) |
53.1 + -7.2 |
45.9 |
| 31) |
0.5 * 0.008 |
0.004 |
| 32) |
6 + -8.11 |
-2.11 |
| 33) |
78 - 372 |
-294 |
| 34) |
532 - -201.7 |
733.7 |
| 35) |
6 + 84 |
90 |
| 36) |
673 / 0.2 |
3365 |
| 37) |
4.294 + 0.03 |
4.324 |
| 38) |
-6 - -21 |
15 |
| 39) |
0.9 + 658 |
658.9 |
| 40) |
-22.2 * 0.05 |
-1.11 |
| 41) |
0.04 - 3 |
-2.96 |
| 42) |
4.9 / 0.2 |
24.5 |
| 43) |
-3 + -2.84 |
-5.84 |
| 44) |
3.6 / 0.1 |
36 |
| 45) |
97 - -55 |
152 |
| 46) |
138 * 9 |
1242 |
| 47) |
0.02 - -8 |
8.02 |
| 48) |
-8 * -5 |
40 |
| 49) |
4 + 295.7 |
299.7 |
| 50) |
0.034 + 4.641 |
4.675 |
| 51) |
994 - 991 |
3 |
| 52) |
63 + 95 |
158 |
| 53) |
0.2 + -7.9 |
-7.7 |
| 54) |
0.5 + 18.4 |
18.9 |
| 55) |
913 + 0.1 |
913.1 |
| 56) |
34.4 + 3.5 |
37.9 |
| 57) |
34 - 5 |
29 |
| 58) |
52 + 9.9 |
61.9 |
| 59) |
3 - 0.04 |
2.96 |
| 60) |
-7 * 51 |
-357 |
| 61) |
-8 * -14 |
112 |
| 62) |
24 + 80 |
104 |
| 63) |
4 * -0.03 |
-0.12 |
| 64) |
-82 * 0.07 |
-5.74 |
| 65) |
-0.03 + 7.75 |
7.72 |
| 66) |
-0.69 + 3.1 |
2.41 |
| 67) |
117 - 6 |
111 |
| 68) |
-0.32 - 3.2 |
-3.52 |
| 69) |
64 / 0.008 |
8000 |
| 70) |
5 + 370 |
375 |
| 71) |
8 - 4.9 |
3.1 |
| 72) |
-588 - 8 |
-596 |
| 73) |
-845 + -82 |
-927 |
| 74) |
0.007 * 1 |
0.007 |
| 75) |
6 + 4 |
10 |
| 76) |
1.7 - 7 |
-5.3 |
| 77) |
88 + 0.1 |
88.1 |
| 78) |
0.03 - 0.7 |
-0.67 |
| 79) |
19 + 0.8 |
19.8 |
| 80) |
-0.4 / 4 |
-0.1 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized