
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) |
-22 / 0.2 |
-110 |
| 2) |
352 + -3 |
349 |
| 3) |
24.33 / 5 |
4.866 |
| 4) |
6 - 17 |
-11 |
| 5) |
-54 + 35 |
-19 |
| 6) |
-11 + -22 |
-33 |
| 7) |
5 - -0.97 |
5.97 |
| 8) |
0.6 + 2 |
2.6 |
| 9) |
2382 + 12 |
2394 |
| 10) |
-61 * -8 |
488 |
| 11) |
9.29 + -1.998 |
7.292 |
| 12) |
787 + -981 |
-194 |
| 13) |
7 - -0.006 |
7.006 |
| 14) |
2 / 1 |
2 |
| 15) |
28 + 0.02 |
28.02 |
| 16) |
-7.87 - -60 |
52.13 |
| 17) |
0.39 * 710 |
276.9 |
| 18) |
-76 * -77 |
5852 |
| 19) |
0.09 / 6 |
0.015 |
| 20) |
352 - 129 |
223 |
| 21) |
1 * 0.6 |
0.6 |
| 22) |
4.7 * 1.5 |
7.05 |
| 23) |
448 + 4 |
452 |
| 24) |
-211 + 44 |
-167 |
| 25) |
2 - 0.5 |
1.5 |
| 26) |
0.06 + 0.02 |
0.08 |
| 27) |
-69.3 - -9 |
-60.3 |
| 28) |
-9.43 + 1 |
-8.43 |
| 29) |
8374 - 801 |
7573 |
| 30) |
-548 + -46 |
-594 |
| 31) |
-8 + 364 |
356 |
| 32) |
2 - -0.022 |
2.022 |
| 33) |
2830 - -6 |
2836 |
| 34) |
-45 * 0.8 |
-36 |
| 35) |
4 * 7 |
28 |
| 36) |
850 + 338 |
1188 |
| 37) |
86.67 + 9.05 |
95.72 |
| 38) |
3 * 0.57 |
1.71 |
| 39) |
3 + 56 |
59 |
| 40) |
-16 - 64.7 |
-80.7 |
| 41) |
9 * -0.04 |
-0.36 |
| 42) |
6 - 1.5 |
4.5 |
| 43) |
-0.1 * 8920 |
-892 |
| 44) |
2.08 - -69 |
71.08 |
| 45) |
0.2 / 5 |
0.04 |
| 46) |
-57 / 3 |
-19 |
| 47) |
40 * 144 |
5760 |
| 48) |
3 * -4 |
-12 |
| 49) |
35 - 8 |
27 |
| 50) |
22 - 62 |
-40 |
| 51) |
-28.5 * -4 |
114 |
| 52) |
6.28 - -9.9 |
16.18 |
| 53) |
1184 * 7 |
8288 |
| 54) |
42 - 0.7 |
41.3 |
| 55) |
89 + -9.97 |
79.03 |
| 56) |
3.7 + -0.818 |
2.882 |
| 57) |
-0.02 + 77.9 |
77.88 |
| 58) |
-72 + 0.9 |
-71.1 |
| 59) |
326 + 1 |
327 |
| 60) |
0.7 * 33 |
23.1 |
| 61) |
5861 - 4490 |
1371 |
| 62) |
61 * 68 |
4148 |
| 63) |
5.41 - -1.41 |
6.82 |
| 64) |
0.09 * 2 |
0.18 |
| 65) |
8 - -290 |
298 |
| 66) |
1 - 0.003 |
0.997 |
| 67) |
61 * -0.07 |
-4.27 |
| 68) |
-31 + 0.2 |
-30.8 |
| 69) |
5.54 + 7 |
12.54 |
| 70) |
4 + 179 |
183 |
| 71) |
18 + -502 |
-484 |
| 72) |
0.8 * -68 |
-54.4 |
| 73) |
579 * 0.003 |
1.737 |
| 74) |
0.55 + 40 |
40.55 |
| 75) |
57 - 8.13 |
48.87 |
| 76) |
4 + 879 |
883 |
| 77) |
-1762 + 9237 |
7475 |
| 78) |
0.57 * 97 |
55.29 |
| 79) |
0.008 - -0.095 |
0.103 |
| 80) |
78 - -2124 |
2202 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized