
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) |
9 + 0.93 |
9.93 |
| 2) |
585 + 4 |
589 |
| 3) |
0.7 + 0.07 |
0.77 |
| 4) |
518 - -88 |
606 |
| 5) |
-623 + 779 |
156 |
| 6) |
-22 - 462 |
-484 |
| 7) |
81 + 50 |
131 |
| 8) |
2 * 1 |
2 |
| 9) |
43 - -186 |
229 |
| 10) |
2671 - 52 |
2619 |
| 11) |
60 - 0.8 |
59.2 |
| 12) |
-9 + -81 |
-90 |
| 13) |
-16 * 8 |
-128 |
| 14) |
-8.6 + 242 |
233.4 |
| 15) |
5 - -4 |
9 |
| 16) |
83 / 2 |
41.5 |
| 17) |
-2 * -65 |
130 |
| 18) |
2 + 295 |
297 |
| 19) |
58 / 0.1 |
580 |
| 20) |
1.1 + -3 |
-1.9 |
| 21) |
-25 * -3 |
75 |
| 22) |
-2 + 4 |
2 |
| 23) |
-2585 - -6692 |
4107 |
| 24) |
260 + 7 |
267 |
| 25) |
0.07 / 0.004 |
17.5 |
| 26) |
7 - 0.001 |
6.999 |
| 27) |
11 - 25.4 |
-14.4 |
| 28) |
0.6 - -10.5 |
11.1 |
| 29) |
-7.2 - -34 |
26.8 |
| 30) |
4123 + -3 |
4120 |
| 31) |
43.9 - -2.2 |
46.1 |
| 32) |
41.87 * 1 |
41.87 |
| 33) |
0.007 + 3.3 |
3.307 |
| 34) |
0.02 / -1 |
-0.02 |
| 35) |
55.2 + 10 |
65.2 |
| 36) |
91 + 8.72 |
99.72 |
| 37) |
6.32 - 1 |
5.32 |
| 38) |
8.74 + 11.5 |
20.24 |
| 39) |
9 * -63 |
-567 |
| 40) |
80 - -14.94 |
94.94 |
| 41) |
101.7 / 9 |
11.3 |
| 42) |
-691 - 42 |
-733 |
| 43) |
64.61 + 8 |
72.61 |
| 44) |
92 - 24 |
68 |
| 45) |
-0.2 * -459 |
91.8 |
| 46) |
3 + 2.631 |
5.631 |
| 47) |
1 - -3 |
4 |
| 48) |
89 / 0.4 |
222.5 |
| 49) |
-1161 - -658 |
-503 |
| 50) |
0.7 + -56 |
-55.3 |
| 51) |
0.9 + -48 |
-47.1 |
| 52) |
5 - -0.006 |
5.006 |
| 53) |
-507 + 877 |
370 |
| 54) |
0.23 + 3 |
3.23 |
| 55) |
72 / -0.4 |
-180 |
| 56) |
46 + -63.7 |
-17.7 |
| 57) |
66 - -0.9 |
66.9 |
| 58) |
-0.34 + -2 |
-2.34 |
| 59) |
0.04 * 4 |
0.16 |
| 60) |
7 * 0.06 |
0.42 |
| 61) |
36 / -0.08 |
-450 |
| 62) |
59.1 + 0.8 |
59.9 |
| 63) |
0.7 * 0.1 |
0.07 |
| 64) |
-0.06 + 3.2 |
3.14 |
| 65) |
2.68 - 0.003 |
2.677 |
| 66) |
-0.89 + -6.59 |
-7.48 |
| 67) |
89 + 5 |
94 |
| 68) |
17 / 0.05 |
340 |
| 69) |
0.102 + 0.3 |
0.402 |
| 70) |
-7.4 + 6 |
-1.4 |
| 71) |
0.34 * 5 |
1.7 |
| 72) |
6 / -0.5 |
-12 |
| 73) |
1.61 - -0.4 |
2.01 |
| 74) |
1 * 0.009 |
0.009 |
| 75) |
0.1 + 95 |
95.1 |
| 76) |
5 + -0.08 |
4.92 |
| 77) |
842 - 40 |
802 |
| 78) |
-5 - -5563 |
5558 |
| 79) |
55 - -13 |
68 |
| 80) |
-0.6 * -54.2 |
32.52 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized