
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) |
-8 * -262 |
2096 |
| 2) |
22 * -1 |
-22 |
| 3) |
5 + -77.8 |
-72.8 |
| 4) |
43 + 0.04 |
43.04 |
| 5) |
-865 - -4965 |
4100 |
| 6) |
4807 * 2 |
9614 |
| 7) |
0.5 + -0.02 |
0.48 |
| 8) |
0.9 + -0.011 |
0.889 |
| 9) |
20 - -44 |
64 |
| 10) |
-9.4 - -66 |
56.6 |
| 11) |
2 - 0.9 |
1.1 |
| 12) |
0.069 * 9800 |
676.2 |
| 13) |
-0.2 + -29 |
-29.2 |
| 14) |
49 * 6 |
294 |
| 15) |
0.015 - -6.1 |
6.115 |
| 16) |
0.02 + -0.1 |
-0.08 |
| 17) |
182 - -681 |
863 |
| 18) |
5 + 3 |
8 |
| 19) |
3164 + 312 |
3476 |
| 20) |
7.4 * 26 |
192.4 |
| 21) |
582 * 0.08 |
46.56 |
| 22) |
670.3 - -22 |
692.3 |
| 23) |
5.418 * 1 |
5.418 |
| 24) |
0.1 + 0.2 |
0.3 |
| 25) |
0.01 / 1 |
0.01 |
| 26) |
4.734 - -2 |
6.734 |
| 27) |
8.5 + 0.05 |
8.55 |
| 28) |
84 - -906 |
990 |
| 29) |
83 * 5 |
415 |
| 30) |
9 - 69 |
-60 |
| 31) |
811 + -16 |
795 |
| 32) |
1.75 * 4.2 |
7.35 |
| 33) |
17 / 8 |
2.125 |
| 34) |
0.7 + 876 |
876.7 |
| 35) |
-2 + 269.9 |
267.9 |
| 36) |
7 + 6 |
13 |
| 37) |
-6 + 0.07 |
-5.93 |
| 38) |
-3 - -8709 |
8706 |
| 39) |
31 + 7 |
38 |
| 40) |
4 - 304 |
-300 |
| 41) |
-0.01 * 311 |
-3.11 |
| 42) |
45.74 - 49 |
-3.26 |
| 43) |
-3 + 21 |
18 |
| 44) |
4 * 0.1 |
0.4 |
| 45) |
0.07 * 740 |
51.8 |
| 46) |
56 - 70.6 |
-14.6 |
| 47) |
0.32 - 0.6 |
-0.28 |
| 48) |
0.7 / 5 |
0.14 |
| 49) |
-28 * 3 |
-84 |
| 50) |
4 + 231 |
235 |
| 51) |
56 + 647 |
703 |
| 52) |
-0.06 - 7.9 |
-7.96 |
| 53) |
0.2 + 32.7 |
32.9 |
| 54) |
0.09 / 0.001 |
90 |
| 55) |
1 * 4 |
4 |
| 56) |
-49 * -8.2 |
401.8 |
| 57) |
470 * 7 |
3290 |
| 58) |
-225.4 - 0.6 |
-226 |
| 59) |
7.97 + 0.3 |
8.27 |
| 60) |
0.001 - -7.6 |
7.601 |
| 61) |
1.44 * 2 |
2.88 |
| 62) |
6 + -3 |
3 |
| 63) |
-1 * 8 |
-8 |
| 64) |
-67 - 69 |
-136 |
| 65) |
0.7 + 5.2 |
5.9 |
| 66) |
-72 + 3.6 |
-68.4 |
| 67) |
-2.59 - -30 |
27.41 |
| 68) |
118 - -0.6 |
118.6 |
| 69) |
-0.9 + 1 |
0.1 |
| 70) |
-455 + 1357 |
902 |
| 71) |
58 + -48 |
10 |
| 72) |
17 - 673 |
-656 |
| 73) |
4.8 / 0.64 |
7.5 |
| 74) |
-172 - 9 |
-181 |
| 75) |
-6 - 44.2 |
-50.2 |
| 76) |
-62 * 2 |
-124 |
| 77) |
92.9 + 236 |
328.9 |
| 78) |
-9.8 - 79 |
-88.8 |
| 79) |
0.4 * 39 |
15.6 |
| 80) |
5 - -86.7 |
91.7 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized