
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 + -554 |
-545 |
| 2) |
0.849 / -0.03 |
-28.3 |
| 3) |
38 / -4 |
-9.5 |
| 4) |
3.56 * 8 |
28.48 |
| 5) |
1.9 - 91.4 |
-89.5 |
| 6) |
9 + 4.3 |
13.3 |
| 7) |
7.9 + 0.28 |
8.18 |
| 8) |
254 - -864 |
1118 |
| 9) |
56.3 - -92 |
148.3 |
| 10) |
51 + 3.08 |
54.08 |
| 11) |
8580 * 0.85 |
7293 |
| 12) |
8.113 - 0.001 |
8.112 |
| 13) |
-7 * -5 |
35 |
| 14) |
-342 + -4 |
-346 |
| 15) |
5 * 6.488 |
32.44 |
| 16) |
-6 - -54.1 |
48.1 |
| 17) |
5664 + 6 |
5670 |
| 18) |
247 * -2 |
-494 |
| 19) |
0.01 - -0.12 |
0.13 |
| 20) |
-65 - 498 |
-563 |
| 21) |
9.44 - -81 |
90.44 |
| 22) |
6 - -7.5 |
13.5 |
| 23) |
82 + -31 |
51 |
| 24) |
0.698 - -0.55 |
1.248 |
| 25) |
6.57 - -0.7 |
7.27 |
| 26) |
93 + 54.6 |
147.6 |
| 27) |
-584 - -7 |
-577 |
| 28) |
-6 - 776 |
-782 |
| 29) |
-7 / -0.8 |
8.75 |
| 30) |
1.3 - -0.14 |
1.44 |
| 31) |
167.4 + 0.7 |
168.1 |
| 32) |
6 * 776 |
4656 |
| 33) |
1 - 2.44 |
-1.44 |
| 34) |
3345 + 8 |
3353 |
| 35) |
8 - 0.896 |
7.104 |
| 36) |
805 * 4 |
3220 |
| 37) |
-0.81 * 3 |
-2.43 |
| 38) |
9 - 0.9 |
8.1 |
| 39) |
0.9 + 15.8 |
16.7 |
| 40) |
0.3 + 9.224 |
9.524 |
| 41) |
-71 + -7.3 |
-78.3 |
| 42) |
17.6 + 87 |
104.6 |
| 43) |
-33 - 774 |
-807 |
| 44) |
98.5 + 8.8 |
107.3 |
| 45) |
83.2 + -34.8 |
48.4 |
| 46) |
301.2 + 94 |
395.2 |
| 47) |
-1 - -9.7 |
8.7 |
| 48) |
-0.04 + -0.8 |
-0.84 |
| 49) |
231 + -3.2 |
227.8 |
| 50) |
0.01 - 6.86 |
-6.85 |
| 51) |
-61.17 + 98 |
36.83 |
| 52) |
-63 - 8 |
-71 |
| 53) |
5.4 + 201 |
206.4 |
| 54) |
-0.2 * -39 |
7.8 |
| 55) |
835 - 925 |
-90 |
| 56) |
-5 * 5.34 |
-26.7 |
| 57) |
-0.021 + 8.3 |
8.279 |
| 58) |
7471 + 3 |
7474 |
| 59) |
0.03 + 74 |
74.03 |
| 60) |
2.9 + 0.27 |
3.17 |
| 61) |
-0.07 * 5 |
-0.35 |
| 62) |
9 - 0.02 |
8.98 |
| 63) |
5.6 + 0.3 |
5.9 |
| 64) |
-73.5 + 513 |
439.5 |
| 65) |
6.07 - -56 |
62.07 |
| 66) |
24 + 8193 |
8217 |
| 67) |
-9.2 + 849 |
839.8 |
| 68) |
458 + 0.1 |
458.1 |
| 69) |
12 + 4 |
16 |
| 70) |
-0.35 - 0.47 |
-0.82 |
| 71) |
7 + -0.07 |
6.93 |
| 72) |
8 * 0.06 |
0.48 |
| 73) |
36 - 14 |
22 |
| 74) |
-545 + -50 |
-595 |
| 75) |
-6 * -0.1 |
0.6 |
| 76) |
498 - -8707 |
9205 |
| 77) |
787 + -7 |
780 |
| 78) |
-396 + -363 |
-759 |
| 79) |
26.2 - 7.1 |
19.1 |
| 80) |
0.2 * 0.02 |
0.004 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized