
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) |
8.065 - 0.02 |
8.045 |
| 2) |
-1 + 0.7 |
-0.3 |
| 3) |
-96 + -36 |
-132 |
| 4) |
-684 - -22 |
-662 |
| 5) |
4 + 0.66 |
4.66 |
| 6) |
11 - -0.71 |
11.71 |
| 7) |
9 * -0.92 |
-8.28 |
| 8) |
45 - 678 |
-633 |
| 9) |
-856 - -272 |
-584 |
| 10) |
0.006 * 2 |
0.012 |
| 11) |
-0.01 + 5.47 |
5.46 |
| 12) |
-0.96 + 2.11 |
1.15 |
| 13) |
-87 / 87 |
-1 |
| 14) |
4.89 - 0.016 |
4.874 |
| 15) |
0.05 - -1 |
1.05 |
| 16) |
14 + -3 |
11 |
| 17) |
-690 - 6 |
-696 |
| 18) |
-0.5 * 68.4 |
-34.2 |
| 19) |
-34 - 97 |
-131 |
| 20) |
8.31 / 15 |
0.554 |
| 21) |
712 * -0.5 |
-356 |
| 22) |
0.032 + 0.009 |
0.041 |
| 23) |
2 - 5 |
-3 |
| 24) |
561 * 0.4 |
224.4 |
| 25) |
0.07 * -63 |
-4.41 |
| 26) |
6 * 81 |
486 |
| 27) |
71.06 - 80 |
-8.94 |
| 28) |
19 / -38 |
-0.5 |
| 29) |
0.3 + 89.95 |
90.25 |
| 30) |
6 - -699 |
705 |
| 31) |
0.02 * 12 |
0.24 |
| 32) |
0.04 + 21 |
21.04 |
| 33) |
4 / -0.5 |
-8 |
| 34) |
-0.7 - -948 |
947.3 |
| 35) |
748 + -659 |
89 |
| 36) |
0.01 - -0.01 |
0.02 |
| 37) |
552 - 306 |
246 |
| 38) |
6 + -0.02 |
5.98 |
| 39) |
28 + -19.7 |
8.3 |
| 40) |
-8.3 / -4 |
2.075 |
| 41) |
0.33 - 1.44 |
-1.11 |
| 42) |
77 * 82 |
6314 |
| 43) |
368 + 0.5 |
368.5 |
| 44) |
9 * -37 |
-333 |
| 45) |
-6 + 3.9 |
-2.1 |
| 46) |
0.6 - -99 |
99.6 |
| 47) |
33 + -91.3 |
-58.3 |
| 48) |
-4.8 * -55 |
264 |
| 49) |
1 - -641 |
642 |
| 50) |
0.3 / 3 |
0.1 |
| 51) |
0.2 - 0.157 |
0.043 |
| 52) |
-0.8 + 6.203 |
5.403 |
| 53) |
0.77 - -44 |
44.77 |
| 54) |
86 - 4 |
82 |
| 55) |
93.3 + 0.09 |
93.39 |
| 56) |
0.01 + 0.086 |
0.096 |
| 57) |
-762 / 1 |
-762 |
| 58) |
97 + 88.2 |
185.2 |
| 59) |
950 * 3.98 |
3781 |
| 60) |
-238 + 30 |
-208 |
| 61) |
566 - 4 |
562 |
| 62) |
6 * -0.08 |
-0.48 |
| 63) |
0.1 - 1.14 |
-1.04 |
| 64) |
-54.8 - 19 |
-73.8 |
| 65) |
2 * 11.8 |
23.6 |
| 66) |
-88 - 9 |
-97 |
| 67) |
9 + 0.004 |
9.004 |
| 68) |
710 - -178 |
888 |
| 69) |
7 / -7 |
-1 |
| 70) |
3656 + 94 |
3750 |
| 71) |
576 + -720 |
-144 |
| 72) |
350.4 + 10 |
360.4 |
| 73) |
5.8 + 0.009 |
5.809 |
| 74) |
5 - 0.338 |
4.662 |
| 75) |
3.8 - -0.4 |
4.2 |
| 76) |
0.631 / 0.002 |
315.5 |
| 77) |
7.5 * 3 |
22.5 |
| 78) |
0.5 + 0.005 |
0.505 |
| 79) |
-18 / 0.18 |
-100 |
| 80) |
60 * 1 |
60 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized