
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) |
377 - -2 |
379 |
| 2) |
74.93 - 0.9 |
74.03 |
| 3) |
8 - -35 |
43 |
| 4) |
6 - -0.873 |
6.873 |
| 5) |
-94.5 * 0.06 |
-5.67 |
| 6) |
-1 - -0.3 |
-0.7 |
| 7) |
0.003 / 0.03 |
0.1 |
| 8) |
0.72 + -0.097 |
0.623 |
| 9) |
-18 + 96 |
78 |
| 10) |
-0.08 - -5.5 |
5.42 |
| 11) |
90 / 0.03 |
3000 |
| 12) |
0.203 - 0.012 |
0.191 |
| 13) |
4 + 0.058 |
4.058 |
| 14) |
-0.15 + -0.05 |
-0.2 |
| 15) |
-3.2 - 14 |
-17.2 |
| 16) |
-19 + 0.9 |
-18.1 |
| 17) |
3 - 79 |
-76 |
| 18) |
-3.2 * -4 |
12.8 |
| 19) |
0.88 * -5 |
-4.4 |
| 20) |
-446 - -41 |
-405 |
| 21) |
8946 / -9 |
-994 |
| 22) |
-0.036 + -0.794 |
-0.83 |
| 23) |
-3 * 73 |
-219 |
| 24) |
-4 * 0.89 |
-3.56 |
| 25) |
6 + 588 |
594 |
| 26) |
-9 * 9 |
-81 |
| 27) |
427 - 14 |
413 |
| 28) |
0.71 + 0.471 |
1.181 |
| 29) |
34 - 0.09 |
33.91 |
| 30) |
9 + -59 |
-50 |
| 31) |
16.88 - 7 |
9.88 |
| 32) |
85.05 + -0.9 |
84.15 |
| 33) |
4.9 + -7 |
-2.1 |
| 34) |
7 - 93 |
-86 |
| 35) |
250 + 8479 |
8729 |
| 36) |
8.4 / 84 |
0.1 |
| 37) |
-762 + -167 |
-929 |
| 38) |
7.1 + -0.09 |
7.01 |
| 39) |
7.47 + 8 |
15.47 |
| 40) |
9 * 7.82 |
70.38 |
| 41) |
3 * -0.08 |
-0.24 |
| 42) |
-578 + 92 |
-486 |
| 43) |
-5.08 - -8.8 |
3.72 |
| 44) |
-45 * 6 |
-270 |
| 45) |
6 + -385 |
-379 |
| 46) |
-0.84 * -7.6 |
6.384 |
| 47) |
7 + 28 |
35 |
| 48) |
1 - 65 |
-64 |
| 49) |
588 + 19 |
607 |
| 50) |
936.5 - -1 |
937.5 |
| 51) |
9.6 * 1 |
9.6 |
| 52) |
12 - -8592 |
8604 |
| 53) |
-2.4 + 9 |
6.6 |
| 54) |
46.8 - 0.02 |
46.78 |
| 55) |
0.044 * 9 |
0.396 |
| 56) |
6660 + -6924 |
-264 |
| 57) |
0.777 + 0.5 |
1.277 |
| 58) |
-3.5 + 2.36 |
-1.14 |
| 59) |
-67 + 9428 |
9361 |
| 60) |
3.04 + -6.48 |
-3.44 |
| 61) |
528 * 0.008 |
4.224 |
| 62) |
63 / 0.1 |
630 |
| 63) |
0.1 - -6.7 |
6.8 |
| 64) |
76 / 4 |
19 |
| 65) |
0.69 - -0.002 |
0.692 |
| 66) |
875 + -6 |
869 |
| 67) |
61 - 72.3 |
-11.3 |
| 68) |
-0.009 - -7 |
6.991 |
| 69) |
979 - -25 |
1004 |
| 70) |
0.04 + 39 |
39.04 |
| 71) |
91 - 0.5 |
90.5 |
| 72) |
751 / 25 |
30.04 |
| 73) |
846 / 2 |
423 |
| 74) |
0.08 / -4 |
-0.02 |
| 75) |
-5 - 4 |
-9 |
| 76) |
1 - 35 |
-34 |
| 77) |
183 + 2 |
185 |
| 78) |
26.1 - -6.7 |
32.8 |
| 79) |
2 + 93 |
95 |
| 80) |
172 - 34 |
138 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized