
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.6 - 0.3 |
0.3 |
| 2) |
0.008 / 0.08 |
0.1 |
| 3) |
5.47 * 0.4 |
2.188 |
| 4) |
9 + 4174 |
4183 |
| 5) |
-0.29 / 0.001 |
-290 |
| 6) |
-485 * -6 |
2910 |
| 7) |
5.911 + 0.001 |
5.912 |
| 8) |
-0.1 - 92.9 |
-93 |
| 9) |
35 + 461 |
496 |
| 10) |
10 - 0.055 |
9.945 |
| 11) |
-21 + 44 |
23 |
| 12) |
2 - -43.83 |
45.83 |
| 13) |
318 - 0.5 |
317.5 |
| 14) |
0.4 / 4 |
0.1 |
| 15) |
6 + -0.03 |
5.97 |
| 16) |
0.2 - 96 |
-95.8 |
| 17) |
-3 * -89 |
267 |
| 18) |
8108 + 751 |
8859 |
| 19) |
-30 * -170 |
5100 |
| 20) |
5 - 3 |
2 |
| 21) |
50 - -1344 |
1394 |
| 22) |
0.7 - -7.29 |
7.99 |
| 23) |
2.9 * 0.53 |
1.537 |
| 24) |
58 * 9 |
522 |
| 25) |
0.002 + 6.5 |
6.502 |
| 26) |
6 + 8821 |
8827 |
| 27) |
0.9 + 303 |
303.9 |
| 28) |
16 - -549 |
565 |
| 29) |
88 + 50 |
138 |
| 30) |
50 * 7.6 |
380 |
| 31) |
-0.863 * -5 |
4.315 |
| 32) |
-6.6 / 4 |
-1.65 |
| 33) |
-8 - 34 |
-42 |
| 34) |
-0.083 + 0.4 |
0.317 |
| 35) |
-0.03 - -6 |
5.97 |
| 36) |
65 * -8 |
-520 |
| 37) |
-0.121 / 0.005 |
-24.2 |
| 38) |
3 + 52 |
55 |
| 39) |
652 - 9 |
643 |
| 40) |
0.2 + 0.06 |
0.26 |
| 41) |
803.5 + 181.9 |
985.4 |
| 42) |
0.016 - -0.403 |
0.419 |
| 43) |
-14 - 19.4 |
-33.4 |
| 44) |
0.19 + 42 |
42.19 |
| 45) |
12 + 45 |
57 |
| 46) |
5 * 73 |
365 |
| 47) |
175 + -0.5 |
174.5 |
| 48) |
3 * 0.377 |
1.131 |
| 49) |
2 - -0.376 |
2.376 |
| 50) |
251 - -31.6 |
282.6 |
| 51) |
3 - 5 |
-2 |
| 52) |
40.35 + 6.4 |
46.75 |
| 53) |
9348 + 18 |
9366 |
| 54) |
9 * 0.39 |
3.51 |
| 55) |
2.5 - 13 |
-10.5 |
| 56) |
6930 + 2 |
6932 |
| 57) |
0.09 + 7.296 |
7.386 |
| 58) |
240 - 29 |
211 |
| 59) |
31.5 + 9.92 |
41.42 |
| 60) |
0.7 * 8 |
5.6 |
| 61) |
1089 + -427 |
662 |
| 62) |
226 - 886 |
-660 |
| 63) |
4 - 0.5 |
3.5 |
| 64) |
5 + 6910 |
6915 |
| 65) |
44.3 - -2 |
46.3 |
| 66) |
-0.402 + 1.47 |
1.068 |
| 67) |
-3.331 - -8.1 |
4.769 |
| 68) |
8 + 2.35 |
10.35 |
| 69) |
0.57 - -27 |
27.57 |
| 70) |
-0.02 * -4 |
0.08 |
| 71) |
83 - 0.71 |
82.29 |
| 72) |
-58.2 - 5.2 |
-63.4 |
| 73) |
14.5 + 89.4 |
103.9 |
| 74) |
-955 - 9 |
-964 |
| 75) |
6964 + 1 |
6965 |
| 76) |
-0.23 * 4 |
-0.92 |
| 77) |
28 / 4 |
7 |
| 78) |
-0.032 * -3 |
0.096 |
| 79) |
0.4 - 36 |
-35.6 |
| 80) |
-79 + 4.9 |
-74.1 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized