
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) |
-53 * 2 |
-106 |
| 2) |
1.3 + 47 |
48.3 |
| 3) |
0.3 - -423 |
423.3 |
| 4) |
862 / 4 |
215.5 |
| 5) |
39 - -77.7 |
116.7 |
| 6) |
0.03 + -4 |
-3.97 |
| 7) |
343 - -6.9 |
349.9 |
| 8) |
-3.8 + 0.12 |
-3.68 |
| 9) |
-78 - -92.92 |
14.92 |
| 10) |
2404 + -6 |
2398 |
| 11) |
-0.06 * -406 |
24.36 |
| 12) |
0.097 - -0.007 |
0.104 |
| 13) |
-371 - -2312 |
1941 |
| 14) |
7 * -4 |
-28 |
| 15) |
4 * 59.6 |
238.4 |
| 16) |
8 - 328 |
-320 |
| 17) |
21 + 875 |
896 |
| 18) |
0.6 * 9 |
5.4 |
| 19) |
4 - 4.7 |
-0.7 |
| 20) |
6 + 5885 |
5891 |
| 21) |
9 - -743.7 |
752.7 |
| 22) |
-18 - -340 |
322 |
| 23) |
3 - -0.949 |
3.949 |
| 24) |
4 * 3.63 |
14.52 |
| 25) |
7.4 + 936.6 |
944 |
| 26) |
-5.99 + 4 |
-1.99 |
| 27) |
-45.1 - 2 |
-47.1 |
| 28) |
-76.2 + 4.8 |
-71.4 |
| 29) |
52.1 + -5 |
47.1 |
| 30) |
721 - 97 |
624 |
| 31) |
0.41 * 76 |
31.16 |
| 32) |
0.8 + 0.734 |
1.534 |
| 33) |
2.66 + 42.3 |
44.96 |
| 34) |
0.6 + 24.91 |
25.51 |
| 35) |
58.37 + -9.79 |
48.58 |
| 36) |
9.35 + 0.78 |
10.13 |
| 37) |
-802 / -4 |
200.5 |
| 38) |
-904 - -5 |
-899 |
| 39) |
-0.08 / -0.05 |
1.6 |
| 40) |
0.08 * 7 |
0.56 |
| 41) |
2076 + -17 |
2059 |
| 42) |
56 - 7.4 |
48.6 |
| 43) |
2 * 0.097 |
0.194 |
| 44) |
63 - -5 |
68 |
| 45) |
-84 + 81.78 |
-2.22 |
| 46) |
-23 / 0.04 |
-575 |
| 47) |
-678 + 184 |
-494 |
| 48) |
8320 + -839 |
7481 |
| 49) |
50.99 - 0.7 |
50.29 |
| 50) |
15 * 3 |
45 |
| 51) |
81 + -9.08 |
71.92 |
| 52) |
-0.03 + 48.3 |
48.27 |
| 53) |
8.59 - -79.51 |
88.1 |
| 54) |
622 + 5683 |
6305 |
| 55) |
322 + 649.7 |
971.7 |
| 56) |
0.01 * 0.2 |
0.002 |
| 57) |
7 + -4.423 |
2.577 |
| 58) |
-0.08 * -25.9 |
2.072 |
| 59) |
7138 + 249 |
7387 |
| 60) |
0.6 * -33 |
-19.8 |
| 61) |
9 * 0.564 |
5.076 |
| 62) |
72 - -5 |
77 |
| 63) |
0.78 / 0.006 |
130 |
| 64) |
94.11 - 0.08 |
94.03 |
| 65) |
0.6 - -19 |
19.6 |
| 66) |
89.11 + -7 |
82.11 |
| 67) |
0.36 - -1.8 |
2.16 |
| 68) |
0.004 + 7.4 |
7.404 |
| 69) |
-7.1 - 5 |
-12.1 |
| 70) |
6.462 / 1 |
6.462 |
| 71) |
17.1 * 57 |
974.7 |
| 72) |
0.07 - -44 |
44.07 |
| 73) |
10 * 767 |
7670 |
| 74) |
330.9 - 51 |
279.9 |
| 75) |
-81 - -10 |
-71 |
| 76) |
828 - 927 |
-99 |
| 77) |
-12 - -5418 |
5406 |
| 78) |
-18 / 0.4 |
-45 |
| 79) |
56 / 0.7 |
80 |
| 80) |
0.8 / 25 |
0.032 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized