
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) |
-1.246 * 5 |
-6.23 |
| 2) |
-927 + -55 |
-982 |
| 3) |
-4 * 5 |
-20 |
| 4) |
-22 + -5.8 |
-27.8 |
| 5) |
534 * 1 |
534 |
| 6) |
7 - 3 |
4 |
| 7) |
2188 - 3039 |
-851 |
| 8) |
-0.006 + 0.06 |
0.054 |
| 9) |
8885 - -9 |
8894 |
| 10) |
16 * -1 |
-16 |
| 11) |
9.7 + 787.1 |
796.8 |
| 12) |
-2.6 + 6.714 |
4.114 |
| 13) |
934 + -1 |
933 |
| 14) |
2939 * 0.3 |
881.7 |
| 15) |
72 - -3 |
75 |
| 16) |
23 - 828 |
-805 |
| 17) |
7.4 - 2 |
5.4 |
| 18) |
-20 + 64.89 |
44.89 |
| 19) |
48 + 73.7 |
121.7 |
| 20) |
77 - 91 |
-14 |
| 21) |
0.04 + 0.175 |
0.215 |
| 22) |
-353 + 9617 |
9264 |
| 23) |
0.043 + 0.019 |
0.062 |
| 24) |
-5 - -3 |
-2 |
| 25) |
-6.6 + 79 |
72.4 |
| 26) |
20 * 39 |
780 |
| 27) |
91 + -87.18 |
3.82 |
| 28) |
-8 + 85 |
77 |
| 29) |
0.549 + 0.516 |
1.065 |
| 30) |
-0.08 - -1.2 |
1.12 |
| 31) |
1 - -212 |
213 |
| 32) |
0.4 - 9.2 |
-8.8 |
| 33) |
0.9 * 0.28 |
0.252 |
| 34) |
-1 + 8610 |
8609 |
| 35) |
-2.9 + 7 |
4.1 |
| 36) |
3.8 + 2.5 |
6.3 |
| 37) |
0.04 + 7.25 |
7.29 |
| 38) |
0.001 - -9.506 |
9.507 |
| 39) |
433 + 32 |
465 |
| 40) |
62 - -87 |
149 |
| 41) |
-69 * -0.5 |
34.5 |
| 42) |
-6 * -99 |
594 |
| 43) |
-9.2 + 4 |
-5.2 |
| 44) |
0.04 * 89 |
3.56 |
| 45) |
-0.5 / -0.2 |
2.5 |
| 46) |
1.18 + -6 |
-4.82 |
| 47) |
-1859 + 903 |
-956 |
| 48) |
652 - -82.3 |
734.3 |
| 49) |
-22.8 + 467 |
444.2 |
| 50) |
7 * 0.006 |
0.042 |
| 51) |
-0.008 - -5.6 |
5.592 |
| 52) |
919 + -1026 |
-107 |
| 53) |
-172.8 - -626 |
453.2 |
| 54) |
8 + -77.2 |
-69.2 |
| 55) |
38 + 6 |
44 |
| 56) |
2.13 - 94.93 |
-92.8 |
| 57) |
82 + -9.22 |
72.78 |
| 58) |
-0.8 - 26.3 |
-27.1 |
| 59) |
-0.4 + 0.12 |
-0.28 |
| 60) |
-0.4 * -37 |
14.8 |
| 61) |
0.92 + -0.038 |
0.882 |
| 62) |
6.568 + 0.7 |
7.268 |
| 63) |
-16 - 17 |
-33 |
| 64) |
1 + 0.81 |
1.81 |
| 65) |
23 * 165 |
3795 |
| 66) |
-0.06 / 3 |
-0.02 |
| 67) |
-786 * -0.1 |
78.6 |
| 68) |
380 + 15 |
395 |
| 69) |
0.011 + 0.19 |
0.201 |
| 70) |
976 + 3146 |
4122 |
| 71) |
67 * 2.3 |
154.1 |
| 72) |
-47.6 / 0.07 |
-680 |
| 73) |
8 + 9934 |
9942 |
| 74) |
0.6 * 120 |
72 |
| 75) |
0.03 * 7.1 |
0.213 |
| 76) |
-7.05 + -0.03 |
-7.08 |
| 77) |
63 - -27 |
90 |
| 78) |
-0.088 * -7 |
0.616 |
| 79) |
-49 - -488 |
439 |
| 80) |
9331 - 705 |
8626 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized