
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) |
8214 + -8490 |
-276 |
| 2) |
-97 - -7794 |
7697 |
| 3) |
6.736 - -1 |
7.736 |
| 4) |
-0.08 / 1 |
-0.08 |
| 5) |
0.46 + -5 |
-4.54 |
| 6) |
0.737 + 0.29 |
1.027 |
| 7) |
15 * -62 |
-930 |
| 8) |
19 + 1 |
20 |
| 9) |
-0.8 + -97 |
-97.8 |
| 10) |
38 + 3094 |
3132 |
| 11) |
95 * -6 |
-570 |
| 12) |
3.4 + 8.3 |
11.7 |
| 13) |
9 - -1987 |
1996 |
| 14) |
0.39 + 84 |
84.39 |
| 15) |
8440 - 611 |
7829 |
| 16) |
625 - 6 |
619 |
| 17) |
35.93 - 7.1 |
28.83 |
| 18) |
603 * 0.001 |
0.603 |
| 19) |
-788 + 53 |
-735 |
| 20) |
67 + 7 |
74 |
| 21) |
-0.6 + 7.945 |
7.345 |
| 22) |
6 * -3 |
-18 |
| 23) |
3.85 + 0.81 |
4.66 |
| 24) |
6 + 17.01 |
23.01 |
| 25) |
-710 - 59 |
-769 |
| 26) |
7 + -481 |
-474 |
| 27) |
0.779 + -0.09 |
0.689 |
| 28) |
-529 + 3 |
-526 |
| 29) |
54.8 - 57 |
-2.2 |
| 30) |
2.1 + 5 |
7.1 |
| 31) |
6 / 4 |
1.5 |
| 32) |
0.006 * 14 |
0.084 |
| 33) |
6 + 59 |
65 |
| 34) |
-0.1 - 8 |
-8.1 |
| 35) |
681 + 33 |
714 |
| 36) |
6 - 753 |
-747 |
| 37) |
6.424 - 3 |
3.424 |
| 38) |
-0.7 - 8 |
-8.7 |
| 39) |
79 + 9 |
88 |
| 40) |
273 + -935 |
-662 |
| 41) |
0.9 + 0.13 |
1.03 |
| 42) |
0.72 / -4 |
-0.18 |
| 43) |
5842 - 3 |
5839 |
| 44) |
226 + 1 |
227 |
| 45) |
774 - 270 |
504 |
| 46) |
9.1 * -7 |
-63.7 |
| 47) |
5165 - -951 |
6116 |
| 48) |
-526 + 6861 |
6335 |
| 49) |
18 * 26 |
468 |
| 50) |
0.01 - 0.002 |
0.008 |
| 51) |
6.37 - -40 |
46.37 |
| 52) |
3 - 921 |
-918 |
| 53) |
3 * -0.98 |
-2.94 |
| 54) |
6104 + 503 |
6607 |
| 55) |
-8 * -368 |
2944 |
| 56) |
0.022 / -0.05 |
-0.44 |
| 57) |
-5 - 82 |
-87 |
| 58) |
0.57 + -0.02 |
0.55 |
| 59) |
8 - -93 |
101 |
| 60) |
462 + 289 |
751 |
| 61) |
-7 + 0.2 |
-6.8 |
| 62) |
5 * 791 |
3955 |
| 63) |
37.5 + 0.6 |
38.1 |
| 64) |
0.91 - -0.069 |
0.979 |
| 65) |
57.9 + 8 |
65.9 |
| 66) |
0.006 + 0.35 |
0.356 |
| 67) |
0.2 + 7.14 |
7.34 |
| 68) |
475 + 5 |
480 |
| 69) |
6.7 * 0.7 |
4.69 |
| 70) |
2061 + -847 |
1214 |
| 71) |
-0.95 - -0.4 |
-0.55 |
| 72) |
0.126 - -0.06 |
0.186 |
| 73) |
-75 * -87 |
6525 |
| 74) |
2 + 99 |
101 |
| 75) |
138.9 - -7 |
145.9 |
| 76) |
5.2 - 3.5 |
1.7 |
| 77) |
0.3 + -1 |
-0.7 |
| 78) |
-532 + 2857 |
2325 |
| 79) |
6 + -0.732 |
5.268 |
| 80) |
0.072 * 18 |
1.296 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized