
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) |
-78.4 + 9 |
-69.4 |
| 2) |
-0.03 * 58 |
-1.74 |
| 3) |
94 + 7.9 |
101.9 |
| 4) |
76 * -1 |
-76 |
| 5) |
-0.09 - 6.64 |
-6.73 |
| 6) |
328 - 694 |
-366 |
| 7) |
0.64 + -0.77 |
-0.13 |
| 8) |
-0.7 + 4.562 |
3.862 |
| 9) |
8 * 0.1 |
0.8 |
| 10) |
-9 + 0.18 |
-8.82 |
| 11) |
-1.85 * 3 |
-5.55 |
| 12) |
0.008 / 0.04 |
0.2 |
| 13) |
-0.008 * -61 |
0.488 |
| 14) |
116 + -5 |
111 |
| 15) |
1 * 65.8 |
65.8 |
| 16) |
0.647 * 4 |
2.588 |
| 17) |
2205 + -572 |
1633 |
| 18) |
0.011 + 0.6 |
0.611 |
| 19) |
5 - 185 |
-180 |
| 20) |
25 + 75 |
100 |
| 21) |
4 - 0.02 |
3.98 |
| 22) |
-35 * -0.8 |
28 |
| 23) |
-8 + 539 |
531 |
| 24) |
-22 * 9 |
-198 |
| 25) |
0.129 * 4 |
0.516 |
| 26) |
-0.01 - -84.99 |
84.98 |
| 27) |
7.29 + 7 |
14.29 |
| 28) |
0.33 * 4 |
1.32 |
| 29) |
5 + -1.5 |
3.5 |
| 30) |
-0.27 - 2 |
-2.27 |
| 31) |
-0.03 - 8 |
-8.03 |
| 32) |
457 * 3 |
1371 |
| 33) |
-721 - -86 |
-635 |
| 34) |
4 + -0.04 |
3.96 |
| 35) |
0.2 * 424 |
84.8 |
| 36) |
0.5 * 3.03 |
1.515 |
| 37) |
-0.02 * -74 |
1.48 |
| 38) |
-58 + 7 |
-51 |
| 39) |
0.7 + 0.2 |
0.9 |
| 40) |
3227 - -8 |
3235 |
| 41) |
22.5 * 3 |
67.5 |
| 42) |
1 + 0.09 |
1.09 |
| 43) |
20 * 115 |
2300 |
| 44) |
6211 + 9 |
6220 |
| 45) |
-0.01 - 0.64 |
-0.65 |
| 46) |
0.5 + 2.6 |
3.1 |
| 47) |
8.6 - 0.004 |
8.596 |
| 48) |
4 / -1 |
-4 |
| 49) |
0.02 + 3 |
3.02 |
| 50) |
77.16 - -0.4 |
77.56 |
| 51) |
7 * 3 |
21 |
| 52) |
-3 * -750 |
2250 |
| 53) |
7656 + 85 |
7741 |
| 54) |
42 + 2 |
44 |
| 55) |
8.666 - 0.6 |
8.066 |
| 56) |
0.32 * 2680 |
857.6 |
| 57) |
5966 - -526 |
6492 |
| 58) |
9 - 827 |
-818 |
| 59) |
846 + -782.1 |
63.9 |
| 60) |
4 * 1 |
4 |
| 61) |
-9 - -186 |
177 |
| 62) |
-180 * -3 |
540 |
| 63) |
2 - 7.25 |
-5.25 |
| 64) |
-0.044 / 0.08 |
-0.55 |
| 65) |
79 * 4.5 |
355.5 |
| 66) |
759 / -1 |
-759 |
| 67) |
5 - 264 |
-259 |
| 68) |
85.93 + -7 |
78.93 |
| 69) |
-96 - -274 |
178 |
| 70) |
-7 / 0.2 |
-35 |
| 71) |
-0.06 - -22 |
21.94 |
| 72) |
-54 * -0.15 |
8.1 |
| 73) |
351.4 - 279 |
72.4 |
| 74) |
0.4 * 1 |
0.4 |
| 75) |
3119 - 90 |
3029 |
| 76) |
57 + 78 |
135 |
| 77) |
6.2 * 58 |
359.6 |
| 78) |
-45 - 0.4 |
-45.4 |
| 79) |
99.6 + -0.02 |
99.58 |
| 80) |
9.82 + -9.3 |
0.52 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized