
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 * 5 |
10 |
| 2) |
-8 * -7.01 |
56.08 |
| 3) |
0.3 / 1 |
0.3 |
| 4) |
5.4 - 0.07 |
5.33 |
| 5) |
-4 * 1 |
-4 |
| 6) |
-23.5 * 0.02 |
-0.47 |
| 7) |
3690 - -37 |
3727 |
| 8) |
8.84 / 8 |
1.105 |
| 9) |
-0.03 + 81.6 |
81.57 |
| 10) |
70 * 0.008 |
0.56 |
| 11) |
51 + -20 |
31 |
| 12) |
44 - -0.03 |
44.03 |
| 13) |
-0.1 + 95.1 |
95 |
| 14) |
18 - 44 |
-26 |
| 15) |
394 + 99.2 |
493.2 |
| 16) |
8 + 2.53 |
10.53 |
| 17) |
2.2 * 279 |
613.8 |
| 18) |
-46 - -93.07 |
47.07 |
| 19) |
-5.76 + 0.3 |
-5.46 |
| 20) |
-4 - -75 |
71 |
| 21) |
99 - -625 |
724 |
| 22) |
4 * 165 |
660 |
| 23) |
5431 - 45 |
5386 |
| 24) |
5 - -70 |
75 |
| 25) |
12.62 + 7.01 |
19.63 |
| 26) |
-6 + -0.07 |
-6.07 |
| 27) |
0.07 * 3 |
0.21 |
| 28) |
3 * 777 |
2331 |
| 29) |
0.07 + 3.1 |
3.17 |
| 30) |
65 - 5.1 |
59.9 |
| 31) |
1 * -0.06 |
-0.06 |
| 32) |
63.7 + 0.49 |
64.19 |
| 33) |
6 - 0.1 |
5.9 |
| 34) |
5 + 31 |
36 |
| 35) |
-278 + -7 |
-285 |
| 36) |
20.1 + 57.04 |
77.14 |
| 37) |
588 - 28 |
560 |
| 38) |
942 / 6 |
157 |
| 39) |
968 + -7 |
961 |
| 40) |
8 - 7.8 |
0.2 |
| 41) |
-0.006 + 0.09 |
0.084 |
| 42) |
-31 - -231 |
200 |
| 43) |
38.6 + -7 |
31.6 |
| 44) |
25 - 7 |
18 |
| 45) |
-0.3 + 26 |
25.7 |
| 46) |
0.038 + 1 |
1.038 |
| 47) |
5 * -4 |
-20 |
| 48) |
402 - 0.3 |
401.7 |
| 49) |
6272 + -677 |
5595 |
| 50) |
42 - 721 |
-679 |
| 51) |
0.028 * 5.75 |
0.161 |
| 52) |
285 + 51 |
336 |
| 53) |
-2 + -79 |
-81 |
| 54) |
-4 * 5.7 |
-22.8 |
| 55) |
2.5 + -0.099 |
2.401 |
| 56) |
-0.7 - -826.9 |
826.2 |
| 57) |
53.14 + -2 |
51.14 |
| 58) |
0.35 + -9.9 |
-9.55 |
| 59) |
807 - -2 |
809 |
| 60) |
4 * 0.009 |
0.036 |
| 61) |
208 + 8.6 |
216.6 |
| 62) |
4.112 + 2 |
6.112 |
| 63) |
0.025 + 9 |
9.025 |
| 64) |
-0.004 - -0.06 |
0.056 |
| 65) |
686 + 8.9 |
694.9 |
| 66) |
224 + 429.8 |
653.8 |
| 67) |
-3 - 1 |
-4 |
| 68) |
3414 + 54 |
3468 |
| 69) |
36.87 - 8.2 |
28.67 |
| 70) |
-22 - -94.48 |
72.48 |
| 71) |
0.053 + 8 |
8.053 |
| 72) |
4 - -63 |
67 |
| 73) |
0.008 + 2 |
2.008 |
| 74) |
-0.29 - -0.8 |
0.51 |
| 75) |
0.5 + -5 |
-4.5 |
| 76) |
8 * -72 |
-576 |
| 77) |
5 * 384 |
1920 |
| 78) |
-3 * 9 |
-27 |
| 79) |
289 - 2 |
287 |
| 80) |
0.07 + 5.1 |
5.17 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized