
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) |
39 * 43 |
1677 |
| 2) |
2950 + 41 |
2991 |
| 3) |
20 + -4.9 |
15.1 |
| 4) |
-48.8 + -6 |
-54.8 |
| 5) |
88 * 65 |
5720 |
| 6) |
0.09 + -0.081 |
0.009 |
| 7) |
3 / -0.3 |
-10 |
| 8) |
5 + 759 |
764 |
| 9) |
0.751 - -0.4 |
1.151 |
| 10) |
4 * 5.37 |
21.48 |
| 11) |
-7 / 2 |
-3.5 |
| 12) |
0.006 + 3 |
3.006 |
| 13) |
3.86 - 2 |
1.86 |
| 14) |
938.6 - 4 |
934.6 |
| 15) |
19 * 0.84 |
15.96 |
| 16) |
9.7 - 0.078 |
9.622 |
| 17) |
94.2 * 4 |
376.8 |
| 18) |
-0.21 + 4.14 |
3.93 |
| 19) |
0.787 + 5.8 |
6.587 |
| 20) |
-43 - 95 |
-138 |
| 21) |
7 * 0.03 |
0.21 |
| 22) |
-23 - -152 |
129 |
| 23) |
7 + 0.076 |
7.076 |
| 24) |
2 / 0.8 |
2.5 |
| 25) |
265 + -0.6 |
264.4 |
| 26) |
-9 + -832 |
-841 |
| 27) |
1 + 3 |
4 |
| 28) |
73 + 7 |
80 |
| 29) |
4 + -7.85 |
-3.85 |
| 30) |
56.8 * 2 |
113.6 |
| 31) |
8 - 186 |
-178 |
| 32) |
6512 - -5 |
6517 |
| 33) |
6746 + 2746 |
9492 |
| 34) |
6 - -0.911 |
6.911 |
| 35) |
6.951 + 0.03 |
6.981 |
| 36) |
2.9 - 5 |
-2.1 |
| 37) |
0.6 * 9 |
5.4 |
| 38) |
151 - 1 |
150 |
| 39) |
19 + 1.4 |
20.4 |
| 40) |
-0.607 + 5 |
4.393 |
| 41) |
0.039 / 3 |
0.013 |
| 42) |
90 - 55 |
35 |
| 43) |
8.77 - -28.82 |
37.59 |
| 44) |
0.7 * -89 |
-62.3 |
| 45) |
-20 + 18 |
-2 |
| 46) |
-6 * 7.9 |
-47.4 |
| 47) |
77 + 21 |
98 |
| 48) |
97.01 - 0.6 |
96.41 |
| 49) |
0.001 + 8.23 |
8.231 |
| 50) |
4 - 382 |
-378 |
| 51) |
2.65 - -0.3 |
2.95 |
| 52) |
-75 - 442 |
-517 |
| 53) |
-0.9 + -9 |
-9.9 |
| 54) |
0.85 * -1 |
-0.85 |
| 55) |
8 + 0.064 |
8.064 |
| 56) |
156 * -4 |
-624 |
| 57) |
-5.5 * -49 |
269.5 |
| 58) |
-34 / 1 |
-34 |
| 59) |
1720 / 2 |
860 |
| 60) |
0.4 - -0.002 |
0.402 |
| 61) |
-3 * 5.7 |
-17.1 |
| 62) |
-5 / 125 |
-0.04 |
| 63) |
3.18 * 2 |
6.36 |
| 64) |
-51.5 + 2 |
-49.5 |
| 65) |
1 - 87.9 |
-86.9 |
| 66) |
0.099 * 5 |
0.495 |
| 67) |
-8 * 5 |
-40 |
| 68) |
0.5 * 415 |
207.5 |
| 69) |
158 + 64 |
222 |
| 70) |
0.004 - -8 |
8.004 |
| 71) |
6 - 841 |
-835 |
| 72) |
3 - 1 |
2 |
| 73) |
0.001 - -0.04 |
0.041 |
| 74) |
0.5 * 25 |
12.5 |
| 75) |
29 - 887 |
-858 |
| 76) |
52 / 5.2 |
10 |
| 77) |
-0.03 - -4 |
3.97 |
| 78) |
151.3 - -10 |
161.3 |
| 79) |
1.387 + 5 |
6.387 |
| 80) |
216 * 4 |
864 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized