
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) |
4 * -0.28 |
-1.12 |
| 2) |
-0.34 * 0.5 |
-0.17 |
| 3) |
78 - -0.68 |
78.68 |
| 4) |
-816 + 8 |
-808 |
| 5) |
6 - 9 |
-3 |
| 6) |
0.94 + -0.826 |
0.114 |
| 7) |
3.78 + 3.13 |
6.91 |
| 8) |
3 + 5.7 |
8.7 |
| 9) |
0.8 - -0.05 |
0.85 |
| 10) |
12.8 + -7 |
5.8 |
| 11) |
4.25 - -30 |
34.25 |
| 12) |
0.564 + 0.004 |
0.568 |
| 13) |
-6 / -40 |
0.15 |
| 14) |
45 - -8.51 |
53.51 |
| 15) |
207 - -89 |
296 |
| 16) |
63.1 - 6.22 |
56.88 |
| 17) |
0.05 - -59 |
59.05 |
| 18) |
-415 - 2 |
-417 |
| 19) |
150 + -2 |
148 |
| 20) |
134 - -49 |
183 |
| 21) |
-1.8 - 4 |
-5.8 |
| 22) |
80 - 12 |
68 |
| 23) |
-3.59 - -65 |
61.41 |
| 24) |
3 * 2804 |
8412 |
| 25) |
0.534 + 4.2 |
4.734 |
| 26) |
-1 / -2 |
0.5 |
| 27) |
-809 + 9 |
-800 |
| 28) |
9025 - -6 |
9031 |
| 29) |
0.954 + 0.64 |
1.594 |
| 30) |
5 - 516 |
-511 |
| 31) |
1 * -445 |
-445 |
| 32) |
26 * 0.8 |
20.8 |
| 33) |
-37 * 2 |
-74 |
| 34) |
0.9 - 5.8 |
-4.9 |
| 35) |
-6 - 519 |
-525 |
| 36) |
-4.2 + 603 |
598.8 |
| 37) |
-545 * -0.3 |
163.5 |
| 38) |
-1.2 - 91.9 |
-93.1 |
| 39) |
0.3 * 5 |
1.5 |
| 40) |
243 + -2 |
241 |
| 41) |
3 - 0.03 |
2.97 |
| 42) |
8 / 3.2 |
2.5 |
| 43) |
2 + -0.049 |
1.951 |
| 44) |
-0.6 + -0.2 |
-0.8 |
| 45) |
73 - -88 |
161 |
| 46) |
6305 - 401 |
5904 |
| 47) |
48 + 84.7 |
132.7 |
| 48) |
125 - 433 |
-308 |
| 49) |
7 * 6 |
42 |
| 50) |
-26 + 8 |
-18 |
| 51) |
-2 - 64 |
-66 |
| 52) |
57 + 32 |
89 |
| 53) |
829.6 - 6.3 |
823.3 |
| 54) |
0.007 + 0.06 |
0.067 |
| 55) |
0.3 * 1 |
0.3 |
| 56) |
489 + -1 |
488 |
| 57) |
351 * 4 |
1404 |
| 58) |
5679 + 329 |
6008 |
| 59) |
6 - -43 |
49 |
| 60) |
-0.005 + 0.7 |
0.695 |
| 61) |
37.2 - 46.7 |
-9.5 |
| 62) |
-3.46 - 2 |
-5.46 |
| 63) |
59 + 82 |
141 |
| 64) |
9 * 721 |
6489 |
| 65) |
-6 - 370 |
-376 |
| 66) |
9.06 * 0.4 |
3.624 |
| 67) |
5 - 306 |
-301 |
| 68) |
71.76 + -0.27 |
71.49 |
| 69) |
4.2 + 0.03 |
4.23 |
| 70) |
-0.106 - -8 |
7.894 |
| 71) |
4 - -892 |
896 |
| 72) |
90 / 0.8 |
112.5 |
| 73) |
118 - 43 |
75 |
| 74) |
0.08 - 5 |
-4.92 |
| 75) |
39 + -212 |
-173 |
| 76) |
0.2 - -762 |
762.2 |
| 77) |
0.005 / -0.001 |
-5 |
| 78) |
282 + -37 |
245 |
| 79) |
0.32 * 8 |
2.56 |
| 80) |
3.8 * 60 |
228 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized