
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) |
3.76 - -38 |
41.76 |
| 2) |
-16 + 171 |
155 |
| 3) |
-6 / 0.05 |
-120 |
| 4) |
-8 * -9.9 |
79.2 |
| 5) |
-5.4 + 9.88 |
4.48 |
| 6) |
-8 - -8.79 |
0.79 |
| 7) |
5.6 + -0.876 |
4.724 |
| 8) |
-26 + -6.9 |
-32.9 |
| 9) |
7078 - 666 |
6412 |
| 10) |
2.1 / 30 |
0.07 |
| 11) |
55 / 8 |
6.875 |
| 12) |
79.4 - 172 |
-92.6 |
| 13) |
-3 - 646 |
-649 |
| 14) |
1 + 99 |
100 |
| 15) |
0.008 / -0.2 |
-0.04 |
| 16) |
5 + -831 |
-826 |
| 17) |
-2.64 + 24.6 |
21.96 |
| 18) |
6841 - 3 |
6838 |
| 19) |
-25 + 71 |
46 |
| 20) |
7 - 0.003 |
6.997 |
| 21) |
713 - 331 |
382 |
| 22) |
-0.07 - 0.22 |
-0.29 |
| 23) |
9 * 879 |
7911 |
| 24) |
51 - 9 |
42 |
| 25) |
0.006 * 230 |
1.38 |
| 26) |
83.5 + 8 |
91.5 |
| 27) |
21.9 + 372 |
393.9 |
| 28) |
-204 * -16 |
3264 |
| 29) |
7.794 - 5 |
2.794 |
| 30) |
5 * 8 |
40 |
| 31) |
2 / 1 |
2 |
| 32) |
0.1 + 952.7 |
952.8 |
| 33) |
2 - -887 |
889 |
| 34) |
-0.05 * -5 |
0.25 |
| 35) |
4.12 - 0.08 |
4.04 |
| 36) |
7385 - -606 |
7991 |
| 37) |
0.05 * 7 |
0.35 |
| 38) |
0.98 - -82 |
82.98 |
| 39) |
2826 + -3 |
2823 |
| 40) |
-7 - -29 |
22 |
| 41) |
1365 + 1935 |
3300 |
| 42) |
0.3 - -0.02 |
0.32 |
| 43) |
-1.4 + 4 |
2.6 |
| 44) |
58 + 971 |
1029 |
| 45) |
-3 + 9 |
6 |
| 46) |
-7 * 33 |
-231 |
| 47) |
-7003 + 7875 |
872 |
| 48) |
5 - 4.835 |
0.165 |
| 49) |
0.8 * 27 |
21.6 |
| 50) |
0.63 + -3.99 |
-3.36 |
| 51) |
2 - -576.9 |
578.9 |
| 52) |
9 * 4 |
36 |
| 53) |
0.2 * -6.7 |
-1.34 |
| 54) |
-0.07 + -2 |
-2.07 |
| 55) |
9253 + -96 |
9157 |
| 56) |
6666 - -292 |
6958 |
| 57) |
0.79 + 3 |
3.79 |
| 58) |
6870 * 0.5 |
3435 |
| 59) |
2.6 * 7.1 |
18.46 |
| 60) |
5.394 + 0.004 |
5.398 |
| 61) |
0.48 / -0.04 |
-12 |
| 62) |
-1 + 1.601 |
0.601 |
| 63) |
47 - -0.6 |
47.6 |
| 64) |
0.03 + -2 |
-1.97 |
| 65) |
32.93 - -6 |
38.93 |
| 66) |
6932 + 4 |
6936 |
| 67) |
50 + -9 |
41 |
| 68) |
-6.17 - 0.21 |
-6.38 |
| 69) |
55 * 64.2 |
3531 |
| 70) |
-3.8 + 8 |
4.2 |
| 71) |
15 * 0.036 |
0.54 |
| 72) |
3 - 201 |
-198 |
| 73) |
874 - -0.8 |
874.8 |
| 74) |
78.4 - 18.88 |
59.52 |
| 75) |
3088 + -95 |
2993 |
| 76) |
3 * 717 |
2151 |
| 77) |
89 + -5 |
84 |
| 78) |
0.068 - -3 |
3.068 |
| 79) |
744 + 0.8 |
744.8 |
| 80) |
4551 + 40 |
4591 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized