
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) |
-0.2 - -25 |
24.8 |
| 2) |
0.7 - -7.067 |
7.767 |
| 3) |
4 / -1 |
-4 |
| 4) |
7010 + 947 |
7957 |
| 5) |
0.37 + -0.003 |
0.367 |
| 6) |
-0.07 + 0.641 |
0.571 |
| 7) |
1988 / 5 |
397.6 |
| 8) |
0.349 + -0.019 |
0.33 |
| 9) |
459 - 590 |
-131 |
| 10) |
6 * 81 |
486 |
| 11) |
1 - 0.077 |
0.923 |
| 12) |
1.24 + -8 |
-6.76 |
| 13) |
3 + -5.8 |
-2.8 |
| 14) |
-5 / 5 |
-1 |
| 15) |
2980 - 1897 |
1083 |
| 16) |
-1.3 / 0.2 |
-6.5 |
| 17) |
-3 - 1.4 |
-4.4 |
| 18) |
620 + 6 |
626 |
| 19) |
6 - -0.06 |
6.06 |
| 20) |
-48.89 + 84 |
35.11 |
| 21) |
9.4 * 490 |
4606 |
| 22) |
39 + 3470 |
3509 |
| 23) |
4840 - 35 |
4805 |
| 24) |
3 + 50 |
53 |
| 25) |
-1 + -42 |
-43 |
| 26) |
8 - 0.8 |
7.2 |
| 27) |
-724 + -8 |
-732 |
| 28) |
-87 / -0.3 |
290 |
| 29) |
5801 - -63 |
5864 |
| 30) |
6 * -3 |
-18 |
| 31) |
5 + -5 |
0 |
| 32) |
-0.12 * -0.6 |
0.072 |
| 33) |
-5 + 219 |
214 |
| 34) |
7 / 0.005 |
1400 |
| 35) |
-6.24 + 18.5 |
12.26 |
| 36) |
0.8 / 0.01 |
80 |
| 37) |
806.2 - 516 |
290.2 |
| 38) |
0.606 - -0.3 |
0.906 |
| 39) |
597 * 7 |
4179 |
| 40) |
4.91 + 0.006 |
4.916 |
| 41) |
0.5 * 215 |
107.5 |
| 42) |
-3.2 - 2.69 |
-5.89 |
| 43) |
4 * -4 |
-16 |
| 44) |
39 - -4 |
43 |
| 45) |
6.5 * 708 |
4602 |
| 46) |
438 + -97 |
341 |
| 47) |
0.36 + 0.007 |
0.367 |
| 48) |
0.4 * 8 |
3.2 |
| 49) |
56 - -489.5 |
545.5 |
| 50) |
0.023 * 6 |
0.138 |
| 51) |
9 + 466 |
475 |
| 52) |
-336 - -8 |
-328 |
| 53) |
-1.3 / 5 |
-0.26 |
| 54) |
-228 + 7979 |
7751 |
| 55) |
731 + 63 |
794 |
| 56) |
0.39 - 0.75 |
-0.36 |
| 57) |
-0.578 - -9.46 |
8.882 |
| 58) |
0.2 - 4.2 |
-4 |
| 59) |
2.9 + 816 |
818.9 |
| 60) |
5 - 0.445 |
4.555 |
| 61) |
82 - -31 |
113 |
| 62) |
-92.8 / -5 |
18.56 |
| 63) |
9 - -0.005 |
9.005 |
| 64) |
64 - 75 |
-11 |
| 65) |
51.2 + 492 |
543.2 |
| 66) |
9.228 - 5.61 |
3.618 |
| 67) |
-6 + 0.06 |
-5.94 |
| 68) |
-0.008 * -394 |
3.152 |
| 69) |
510.1 - 126 |
384.1 |
| 70) |
-48.9 + 1 |
-47.9 |
| 71) |
3.328 / 0.32 |
10.4 |
| 72) |
3.47 - 4 |
-0.53 |
| 73) |
455 + 8471 |
8926 |
| 74) |
56 * 8 |
448 |
| 75) |
-37 + 1 |
-36 |
| 76) |
0.03 + 3 |
3.03 |
| 77) |
0.039 - -0.6 |
0.639 |
| 78) |
9 * -0.07 |
-0.63 |
| 79) |
0.052 + -0.05 |
0.002 |
| 80) |
34 * 62 |
2108 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized