
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 + 126 |
129 |
| 2) |
6 * 9.02 |
54.12 |
| 3) |
-9 * -453 |
4077 |
| 4) |
-167 + -771 |
-938 |
| 5) |
968 + 79 |
1047 |
| 6) |
275 - 137.5 |
137.5 |
| 7) |
-73 + -563 |
-636 |
| 8) |
0.5 - 14 |
-13.5 |
| 9) |
-1.6 + -0.08 |
-1.68 |
| 10) |
-107 * 9 |
-963 |
| 11) |
24.9 + 766 |
790.9 |
| 12) |
0.06 * 426 |
25.56 |
| 13) |
0.21 + 30.2 |
30.41 |
| 14) |
2460 + 517 |
2977 |
| 15) |
9 - -7 |
16 |
| 16) |
-403 + 7561 |
7158 |
| 17) |
8 * -0.06 |
-0.48 |
| 18) |
1344 - 78 |
1266 |
| 19) |
599 + 3 |
602 |
| 20) |
-0.92 + 5 |
4.08 |
| 21) |
8 / 0.2 |
40 |
| 22) |
4 + 21.62 |
25.62 |
| 23) |
-0.05 - -2.8 |
2.75 |
| 24) |
604 - -6972 |
7576 |
| 25) |
8.9 - 6.659 |
2.241 |
| 26) |
726 * 7 |
5082 |
| 27) |
1.61 + 79.98 |
81.59 |
| 28) |
95 * -5 |
-475 |
| 29) |
9 + 53 |
62 |
| 30) |
4.3 - 0.07 |
4.23 |
| 31) |
0.05 + -0.4 |
-0.35 |
| 32) |
6 - 0.002 |
5.998 |
| 33) |
66 + 0.32 |
66.32 |
| 34) |
-27 * 0.07 |
-1.89 |
| 35) |
78 - 75.4 |
2.6 |
| 36) |
582 + -49 |
533 |
| 37) |
656 * 0.4 |
262.4 |
| 38) |
94.95 * 0.02 |
1.899 |
| 39) |
-0.8 + 8 |
7.2 |
| 40) |
3 + 0.727 |
3.727 |
| 41) |
1 - 0.96 |
0.04 |
| 42) |
-1 + 779 |
778 |
| 43) |
7.55 + -3 |
4.55 |
| 44) |
-39 * -0.7 |
27.3 |
| 45) |
-303 - -45 |
-258 |
| 46) |
0.07 - 3.44 |
-3.37 |
| 47) |
-96 + 11 |
-85 |
| 48) |
8 + 57 |
65 |
| 49) |
-7 + 4771 |
4764 |
| 50) |
-0.06 + -1.99 |
-2.05 |
| 51) |
-6 - 0.07 |
-6.07 |
| 52) |
0.9 * 5.6 |
5.04 |
| 53) |
1.1 - 0.08 |
1.02 |
| 54) |
67.6 + 8 |
75.6 |
| 55) |
44 - 68.3 |
-24.3 |
| 56) |
3746 + -828 |
2918 |
| 57) |
0.02 / 4 |
0.005 |
| 58) |
2 - -0.04 |
2.04 |
| 59) |
4.6 * 32 |
147.2 |
| 60) |
4.6 - -0.294 |
4.894 |
| 61) |
98 * 4 |
392 |
| 62) |
0.008 * 764 |
6.112 |
| 63) |
0.4 + -2 |
-1.6 |
| 64) |
78 - -4643 |
4721 |
| 65) |
786 - -2 |
788 |
| 66) |
363 + -47 |
316 |
| 67) |
1 * 8 |
8 |
| 68) |
-97 - -0.8 |
-96.2 |
| 69) |
5 * 44.2 |
221 |
| 70) |
517 * 0.02 |
10.34 |
| 71) |
0.1 - 5.26 |
-5.16 |
| 72) |
-70 * -0.4 |
28 |
| 73) |
6 * 47 |
282 |
| 74) |
75.07 + -72.62 |
2.45 |
| 75) |
218 - -727 |
945 |
| 76) |
-3 + 1 |
-2 |
| 77) |
6 / 40 |
0.15 |
| 78) |
5 * 3 |
15 |
| 79) |
0.04 - -6 |
6.04 |
| 80) |
0.07 * 1362 |
95.34 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized