
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) |
941 - -4066 |
5007 |
| 2) |
-42 + 4 |
-38 |
| 3) |
17 - 20.1 |
-3.1 |
| 4) |
516 + 2.5 |
518.5 |
| 5) |
0.7 / -0.002 |
-350 |
| 6) |
0.79 + -0.06 |
0.73 |
| 7) |
434 / 4 |
108.5 |
| 8) |
0.009 - -4.489 |
4.498 |
| 9) |
0.07 * 41 |
2.87 |
| 10) |
1.08 - -1 |
2.08 |
| 11) |
-30.8 * 3 |
-92.4 |
| 12) |
632 * 9 |
5688 |
| 13) |
0.031 - -0.006 |
0.037 |
| 14) |
-9 + 415 |
406 |
| 15) |
9 + 24 |
33 |
| 16) |
4.3 - -9.78 |
14.08 |
| 17) |
4.6 * 0.07 |
0.322 |
| 18) |
-0.2 + 0.03 |
-0.17 |
| 19) |
67.43 + 26.4 |
93.83 |
| 20) |
4 * 1.215 |
4.86 |
| 21) |
-4071 / -1 |
4071 |
| 22) |
-9.734 + 0.004 |
-9.73 |
| 23) |
550.7 - 61.8 |
488.9 |
| 24) |
-15 / -0.008 |
1875 |
| 25) |
798 - -54 |
852 |
| 26) |
0.887 * 5 |
4.435 |
| 27) |
802 + 0.1 |
802.1 |
| 28) |
-10.1 / -1 |
10.1 |
| 29) |
-47 * -88 |
4136 |
| 30) |
833 - 15 |
818 |
| 31) |
0.3 + -3.9 |
-3.6 |
| 32) |
5635 - 16 |
5619 |
| 33) |
12.28 - -5.5 |
17.78 |
| 34) |
-0.003 + 0.994 |
0.991 |
| 35) |
-4 + 77 |
73 |
| 36) |
-0.1 * 1 |
-0.1 |
| 37) |
847 - -10 |
857 |
| 38) |
7301 + 2 |
7303 |
| 39) |
4.1 - -2.191 |
6.291 |
| 40) |
0.5 + 9 |
9.5 |
| 41) |
-0.07 - -0.1 |
0.03 |
| 42) |
-520 * 0.008 |
-4.16 |
| 43) |
84 + 576 |
660 |
| 44) |
39 * 9 |
351 |
| 45) |
864 + 770 |
1634 |
| 46) |
35 + -6 |
29 |
| 47) |
2.2 / -0.5 |
-4.4 |
| 48) |
-1 * -62 |
62 |
| 49) |
170 - 74 |
96 |
| 50) |
-7 + -8 |
-15 |
| 51) |
1 * 8536 |
8536 |
| 52) |
-28 * -8 |
224 |
| 53) |
0.02 - 0.9 |
-0.88 |
| 54) |
8.13 + -0.26 |
7.87 |
| 55) |
-3 - 9 |
-12 |
| 56) |
200 + 7886 |
8086 |
| 57) |
4 - 860 |
-856 |
| 58) |
3 * 4 |
12 |
| 59) |
0.01 - 0.002 |
0.008 |
| 60) |
-0.5 / -1 |
0.5 |
| 61) |
53 - 236 |
-183 |
| 62) |
5.74 + 0.096 |
5.836 |
| 63) |
0.255 * 58 |
14.79 |
| 64) |
0.03 + 25.4 |
25.43 |
| 65) |
1 * 298 |
298 |
| 66) |
-0.4 / 0.064 |
-6.25 |
| 67) |
62 - 431 |
-369 |
| 68) |
-46 + 958 |
912 |
| 69) |
71 - -788 |
859 |
| 70) |
4 / 1 |
4 |
| 71) |
1 + 3691 |
3692 |
| 72) |
-0.08 / 8 |
-0.01 |
| 73) |
2.083 + 1 |
3.083 |
| 74) |
17.08 - 5 |
12.08 |
| 75) |
-7.6 + 121 |
113.4 |
| 76) |
-1.72 - 2.6 |
-4.32 |
| 77) |
3 + -0.46 |
2.54 |
| 78) |
9 * -4 |
-36 |
| 79) |
-0.25 + -8 |
-8.25 |
| 80) |
-0.5 * 9.9 |
-4.95 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized