
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.7 / 1 |
-0.7 |
| 2) |
-1 + 39 |
38 |
| 3) |
-641 - -790.4 |
149.4 |
| 4) |
89 + -1.9 |
87.1 |
| 5) |
636 + -5.4 |
630.6 |
| 6) |
0.03 + -7 |
-6.97 |
| 7) |
6.31 + 47.69 |
54 |
| 8) |
9756 - 6742 |
3014 |
| 9) |
0.7 - 85 |
-84.3 |
| 10) |
70 / 2 |
35 |
| 11) |
-5 + 0.01 |
-4.99 |
| 12) |
0.391 - -0.7 |
1.091 |
| 13) |
800 * 8 |
6400 |
| 14) |
0.44 - 0.004 |
0.436 |
| 15) |
9.51 - 8.05 |
1.46 |
| 16) |
773 * 0.2 |
154.6 |
| 17) |
90 - -83 |
173 |
| 18) |
3 * 23 |
69 |
| 19) |
4 + 5780 |
5784 |
| 20) |
6050 + 740 |
6790 |
| 21) |
-270 - -303 |
33 |
| 22) |
-83 - 3 |
-86 |
| 23) |
947 * 6 |
5682 |
| 24) |
813 + 432 |
1245 |
| 25) |
0.78 - 4 |
-3.22 |
| 26) |
0.83 + 3.601 |
4.431 |
| 27) |
63 + -4 |
59 |
| 28) |
70.3 + 80 |
150.3 |
| 29) |
7 - -0.003 |
7.003 |
| 30) |
2.6 + 0.9 |
3.5 |
| 31) |
7200 + 9 |
7209 |
| 32) |
26 - 7 |
19 |
| 33) |
9 + 4 |
13 |
| 34) |
-2.02 - 0.08 |
-2.1 |
| 35) |
64.84 + 0.07 |
64.91 |
| 36) |
1 / -0.01 |
-100 |
| 37) |
-5.37 + -2.37 |
-7.74 |
| 38) |
21 - 8 |
13 |
| 39) |
0.977 + 9 |
9.977 |
| 40) |
670.8 - 439 |
231.8 |
| 41) |
0.066 / -0.6 |
-0.11 |
| 42) |
0.08 * 5.4 |
0.432 |
| 43) |
736 - 1371 |
-635 |
| 44) |
11.2 + -18 |
-6.8 |
| 45) |
752.7 + 3 |
755.7 |
| 46) |
2.967 * 30 |
89.01 |
| 47) |
6186 - 5 |
6181 |
| 48) |
6 * 34 |
204 |
| 49) |
-3 - 0.8 |
-3.8 |
| 50) |
0.5 + 30 |
30.5 |
| 51) |
6224 - 6 |
6218 |
| 52) |
62 * 1 |
62 |
| 53) |
49.86 - -2.38 |
52.24 |
| 54) |
1874 * 0.035 |
65.59 |
| 55) |
-0.68 * 8 |
-5.44 |
| 56) |
6017 - 324 |
5693 |
| 57) |
-92.9 + -3.2 |
-96.1 |
| 58) |
3 / 1 |
3 |
| 59) |
5.3 - -7.7 |
13 |
| 60) |
7 - 71 |
-64 |
| 61) |
478.6 + -428 |
50.6 |
| 62) |
0.008 * -5 |
-0.04 |
| 63) |
68 / 0.01 |
6800 |
| 64) |
0.149 + -0.041 |
0.108 |
| 65) |
335 + -11.4 |
323.6 |
| 66) |
0.042 + 0.009 |
0.051 |
| 67) |
0.03 + 4 |
4.03 |
| 68) |
86 - 84.51 |
1.49 |
| 69) |
6331 - 1 |
6330 |
| 70) |
2 - 0.005 |
1.995 |
| 71) |
22.8 / 8 |
2.85 |
| 72) |
2.7 - 1 |
1.7 |
| 73) |
0.03 + 41.3 |
41.33 |
| 74) |
6 * 0.889 |
5.334 |
| 75) |
-5.777 - -7.45 |
1.673 |
| 76) |
-81 / -3 |
27 |
| 77) |
9.65 + 0.02 |
9.67 |
| 78) |
148.7 - 4 |
144.7 |
| 79) |
-5.6 - 20.7 |
-26.3 |
| 80) |
7592 + 44 |
7636 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized