
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) |
2.931 + 0.046 |
2.977 |
| 2) |
-9.55 * -70 |
668.5 |
| 3) |
0.2 - -5.14 |
5.34 |
| 4) |
13 * 0.7 |
9.1 |
| 5) |
-562 - -5421 |
4859 |
| 6) |
-5 - 1.1 |
-6.1 |
| 7) |
889 - 5.7 |
883.3 |
| 8) |
-798 + -8 |
-806 |
| 9) |
743.4 - 3 |
740.4 |
| 10) |
-1 * 761 |
-761 |
| 11) |
-9 + -0.6 |
-9.6 |
| 12) |
9 + 7 |
16 |
| 13) |
7 - 0.24 |
6.76 |
| 14) |
53 + -8.08 |
44.92 |
| 15) |
-864 - -6 |
-858 |
| 16) |
1.903 * 2 |
3.806 |
| 17) |
56 / -50 |
-1.12 |
| 18) |
-1 * -0.4 |
0.4 |
| 19) |
-15 + 796 |
781 |
| 20) |
797 + -3 |
794 |
| 21) |
5.72 + 51 |
56.72 |
| 22) |
2 * 0.9 |
1.8 |
| 23) |
45 + 839.8 |
884.8 |
| 24) |
3408 - 41 |
3367 |
| 25) |
360 + -50.5 |
309.5 |
| 26) |
48 * 0.2 |
9.6 |
| 27) |
85.5 + -4.72 |
80.78 |
| 28) |
-12 / 25 |
-0.48 |
| 29) |
50 + 0.64 |
50.64 |
| 30) |
561.1 + 52.1 |
613.2 |
| 31) |
50 - 354 |
-304 |
| 32) |
96 * 0.003 |
0.288 |
| 33) |
0.006 + 5.4 |
5.406 |
| 34) |
8.1 - 6 |
2.1 |
| 35) |
790 + 6 |
796 |
| 36) |
29 + 0.44 |
29.44 |
| 37) |
3424 - -530 |
3954 |
| 38) |
-144 + 8 |
-136 |
| 39) |
-29 / 29 |
-1 |
| 40) |
0.06 - -7 |
7.06 |
| 41) |
0.98 + 69.2 |
70.18 |
| 42) |
916 - -4 |
920 |
| 43) |
0.001 + 0.013 |
0.014 |
| 44) |
589 + 9240 |
9829 |
| 45) |
901 * 9 |
8109 |
| 46) |
5 - -9 |
14 |
| 47) |
8 + 240.5 |
248.5 |
| 48) |
1.152 + 0.02 |
1.172 |
| 49) |
0.091 + 8 |
8.091 |
| 50) |
7.7 * 9 |
69.3 |
| 51) |
9 / 0.3 |
30 |
| 52) |
8 + 41 |
49 |
| 53) |
2 * 1917 |
3834 |
| 54) |
-0.006 + 0.9 |
0.894 |
| 55) |
-4 - 25.7 |
-29.7 |
| 56) |
6.8 / -1 |
-6.8 |
| 57) |
0.05 + 8 |
8.05 |
| 58) |
417 - -6 |
423 |
| 59) |
-63 * -0.75 |
47.25 |
| 60) |
0.032 / 0.002 |
16 |
| 61) |
-31 + 7 |
-24 |
| 62) |
5 + 99 |
104 |
| 63) |
7972 / 1 |
7972 |
| 64) |
6 * 0.8 |
4.8 |
| 65) |
254 + 5872 |
6126 |
| 66) |
280 + 1 |
281 |
| 67) |
3.6 - 30.4 |
-26.8 |
| 68) |
987 + 359 |
1346 |
| 69) |
0.009 + 0.6 |
0.609 |
| 70) |
-4.6 / 4 |
-1.15 |
| 71) |
0.008 + 2.4 |
2.408 |
| 72) |
0.6 * -2 |
-1.2 |
| 73) |
351.3 - 6.5 |
344.8 |
| 74) |
21 - -0.5 |
21.5 |
| 75) |
-4.6 - -3 |
-1.6 |
| 76) |
23 / 0.8 |
28.75 |
| 77) |
-0.005 * 4 |
-0.02 |
| 78) |
4 + -967 |
-963 |
| 79) |
931 - 0.5 |
930.5 |
| 80) |
5.07 - 0.068 |
5.002 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized