
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) |
-29 - -13 |
-16 |
| 2) |
3673 + 2 |
3675 |
| 3) |
-6 / -1 |
6 |
| 4) |
713 / 155 |
4.6 |
| 5) |
16.6 + 2 |
18.6 |
| 6) |
-26.3 - -29 |
2.7 |
| 7) |
89 - -797 |
886 |
| 8) |
70 + 5 |
75 |
| 9) |
1663 - 42 |
1621 |
| 10) |
117 - 11.9 |
105.1 |
| 11) |
35.5 * 0.068 |
2.414 |
| 12) |
549 - 37.6 |
511.4 |
| 13) |
9.605 + -7.144 |
2.461 |
| 14) |
58 * 5 |
290 |
| 15) |
4.4 - 40 |
-35.6 |
| 16) |
-405 + 38 |
-367 |
| 17) |
10 * -0.2 |
-2 |
| 18) |
0.005 - -2.753 |
2.758 |
| 19) |
9 * 33 |
297 |
| 20) |
24 / -6 |
-4 |
| 21) |
0.6 + 36.65 |
37.25 |
| 22) |
-1 - 135 |
-136 |
| 23) |
770 * 0.008 |
6.16 |
| 24) |
4.8 / -0.1 |
-48 |
| 25) |
6023 + 95 |
6118 |
| 26) |
-0.95 - 3 |
-3.95 |
| 27) |
5 + -1 |
4 |
| 28) |
0.9 + 5.03 |
5.93 |
| 29) |
4 * 6.5 |
26 |
| 30) |
6 - 55 |
-49 |
| 31) |
4 - 9.44 |
-5.44 |
| 32) |
0.09 * -94 |
-8.46 |
| 33) |
0.2 - 1.14 |
-0.94 |
| 34) |
69 + 906 |
975 |
| 35) |
99 + 0.8 |
99.8 |
| 36) |
73.1 * 1 |
73.1 |
| 37) |
0.8 + 602 |
602.8 |
| 38) |
-0.3 - 0.6 |
-0.9 |
| 39) |
926 * 0.03 |
27.78 |
| 40) |
0.01 - 3.9 |
-3.89 |
| 41) |
6 - 0.002 |
5.998 |
| 42) |
-207 + -93 |
-300 |
| 43) |
0.01 - 2.7 |
-2.69 |
| 44) |
9.044 / 0.007 |
1292 |
| 45) |
559 + 24 |
583 |
| 46) |
-14 * -0.83 |
11.62 |
| 47) |
294.5 + 87 |
381.5 |
| 48) |
2 - 6.14 |
-4.14 |
| 49) |
0.008 + 1.65 |
1.658 |
| 50) |
109.6 * 0.03 |
3.288 |
| 51) |
-0.02 - -9 |
8.98 |
| 52) |
-7 / 2 |
-3.5 |
| 53) |
-0.01 * 8 |
-0.08 |
| 54) |
-4 + 9 |
5 |
| 55) |
8 - 7.6 |
0.4 |
| 56) |
0.5 / 2 |
0.25 |
| 57) |
82 + -55.5 |
26.5 |
| 58) |
8 - 9.4 |
-1.4 |
| 59) |
6 * 182 |
1092 |
| 60) |
-0.08 - 6 |
-6.08 |
| 61) |
9573 + 13 |
9586 |
| 62) |
-97 - -3874 |
3777 |
| 63) |
2843 - -593 |
3436 |
| 64) |
0.003 - -0.09 |
0.093 |
| 65) |
0.8 + -8 |
-7.2 |
| 66) |
-75.4 + 850 |
774.6 |
| 67) |
71.7 - 9.2 |
62.5 |
| 68) |
980 - 13 |
967 |
| 69) |
70 + 37 |
107 |
| 70) |
-76.5 + -2.3 |
-78.8 |
| 71) |
998 - 77 |
921 |
| 72) |
-0.018 + 0.03 |
0.012 |
| 73) |
39 - 833 |
-794 |
| 74) |
5 - -131 |
136 |
| 75) |
508 - -0.6 |
508.6 |
| 76) |
4 - 1 |
3 |
| 77) |
-69 + 9 |
-60 |
| 78) |
874 + -0.5 |
873.5 |
| 79) |
1 - 7.73 |
-6.73 |
| 80) |
720 + 5 |
725 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized