
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.04 + 9 |
9.04 |
| 2) |
-423 - -56 |
-367 |
| 3) |
-8 - 6 |
-14 |
| 4) |
40.5 - -0.6 |
41.1 |
| 5) |
63 - 0.25 |
62.75 |
| 6) |
9 / 3 |
3 |
| 7) |
-0.08 - -50 |
49.92 |
| 8) |
0.03 + 6.93 |
6.96 |
| 9) |
0.57 + 0.007 |
0.577 |
| 10) |
17 + -7 |
10 |
| 11) |
-7 + 2 |
-5 |
| 12) |
2.76 * 2.8 |
7.728 |
| 13) |
-58.1 - -1 |
-57.1 |
| 14) |
970 * 5 |
4850 |
| 15) |
200.4 - 158.4 |
42 |
| 16) |
-8.8 - 87 |
-95.8 |
| 17) |
-9 + 2 |
-7 |
| 18) |
314 + -5 |
309 |
| 19) |
5749 - 7 |
5742 |
| 20) |
565 * 0.05 |
28.25 |
| 21) |
89 - -2003 |
2092 |
| 22) |
2399 - -20 |
2419 |
| 23) |
-567 * -8 |
4536 |
| 24) |
-0.4 + 0.03 |
-0.37 |
| 25) |
0.01 * 559.6 |
5.596 |
| 26) |
0.01 - 0.9 |
-0.89 |
| 27) |
0.9 - -2.04 |
2.94 |
| 28) |
-31 + -50 |
-81 |
| 29) |
0.041 + 0.002 |
0.043 |
| 30) |
54.8 * 6 |
328.8 |
| 31) |
-1.24 + 55 |
53.76 |
| 32) |
0.82 + 0.06 |
0.88 |
| 33) |
-8 + 7.5 |
-0.5 |
| 34) |
668 - 7 |
661 |
| 35) |
9.08 + 0.8 |
9.88 |
| 36) |
0.5 + 99 |
99.5 |
| 37) |
-1.3 * 2 |
-2.6 |
| 38) |
312 + 6 |
318 |
| 39) |
2.195 + 0.008 |
2.203 |
| 40) |
68 * 65 |
4420 |
| 41) |
3340 * -0.001 |
-3.34 |
| 42) |
325 + -71 |
254 |
| 43) |
5.88 + 50 |
55.88 |
| 44) |
-2 - 4 |
-6 |
| 45) |
0.83 + -0.01 |
0.82 |
| 46) |
-133 * 1 |
-133 |
| 47) |
57 + -7.9 |
49.1 |
| 48) |
0.001 * 46 |
0.046 |
| 49) |
7 + 0.735 |
7.735 |
| 50) |
1 / -0.8 |
-1.25 |
| 51) |
1.785 + 2 |
3.785 |
| 52) |
8.6 - 0.58 |
8.02 |
| 53) |
683 + -8.8 |
674.2 |
| 54) |
441 * -1 |
-441 |
| 55) |
2688 - -4 |
2692 |
| 56) |
5805 + 276 |
6081 |
| 57) |
53 + 1.3 |
54.3 |
| 58) |
0.1 + 0.2 |
0.3 |
| 59) |
-84 * -3 |
252 |
| 60) |
-536 - 178 |
-714 |
| 61) |
-92 / 8 |
-11.5 |
| 62) |
6906 + 1 |
6907 |
| 63) |
594 - 54 |
540 |
| 64) |
36.1 - -212 |
248.1 |
| 65) |
274 / 5 |
54.8 |
| 66) |
830.6 - 898 |
-67.4 |
| 67) |
8 * -29 |
-232 |
| 68) |
-42 / 0.2 |
-210 |
| 69) |
-0.484 * -7 |
3.388 |
| 70) |
-0.32 + 4 |
3.68 |
| 71) |
0.66 / -0.003 |
-220 |
| 72) |
90 - -752.6 |
842.6 |
| 73) |
28 * 9 |
252 |
| 74) |
7.7 - -511 |
518.7 |
| 75) |
871 - -240 |
1111 |
| 76) |
6 + 3 |
9 |
| 77) |
-259 + 14 |
-245 |
| 78) |
0.58 + 55.39 |
55.97 |
| 79) |
982 / 0.4 |
2455 |
| 80) |
0.8 * 569 |
455.2 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized