
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) |
35 - -1 |
36 |
| 2) |
0.009 * 6 |
0.054 |
| 3) |
0.3 + 0.502 |
0.802 |
| 4) |
0.05 - 7 |
-6.95 |
| 5) |
-84 * 3 |
-252 |
| 6) |
-0.1 - 4 |
-4.1 |
| 7) |
4 / 0.02 |
200 |
| 8) |
-0.007 * 60 |
-0.42 |
| 9) |
-33 - 0.4 |
-33.4 |
| 10) |
27 - -57.95 |
84.95 |
| 11) |
27 + 176 |
203 |
| 12) |
3 + 933 |
936 |
| 13) |
8 * -81 |
-648 |
| 14) |
0.022 + 0.01 |
0.032 |
| 15) |
81.31 - 5.4 |
75.91 |
| 16) |
8 * 60.55 |
484.4 |
| 17) |
0.001 + 3.691 |
3.692 |
| 18) |
2 - 226 |
-224 |
| 19) |
1 + 99.4 |
100.4 |
| 20) |
9746 + -89 |
9657 |
| 21) |
-0.06 - 8 |
-8.06 |
| 22) |
0.05 / -5 |
-0.01 |
| 23) |
724 * 0.4 |
289.6 |
| 24) |
42 - -18 |
60 |
| 25) |
85.5 + 9.2 |
94.7 |
| 26) |
3108 - -6 |
3114 |
| 27) |
-83 / 2 |
-41.5 |
| 28) |
3257 - 450 |
2807 |
| 29) |
2 - 4.4 |
-2.4 |
| 30) |
3222 + 1447 |
4669 |
| 31) |
-15 - 53 |
-68 |
| 32) |
3.4 + 203.1 |
206.5 |
| 33) |
633.4 - 625 |
8.4 |
| 34) |
3 - 0.005 |
2.995 |
| 35) |
1324 + -507 |
817 |
| 36) |
-172 - 227 |
-399 |
| 37) |
8 - -35 |
43 |
| 38) |
22 + 2 |
24 |
| 39) |
96 - -62.1 |
158.1 |
| 40) |
1773 - 98 |
1675 |
| 41) |
-0.36 * 6 |
-2.16 |
| 42) |
3.66 * 1 |
3.66 |
| 43) |
-4.31 - 4 |
-8.31 |
| 44) |
-6 + 7.35 |
1.35 |
| 45) |
0.2 - -2.88 |
3.08 |
| 46) |
0.6 + 0.1 |
0.7 |
| 47) |
-4 * 0.17 |
-0.68 |
| 48) |
8 - 0.06 |
7.94 |
| 49) |
-0.041 + 0.7 |
0.659 |
| 50) |
-104 + -245 |
-349 |
| 51) |
241 - 3 |
238 |
| 52) |
820 - 36 |
784 |
| 53) |
4 * 67 |
268 |
| 54) |
3 - -1011 |
1014 |
| 55) |
22.82 + 5.64 |
28.46 |
| 56) |
-651 + 440 |
-211 |
| 57) |
50 / -0.8 |
-62.5 |
| 58) |
0.01 - 6 |
-5.99 |
| 59) |
526 * 9 |
4734 |
| 60) |
1.3 + 167 |
168.3 |
| 61) |
-337 - 612 |
-949 |
| 62) |
-36 + 1 |
-35 |
| 63) |
246.4 + -270 |
-23.6 |
| 64) |
15 * 0.008 |
0.12 |
| 65) |
59.81 + 13 |
72.81 |
| 66) |
0.1 + 22 |
22.1 |
| 67) |
2 + 0.687 |
2.687 |
| 68) |
-5 + 19.27 |
14.27 |
| 69) |
0.001 - -3 |
3.001 |
| 70) |
-938 + 32 |
-906 |
| 71) |
-0.019 + 3.1 |
3.081 |
| 72) |
4.2 / 0.8 |
5.25 |
| 73) |
-21.6 - 77.3 |
-98.9 |
| 74) |
35 + 6311 |
6346 |
| 75) |
25.6 + 5.49 |
31.09 |
| 76) |
1 - 6 |
-5 |
| 77) |
0.001 + 0.002 |
0.003 |
| 78) |
-1 * 389 |
-389 |
| 79) |
65 - 9 |
56 |
| 80) |
25 + -0.5 |
24.5 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized