
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) |
-609 + 9 |
-600 |
| 2) |
-73 - -30 |
-43 |
| 3) |
-8 / 4 |
-2 |
| 4) |
4 - 43 |
-39 |
| 5) |
-47 + 58.2 |
11.2 |
| 6) |
486 / 3 |
162 |
| 7) |
5 + -3.07 |
1.93 |
| 8) |
2.658 / 0.005 |
531.6 |
| 9) |
7.046 - 1 |
6.046 |
| 10) |
-9.54 + 2.17 |
-7.37 |
| 11) |
8395 * 0.004 |
33.58 |
| 12) |
-4.8 + -0.5 |
-5.3 |
| 13) |
-63 - -85 |
22 |
| 14) |
32.5 - 9 |
23.5 |
| 15) |
5.4 / 0.6 |
9 |
| 16) |
2 + 36.8 |
38.8 |
| 17) |
5 - 8.23 |
-3.23 |
| 18) |
6 - 0.452 |
5.548 |
| 19) |
0.059 + 9 |
9.059 |
| 20) |
9 - -1 |
10 |
| 21) |
-58 * -8 |
464 |
| 22) |
49 + 6132 |
6181 |
| 23) |
914 - -3 |
917 |
| 24) |
-77 + 2 |
-75 |
| 25) |
45 * 68.6 |
3087 |
| 26) |
3 / 8 |
0.375 |
| 27) |
91 - 984 |
-893 |
| 28) |
61 * 58 |
3538 |
| 29) |
0.03 * 0.8 |
0.024 |
| 30) |
7 - 59 |
-52 |
| 31) |
-12 + 7158 |
7146 |
| 32) |
8 / -0.4 |
-20 |
| 33) |
73 + 8849 |
8922 |
| 34) |
-2 * 14 |
-28 |
| 35) |
9 * 0.065 |
0.585 |
| 36) |
6.2 * 49 |
303.8 |
| 37) |
1 + 4 |
5 |
| 38) |
1 + -291 |
-290 |
| 39) |
-8 - 3 |
-11 |
| 40) |
86 * 0.4 |
34.4 |
| 41) |
-0.02 - -0.431 |
0.411 |
| 42) |
-0.1 - 33 |
-33.1 |
| 43) |
0.9 * 0.09 |
0.081 |
| 44) |
0.06 * 545 |
32.7 |
| 45) |
5.5 + 9.74 |
15.24 |
| 46) |
-8.36 - -41 |
32.64 |
| 47) |
-29 - -35.37 |
6.37 |
| 48) |
413.4 + 370 |
783.4 |
| 49) |
-4 + 0.8 |
-3.2 |
| 50) |
-11 - 5 |
-16 |
| 51) |
0.04 * -2550 |
-102 |
| 52) |
3 + -621 |
-618 |
| 53) |
0.4 - -6.657 |
7.057 |
| 54) |
962 / -2 |
-481 |
| 55) |
0.5 + 2.8 |
3.3 |
| 56) |
-9 - 9 |
-18 |
| 57) |
6 - 3.84 |
2.16 |
| 58) |
95 - 7 |
88 |
| 59) |
0.18 * 3 |
0.54 |
| 60) |
1 + 7 |
8 |
| 61) |
93.2 + 237 |
330.2 |
| 62) |
-27.4 - 3 |
-30.4 |
| 63) |
0.064 * 98 |
6.272 |
| 64) |
6 + 3 |
9 |
| 65) |
-92 + 1 |
-91 |
| 66) |
623 - 81 |
542 |
| 67) |
-2 * 3.8 |
-7.6 |
| 68) |
551.7 - 0.5 |
551.2 |
| 69) |
0.5 + 164 |
164.5 |
| 70) |
4414 * 0.5 |
2207 |
| 71) |
-9.19 + 14.8 |
5.61 |
| 72) |
6.216 + 0.8 |
7.016 |
| 73) |
2047 + 813 |
2860 |
| 74) |
2.8 * 0.01 |
0.028 |
| 75) |
55 - -3758 |
3813 |
| 76) |
0.5 + -9 |
-8.5 |
| 77) |
-1 * 0.78 |
-0.78 |
| 78) |
19 + 33 |
52 |
| 79) |
0.067 * 49 |
3.283 |
| 80) |
5 - 25 |
-20 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized