
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) |
1 + -6.9 |
-5.9 |
| 2) |
-701 + 162 |
-539 |
| 3) |
5 - -83 |
88 |
| 4) |
21.61 + 0.89 |
22.5 |
| 5) |
4 - 960 |
-956 |
| 6) |
92 - -97.5 |
189.5 |
| 7) |
7 + 2 |
9 |
| 8) |
0.07 - -93 |
93.07 |
| 9) |
4 + 22 |
26 |
| 10) |
8785 - -19 |
8804 |
| 11) |
3 - 0.96 |
2.04 |
| 12) |
4.2 + -0.2 |
4 |
| 13) |
944 - 54 |
890 |
| 14) |
63 * 9 |
567 |
| 15) |
898 + 76 |
974 |
| 16) |
7 + 71.7 |
78.7 |
| 17) |
-0.9 - 18.3 |
-19.2 |
| 18) |
7.2 - 0.084 |
7.116 |
| 19) |
6207 - 582 |
5625 |
| 20) |
6 - -2463 |
2469 |
| 21) |
57 - -14 |
71 |
| 22) |
1.55 * -8 |
-12.4 |
| 23) |
0.03 + -8 |
-7.97 |
| 24) |
1.4 - -51.06 |
52.46 |
| 25) |
2 * -59 |
-118 |
| 26) |
41.2 + 717 |
758.2 |
| 27) |
2.64 - -4 |
6.64 |
| 28) |
4 + -676 |
-672 |
| 29) |
-0.34 - 7 |
-7.34 |
| 30) |
323 + 1131 |
1454 |
| 31) |
63.4 / 1 |
63.4 |
| 32) |
-832 / 2 |
-416 |
| 33) |
2.618 + -0.038 |
2.58 |
| 34) |
3.877 + -0.002 |
3.875 |
| 35) |
0.003 - -7 |
7.003 |
| 36) |
78 * 1.26 |
98.28 |
| 37) |
15 - 9 |
6 |
| 38) |
6.63 + 9 |
15.63 |
| 39) |
42 - 1.09 |
40.91 |
| 40) |
6 + -578 |
-572 |
| 41) |
57 + 809 |
866 |
| 42) |
13 + 646 |
659 |
| 43) |
48.78 - -0.7 |
49.48 |
| 44) |
2226 - -86 |
2312 |
| 45) |
0.55 * 0.76 |
0.418 |
| 46) |
457 + 483 |
940 |
| 47) |
0.081 * 5 |
0.405 |
| 48) |
-5.896 - -0.006 |
-5.89 |
| 49) |
-11 + 7567 |
7556 |
| 50) |
1.4 - -752.3 |
753.7 |
| 51) |
6 / 0.002 |
3000 |
| 52) |
3.7 + 678 |
681.7 |
| 53) |
0.32 - 8 |
-7.68 |
| 54) |
1 * -7.2 |
-7.2 |
| 55) |
712 - -46 |
758 |
| 56) |
0.6 * 72 |
43.2 |
| 57) |
0.04 - -0.28 |
0.32 |
| 58) |
0.46 * 645 |
296.7 |
| 59) |
607 + 9 |
616 |
| 60) |
-61 + 824.5 |
763.5 |
| 61) |
2 - 955 |
-953 |
| 62) |
15 * 0.4 |
6 |
| 63) |
0.87 - 0.009 |
0.861 |
| 64) |
48 - 0.3 |
47.7 |
| 65) |
-0.6 / -8 |
0.075 |
| 66) |
-48 * 0.07 |
-3.36 |
| 67) |
-13 * 2 |
-26 |
| 68) |
920 - -5210 |
6130 |
| 69) |
0.5 - 68.2 |
-67.7 |
| 70) |
0.09 * 0.4 |
0.036 |
| 71) |
0.2 + 47.47 |
47.67 |
| 72) |
2 * 0.32 |
0.64 |
| 73) |
-77 + 0.8 |
-76.2 |
| 74) |
3.1 - -0.009 |
3.109 |
| 75) |
13.1 + -15.85 |
-2.75 |
| 76) |
65.9 - -26 |
91.9 |
| 77) |
-91 + -0.2 |
-91.2 |
| 78) |
6529 + 29 |
6558 |
| 79) |
11 * -7 |
-77 |
| 80) |
844 - 0.1 |
843.9 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized