
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.009 * 4 |
0.036 |
| 2) |
0.07 + 3 |
3.07 |
| 3) |
-3 - 861 |
-864 |
| 4) |
21 + 5 |
26 |
| 5) |
0.054 - -0.27 |
0.324 |
| 6) |
9 - -689.4 |
698.4 |
| 7) |
1811 * 0.02 |
36.22 |
| 8) |
-78 + -7 |
-85 |
| 9) |
0.5 - 8.4 |
-7.9 |
| 10) |
152 * 0.05 |
7.6 |
| 11) |
7.7 / 2 |
3.85 |
| 12) |
543 - 930 |
-387 |
| 13) |
11 + 30 |
41 |
| 14) |
6265 + -6 |
6259 |
| 15) |
0.2 - 0.72 |
-0.52 |
| 16) |
93 + 5 |
98 |
| 17) |
6.2 / 5 |
1.24 |
| 18) |
-55 * -0.21 |
11.55 |
| 19) |
0.001 * 9638 |
9.638 |
| 20) |
-94.4 * 5 |
-472 |
| 21) |
9828 + 12 |
9840 |
| 22) |
-9 / -25 |
0.36 |
| 23) |
0.76 + -0.502 |
0.258 |
| 24) |
511.6 / 10 |
51.16 |
| 25) |
550 - 533 |
17 |
| 26) |
6012 - -76 |
6088 |
| 27) |
-9 + -511 |
-520 |
| 28) |
-3.1 - 1 |
-4.1 |
| 29) |
0.293 + 2.3 |
2.593 |
| 30) |
85.54 + -9.5 |
76.04 |
| 31) |
2 * 0.82 |
1.64 |
| 32) |
-0.09 + -9 |
-9.09 |
| 33) |
817 - -3 |
820 |
| 34) |
0.97 + 54 |
54.97 |
| 35) |
2 * 0.91 |
1.82 |
| 36) |
-39 + -5 |
-44 |
| 37) |
-383 - 53 |
-436 |
| 38) |
83 + 18 |
101 |
| 39) |
13 - 0.8 |
12.2 |
| 40) |
-9 / 0.06 |
-150 |
| 41) |
6 * -96 |
-576 |
| 42) |
95.3 + -105 |
-9.7 |
| 43) |
68 + 2.18 |
70.18 |
| 44) |
2 - -9.59 |
11.59 |
| 45) |
91 * 96 |
8736 |
| 46) |
89 + 82 |
171 |
| 47) |
-0.85 - 0.55 |
-1.4 |
| 48) |
5.799 - 0.7 |
5.099 |
| 49) |
0.7 + 0.2 |
0.9 |
| 50) |
25.1 * 3 |
75.3 |
| 51) |
4.914 / -0.007 |
-702 |
| 52) |
224 - 77.1 |
146.9 |
| 53) |
350 + -193 |
157 |
| 54) |
6 * 38.5 |
231 |
| 55) |
-6 - 626 |
-632 |
| 56) |
-37 + 3.1 |
-33.9 |
| 57) |
-0.009 * -16 |
0.144 |
| 58) |
0.07 / -0.05 |
-1.4 |
| 59) |
3075 - 595 |
2480 |
| 60) |
0.488 / 0.02 |
24.4 |
| 61) |
0.75 + -0.3 |
0.45 |
| 62) |
-6.31 * -5 |
31.55 |
| 63) |
9.413 - 9 |
0.413 |
| 64) |
64 - -1.99 |
65.99 |
| 65) |
2 * 476 |
952 |
| 66) |
68 + 4 |
72 |
| 67) |
0.06 - 1 |
-0.94 |
| 68) |
3 - 0.179 |
2.821 |
| 69) |
6579 - 1109 |
5470 |
| 70) |
0.035 + 9 |
9.035 |
| 71) |
5 - 636 |
-631 |
| 72) |
-9 * 52 |
-468 |
| 73) |
1 + 0.3 |
1.3 |
| 74) |
0.9 + 2.14 |
3.04 |
| 75) |
0.464 * 2 |
0.928 |
| 76) |
9.9 * 1 |
9.9 |
| 77) |
0.09 - 4 |
-3.91 |
| 78) |
6 + 5 |
11 |
| 79) |
2 * 260 |
520 |
| 80) |
0.09 / -0.9 |
-0.1 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized