
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.888 - 0.088 |
0.8 |
| 2) |
10 + 84 |
94 |
| 3) |
780 - -4029 |
4809 |
| 4) |
8635 - 42 |
8593 |
| 5) |
3.7 + 70 |
73.7 |
| 6) |
289.6 - -522 |
811.6 |
| 7) |
469 * 8 |
3752 |
| 8) |
-1 - -641 |
640 |
| 9) |
7 * 0.005 |
0.035 |
| 10) |
8 * 3 |
24 |
| 11) |
86 + -116 |
-30 |
| 12) |
-64 - -1108 |
1044 |
| 13) |
5 - 808 |
-803 |
| 14) |
4 - -0.004 |
4.004 |
| 15) |
5 + 92.63 |
97.63 |
| 16) |
5.2 + 7 |
12.2 |
| 17) |
9 + 4 |
13 |
| 18) |
-13 * 7 |
-91 |
| 19) |
8 + 828 |
836 |
| 20) |
32 * -2 |
-64 |
| 21) |
948 + -782 |
166 |
| 22) |
9432 + 4 |
9436 |
| 23) |
483 - 20 |
463 |
| 24) |
-0.004 + 7 |
6.996 |
| 25) |
-59 - 135 |
-194 |
| 26) |
0.08 * 0.05 |
0.004 |
| 27) |
137 - -824.3 |
961.3 |
| 28) |
0.004 * 7 |
0.028 |
| 29) |
332 / -1 |
-332 |
| 30) |
8.1 + 44 |
52.1 |
| 31) |
-0.9 - -557 |
556.1 |
| 32) |
78 / -0.8 |
-97.5 |
| 33) |
0.634 - 0.051 |
0.583 |
| 34) |
96 + -622 |
-526 |
| 35) |
0.925 * 4.4 |
4.07 |
| 36) |
-0.007 + 0.023 |
0.016 |
| 37) |
426 * 0.03 |
12.78 |
| 38) |
-0.1 - 69 |
-69.1 |
| 39) |
-3 + 94.1 |
91.1 |
| 40) |
9 * 44 |
396 |
| 41) |
74 * 0.32 |
23.68 |
| 42) |
-8 - -455 |
447 |
| 43) |
-378 + 73 |
-305 |
| 44) |
0.01 - 6.29 |
-6.28 |
| 45) |
-371 * 0.2 |
-74.2 |
| 46) |
-0.002 + 4.5 |
4.498 |
| 47) |
8.88 - 3 |
5.88 |
| 48) |
-83 - 32 |
-115 |
| 49) |
-4 * -241 |
964 |
| 50) |
468 - -35 |
503 |
| 51) |
-5234 - -9092 |
3858 |
| 52) |
-0.007 - -4 |
3.993 |
| 53) |
0.53 - 0.6 |
-0.07 |
| 54) |
0.01 * -246 |
-2.46 |
| 55) |
-0.006 * -4 |
0.024 |
| 56) |
-9 + 23 |
14 |
| 57) |
6.09 + -3 |
3.09 |
| 58) |
2 * -12 |
-24 |
| 59) |
2 * 0.72 |
1.44 |
| 60) |
-93 * 0.02 |
-1.86 |
| 61) |
7523 + -19 |
7504 |
| 62) |
0.6 + -0.1 |
0.5 |
| 63) |
28 - 339 |
-311 |
| 64) |
-6 * 4 |
-24 |
| 65) |
-4 + 20.01 |
16.01 |
| 66) |
41 - 71 |
-30 |
| 67) |
1 * 0.99 |
0.99 |
| 68) |
-97 + 2 |
-95 |
| 69) |
2396 / 1 |
2396 |
| 70) |
-637 * -5 |
3185 |
| 71) |
0.7 - 79 |
-78.3 |
| 72) |
1 + 5 |
6 |
| 73) |
-171 - 6 |
-177 |
| 74) |
-1 - 3.6 |
-4.6 |
| 75) |
-0.004 - -3.4 |
3.396 |
| 76) |
17 + 110 |
127 |
| 77) |
3 / -2 |
-1.5 |
| 78) |
-68.9 - 4 |
-72.9 |
| 79) |
608.4 - 23 |
585.4 |
| 80) |
1 - 0.723 |
0.277 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized