
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) |
5 * 1.81 |
9.05 |
| 2) |
-705 + 67 |
-638 |
| 3) |
82 + -13.2 |
68.8 |
| 4) |
0.5 - -3.6 |
4.1 |
| 5) |
-0.08 + 75.4 |
75.32 |
| 6) |
7 * 0.09 |
0.63 |
| 7) |
0.987 - -2.165 |
3.152 |
| 8) |
6 * 0.067 |
0.402 |
| 9) |
0.7 - 4.47 |
-3.77 |
| 10) |
9 / -5 |
-1.8 |
| 11) |
2 * 61 |
122 |
| 12) |
0.04 - -2.5 |
2.54 |
| 13) |
8.3 + 0.04 |
8.34 |
| 14) |
8 - -0.3 |
8.3 |
| 15) |
-6446 + 6490 |
44 |
| 16) |
0.36 - -25 |
25.36 |
| 17) |
-7243 - -6860 |
-383 |
| 18) |
62.73 + -0.03 |
62.7 |
| 19) |
0.754 - 0.7 |
0.054 |
| 20) |
6.9 + 88.5 |
95.4 |
| 21) |
84 + 73.3 |
157.3 |
| 22) |
-55 / 0.1 |
-550 |
| 23) |
-0.4 + -6 |
-6.4 |
| 24) |
35 - 0.9 |
34.1 |
| 25) |
95 + 59 |
154 |
| 26) |
9 * 0.09 |
0.81 |
| 27) |
73.4 / -1 |
-73.4 |
| 28) |
0.6 - -1.76 |
2.36 |
| 29) |
9 + 1.89 |
10.89 |
| 30) |
3224 - 68 |
3156 |
| 31) |
0.36 * 53 |
19.08 |
| 32) |
0.67 + -0.232 |
0.438 |
| 33) |
54 + 6 |
60 |
| 34) |
0.03 - -0.034 |
0.064 |
| 35) |
151 + -6 |
145 |
| 36) |
-88 + 7 |
-81 |
| 37) |
2 * -0.04 |
-0.08 |
| 38) |
97 * 27 |
2619 |
| 39) |
9 / -0.02 |
-450 |
| 40) |
9.3 - -54 |
63.3 |
| 41) |
13 - -1 |
14 |
| 42) |
-1 - -6 |
5 |
| 43) |
-0.2 * -0.745 |
0.149 |
| 44) |
9215 + -85 |
9130 |
| 45) |
-40 * -8 |
320 |
| 46) |
-5.831 + 7.436 |
1.605 |
| 47) |
315.5 + 1 |
316.5 |
| 48) |
18.8 - 76 |
-57.2 |
| 49) |
-878 + 169 |
-709 |
| 50) |
32 * 92 |
2944 |
| 51) |
0.589 + 8 |
8.589 |
| 52) |
-58 / -2 |
29 |
| 53) |
-63 - -219.4 |
156.4 |
| 54) |
12 * -1.9 |
-22.8 |
| 55) |
4.1 * 2 |
8.2 |
| 56) |
0.47 + -0.006 |
0.464 |
| 57) |
-0.035 + 2 |
1.965 |
| 58) |
5 + -56 |
-51 |
| 59) |
0.2 - -0.319 |
0.519 |
| 60) |
55.53 / 0.009 |
6170 |
| 61) |
184 + 933 |
1117 |
| 62) |
25 + 6906 |
6931 |
| 63) |
6 - 2 |
4 |
| 64) |
-0.03 + -7 |
-7.03 |
| 65) |
73 - -6 |
79 |
| 66) |
-21 + -1 |
-22 |
| 67) |
0.3 - 96 |
-95.7 |
| 68) |
0.002 * 422 |
0.844 |
| 69) |
82 - -3 |
85 |
| 70) |
0.034 + 9.016 |
9.05 |
| 71) |
5.93 - -0.04 |
5.97 |
| 72) |
87 + 49 |
136 |
| 73) |
29 + 195 |
224 |
| 74) |
0.01 + 0.001 |
0.011 |
| 75) |
0.1 - 64 |
-63.9 |
| 76) |
65 + 69.1 |
134.1 |
| 77) |
0.9 * 3480 |
3132 |
| 78) |
8.62 - 6.6 |
2.02 |
| 79) |
0.32 - -33.75 |
34.07 |
| 80) |
-7.5 + -88 |
-95.5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized