
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.24 + -0.37 |
6.87 |
| 2) |
3.5 - 4 |
-0.5 |
| 3) |
4 * 0.4 |
1.6 |
| 4) |
178 - 694 |
-516 |
| 5) |
-0.004 + 7.179 |
7.175 |
| 6) |
29 - -57 |
86 |
| 7) |
49.2 / 3 |
16.4 |
| 8) |
2.2 - -0.037 |
2.237 |
| 9) |
0.6 / -3 |
-0.2 |
| 10) |
94 * 0.96 |
90.24 |
| 11) |
-9.7 + 718 |
708.3 |
| 12) |
-6 * 163 |
-978 |
| 13) |
-9 + 83 |
74 |
| 14) |
0.31 + 73 |
73.31 |
| 15) |
0.6 / -0.002 |
-300 |
| 16) |
-0.1 - 98 |
-98.1 |
| 17) |
235 * 0.08 |
18.8 |
| 18) |
90 + -70.14 |
19.86 |
| 19) |
6 - -1 |
7 |
| 20) |
0.8 * 4.24 |
3.392 |
| 21) |
-9.2 * -66 |
607.2 |
| 22) |
0.05 + 67 |
67.05 |
| 23) |
0.18 - 0.007 |
0.173 |
| 24) |
5 * 19 |
95 |
| 25) |
8 * 0.009 |
0.072 |
| 26) |
-46.6 + 87 |
40.4 |
| 27) |
127 + 358 |
485 |
| 28) |
2 + -0.03 |
1.97 |
| 29) |
4680 - -81 |
4761 |
| 30) |
-8 - 18 |
-26 |
| 31) |
-3.76 / -0.001 |
3760 |
| 32) |
-270 / 375 |
-0.72 |
| 33) |
0.18 + -0.09 |
0.09 |
| 34) |
1 - -7973 |
7974 |
| 35) |
53.52 - -19 |
72.52 |
| 36) |
-0.99 / 0.001 |
-990 |
| 37) |
39 * 9 |
351 |
| 38) |
88 + 293.3 |
381.3 |
| 39) |
4 - 0.07 |
3.93 |
| 40) |
0.3 + 1.09 |
1.39 |
| 41) |
5 - -35 |
40 |
| 42) |
3.1 + 66 |
69.1 |
| 43) |
-0.9 * -67 |
60.3 |
| 44) |
0.01 * -7 |
-0.07 |
| 45) |
56 * 0.77 |
43.12 |
| 46) |
-2.2 / 0.02 |
-110 |
| 47) |
8404 / 2 |
4202 |
| 48) |
0.99 + 6 |
6.99 |
| 49) |
43 - 12 |
31 |
| 50) |
-76 + 4593 |
4517 |
| 51) |
43 / 8 |
5.375 |
| 52) |
0.07 + 70.97 |
71.04 |
| 53) |
1.7 + 5.951 |
7.651 |
| 54) |
0.798 + 5 |
5.798 |
| 55) |
-0.05 / 0.005 |
-10 |
| 56) |
-4 * 0.8 |
-3.2 |
| 57) |
11 + -384 |
-373 |
| 58) |
384 - 87 |
297 |
| 59) |
3 * 9 |
27 |
| 60) |
6166 + -2 |
6164 |
| 61) |
72 + -40.49 |
31.51 |
| 62) |
-3 * 9 |
-27 |
| 63) |
-0.06 * 30 |
-1.8 |
| 64) |
0.7 + 63 |
63.7 |
| 65) |
9520 + -9759 |
-239 |
| 66) |
0.94 - -9 |
9.94 |
| 67) |
-0.47 + 0.541 |
0.071 |
| 68) |
-10 - -9.93 |
-0.07 |
| 69) |
3574 + 5097 |
8671 |
| 70) |
8 / 0.25 |
32 |
| 71) |
3.87 - -35 |
38.87 |
| 72) |
767 + 1676 |
2443 |
| 73) |
-89 * -17 |
1513 |
| 74) |
49 + 31 |
80 |
| 75) |
6.207 + 0.2 |
6.407 |
| 76) |
-4 * -0.026 |
0.104 |
| 77) |
9 + 0.3 |
9.3 |
| 78) |
792 - -8798 |
9590 |
| 79) |
7902 + 3 |
7905 |
| 80) |
-97 - 7 |
-104 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized