
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) |
7 / 0.08 |
87.5 |
| 2) |
-0.57 - 3 |
-3.57 |
| 3) |
-0.011 - -9 |
8.989 |
| 4) |
7 - -3 |
10 |
| 5) |
5 + 0.66 |
5.66 |
| 6) |
5 - 0.005 |
4.995 |
| 7) |
3266 + 2205 |
5471 |
| 8) |
-8 / 1 |
-8 |
| 9) |
9.9 - 7.42 |
2.48 |
| 10) |
-0.07 + -2 |
-2.07 |
| 11) |
8372 + -750 |
7622 |
| 12) |
-0.013 - -4 |
3.987 |
| 13) |
4 + 0.042 |
4.042 |
| 14) |
-0.8 + -0.49 |
-1.29 |
| 15) |
-0.007 + 3.5 |
3.493 |
| 16) |
47 + 3 |
50 |
| 17) |
0.03 * 273 |
8.19 |
| 18) |
21 + -156 |
-135 |
| 19) |
69 * 98 |
6762 |
| 20) |
3557 * 0.02 |
71.14 |
| 21) |
6 + -92 |
-86 |
| 22) |
0.6 / 0.002 |
300 |
| 23) |
9 - -348 |
357 |
| 24) |
95 * -6.4 |
-608 |
| 25) |
1.639 + 0.6 |
2.239 |
| 26) |
12 + 3175 |
3187 |
| 27) |
37 + 23 |
60 |
| 28) |
6.24 + 5.9 |
12.14 |
| 29) |
2 - -4.1 |
6.1 |
| 30) |
6.6 + 0.9 |
7.5 |
| 31) |
0.3 - -7.44 |
7.74 |
| 32) |
85 - 0.04 |
84.96 |
| 33) |
8 + 0.527 |
8.527 |
| 34) |
6 * -0.32 |
-1.92 |
| 35) |
605 - 6 |
599 |
| 36) |
0.02 + 8 |
8.02 |
| 37) |
936 * 0.09 |
84.24 |
| 38) |
628.9 + -71 |
557.9 |
| 39) |
4 - 3.2 |
0.8 |
| 40) |
7 / 1 |
7 |
| 41) |
1.92 - 0.005 |
1.915 |
| 42) |
0.9 - 0.2 |
0.7 |
| 43) |
36 - 0.29 |
35.71 |
| 44) |
48 + 40.5 |
88.5 |
| 45) |
5.35 - -0.8 |
6.15 |
| 46) |
-0.09 / -0.004 |
22.5 |
| 47) |
7 - -1.48 |
8.48 |
| 48) |
2 * 771 |
1542 |
| 49) |
201 - -0.1 |
201.1 |
| 50) |
6 - -10 |
16 |
| 51) |
306 + 6 |
312 |
| 52) |
0.02 * 3 |
0.06 |
| 53) |
-0.507 + 1 |
0.493 |
| 54) |
-9 - -2.77 |
-6.23 |
| 55) |
1 / 4 |
0.25 |
| 56) |
26.1 / -0.6 |
-43.5 |
| 57) |
-2.1 - 4 |
-6.1 |
| 58) |
-531 - -217 |
-314 |
| 59) |
8055 / 3 |
2685 |
| 60) |
0.09 * 1 |
0.09 |
| 61) |
4.9 / 0.002 |
2450 |
| 62) |
24 - -7.33 |
31.33 |
| 63) |
-9 + 83 |
74 |
| 64) |
7.2 - -7.8 |
15 |
| 65) |
-45 / 5 |
-9 |
| 66) |
45 - 0.21 |
44.79 |
| 67) |
157 - 76.21 |
80.79 |
| 68) |
-54 - -4852 |
4798 |
| 69) |
-6 - 4 |
-10 |
| 70) |
0.754 + 0.006 |
0.76 |
| 71) |
1.5 + 4.232 |
5.732 |
| 72) |
-667 + 956.3 |
289.3 |
| 73) |
956 - 45 |
911 |
| 74) |
0.006 + 0.004 |
0.01 |
| 75) |
-1.642 + 6 |
4.358 |
| 76) |
-0.7 + 8 |
7.3 |
| 77) |
432 + -1239 |
-807 |
| 78) |
3 * 33 |
99 |
| 79) |
37 + 5 |
42 |
| 80) |
-9 + 29 |
20 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized