
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) |
-7 * -14 |
98 |
| 2) |
34 / -40 |
-0.85 |
| 3) |
4.14 - 0.83 |
3.31 |
| 4) |
258 + 5.2 |
263.2 |
| 5) |
4 - -190 |
194 |
| 6) |
-3.9 - -7 |
3.1 |
| 7) |
3 - 0.203 |
2.797 |
| 8) |
38 + 2.86 |
40.86 |
| 9) |
5 * -0.92 |
-4.6 |
| 10) |
6 - 0.069 |
5.931 |
| 11) |
42 - -3305 |
3347 |
| 12) |
3.2 + 29 |
32.2 |
| 13) |
-26.9 * -26 |
699.4 |
| 14) |
458 / 0.8 |
572.5 |
| 15) |
8093 + 131 |
8224 |
| 16) |
9713 + 45 |
9758 |
| 17) |
70 * -0.19 |
-13.3 |
| 18) |
-87 - 739 |
-826 |
| 19) |
0.065 * 91 |
5.915 |
| 20) |
7 - 687 |
-680 |
| 21) |
5.82 - 8.59 |
-2.77 |
| 22) |
58 + 8005 |
8063 |
| 23) |
2 - -2 |
4 |
| 24) |
-0.03 * -824 |
24.72 |
| 25) |
8724 / 6 |
1454 |
| 26) |
21 * -0.18 |
-3.78 |
| 27) |
13 + 36 |
49 |
| 28) |
-175 - -521.6 |
346.6 |
| 29) |
-0.96 + 98.2 |
97.24 |
| 30) |
6.4 - 0.84 |
5.56 |
| 31) |
7 - -0.009 |
7.009 |
| 32) |
3 / 0.1 |
30 |
| 33) |
669 + 998 |
1667 |
| 34) |
-729 - 38 |
-767 |
| 35) |
3149 * 0.003 |
9.447 |
| 36) |
6.7 - 3 |
3.7 |
| 37) |
-9 * 0.5 |
-4.5 |
| 38) |
151.9 - -91 |
242.9 |
| 39) |
52 + 8.25 |
60.25 |
| 40) |
792 - -48 |
840 |
| 41) |
2 + 97 |
99 |
| 42) |
1 - 0.094 |
0.906 |
| 43) |
0.8 + 0.08 |
0.88 |
| 44) |
0.015 + 0.15 |
0.165 |
| 45) |
0.01 - 8.8 |
-8.79 |
| 46) |
-47 + 652 |
605 |
| 47) |
-25 + -900 |
-925 |
| 48) |
-93 + 5744 |
5651 |
| 49) |
-1.41 + -1 |
-2.41 |
| 50) |
7 * 8 |
56 |
| 51) |
16 / 2 |
8 |
| 52) |
972 + -69 |
903 |
| 53) |
1164 / 3 |
388 |
| 54) |
-0.06 / 0.2 |
-0.3 |
| 55) |
9 - -1 |
10 |
| 56) |
0.8 * 2 |
1.6 |
| 57) |
-613 - -623 |
10 |
| 58) |
-291 / 6 |
-48.5 |
| 59) |
3 + 8978 |
8981 |
| 60) |
6125 + 610 |
6735 |
| 61) |
4.94 - 7 |
-2.06 |
| 62) |
-557 + 8 |
-549 |
| 63) |
33 + -65 |
-32 |
| 64) |
713 + 56 |
769 |
| 65) |
8 + 70 |
78 |
| 66) |
5.2 * 7 |
36.4 |
| 67) |
28.58 + -0.02 |
28.56 |
| 68) |
6959 + 21 |
6980 |
| 69) |
35 + 73 |
108 |
| 70) |
0.78 / 0.006 |
130 |
| 71) |
9 * 0.62 |
5.58 |
| 72) |
970 - 0.3 |
969.7 |
| 73) |
7 + 45 |
52 |
| 74) |
8 - -46 |
54 |
| 75) |
4 - 77 |
-73 |
| 76) |
7753 + 5 |
7758 |
| 77) |
7.6 * 0.9 |
6.84 |
| 78) |
2722 - 1739 |
983 |
| 79) |
159 - 746 |
-587 |
| 80) |
28 / 0.007 |
4000 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized