
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) |
0.02 * -93 |
-1.86 |
| 2) |
51 + 56.7 |
107.7 |
| 3) |
3 - 373 |
-370 |
| 4) |
0.36 - -44 |
44.36 |
| 5) |
-98 / -5 |
19.6 |
| 6) |
-0.009 - -0.045 |
0.036 |
| 7) |
73 + -6 |
67 |
| 8) |
0.006 - -6.79 |
6.796 |
| 9) |
67 + 934 |
1001 |
| 10) |
-0.6 * -1.55 |
0.93 |
| 11) |
1.5 - -183.7 |
185.2 |
| 12) |
6 / 0.08 |
75 |
| 13) |
0.92 + 70 |
70.92 |
| 14) |
3 * 3.46 |
10.38 |
| 15) |
-19.97 - 0.03 |
-20 |
| 16) |
0.6 / 0.06 |
10 |
| 17) |
73 - -9.2 |
82.2 |
| 18) |
0.7 + 8 |
8.7 |
| 19) |
61 * 4 |
244 |
| 20) |
-0.9 + -0.03 |
-0.93 |
| 21) |
88 * 0.04 |
3.52 |
| 22) |
510 * 6 |
3060 |
| 23) |
0.03 * 14.1 |
0.423 |
| 24) |
0.8 - -0.4 |
1.2 |
| 25) |
0.23 * 2 |
0.46 |
| 26) |
-0.68 - -70 |
69.32 |
| 27) |
2 * 22 |
44 |
| 28) |
2 + 20.04 |
22.04 |
| 29) |
21 / -210 |
-0.1 |
| 30) |
0.618 - 0.617 |
0.001 |
| 31) |
0.3 + 6 |
6.3 |
| 32) |
148 * 0.007 |
1.036 |
| 33) |
0.9 / 2 |
0.45 |
| 34) |
4.1 - 1.1 |
3 |
| 35) |
0.01 + -2 |
-1.99 |
| 36) |
-9.61 + 0.5 |
-9.11 |
| 37) |
1.56 - 1 |
0.56 |
| 38) |
-0.493 * -8 |
3.944 |
| 39) |
265 - 274 |
-9 |
| 40) |
64 + 0.07 |
64.07 |
| 41) |
-37 * -8 |
296 |
| 42) |
970 + -4.3 |
965.7 |
| 43) |
13 + 3270 |
3283 |
| 44) |
1.9 + 586.8 |
588.7 |
| 45) |
14 / 5 |
2.8 |
| 46) |
0.62 - -2.4 |
3.02 |
| 47) |
2 + 0.21 |
2.21 |
| 48) |
497 + 8.3 |
505.3 |
| 49) |
26 - -57 |
83 |
| 50) |
-8 - 0.7 |
-8.7 |
| 51) |
525 / 0.07 |
7500 |
| 52) |
0.355 + 8 |
8.355 |
| 53) |
0.26 - -1.58 |
1.84 |
| 54) |
94 * 0.09 |
8.46 |
| 55) |
7 + 0.38 |
7.38 |
| 56) |
17.2 - 57 |
-39.8 |
| 57) |
9 + 0.5 |
9.5 |
| 58) |
9.1 - 6 |
3.1 |
| 59) |
7 * 0.741 |
5.187 |
| 60) |
-0.31 - -5.379 |
5.069 |
| 61) |
8 - -791 |
799 |
| 62) |
5897 - -1285 |
7182 |
| 63) |
16.78 + 47 |
63.78 |
| 64) |
-944 + 68 |
-876 |
| 65) |
-7.52 - -89.12 |
81.6 |
| 66) |
307 + -36 |
271 |
| 67) |
6 * -0.03 |
-0.18 |
| 68) |
3 * -8 |
-24 |
| 69) |
-3 + -5 |
-8 |
| 70) |
86 + 4.2 |
90.2 |
| 71) |
0.06 * 1 |
0.06 |
| 72) |
88.05 - 11 |
77.05 |
| 73) |
-0.984 * 5 |
-4.92 |
| 74) |
0.5 + 4 |
4.5 |
| 75) |
0.3 - 7 |
-6.7 |
| 76) |
5 + 46.5 |
51.5 |
| 77) |
0.007 - -2 |
2.007 |
| 78) |
0.03 - 7 |
-6.97 |
| 79) |
194 + 92 |
286 |
| 80) |
-0.5 - -87 |
86.5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized