
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 + 2952 |
2974 |
| 2) |
2.04 / 0.04 |
51 |
| 3) |
6.53 / 0.5 |
13.06 |
| 4) |
2 * -3 |
-6 |
| 5) |
9.1 * -7 |
-63.7 |
| 6) |
6.3 - 6.4 |
-0.1 |
| 7) |
0.06 * 9.05 |
0.543 |
| 8) |
393 * 1.2 |
471.6 |
| 9) |
0.648 + 7.639 |
8.287 |
| 10) |
860 * 6.2 |
5332 |
| 11) |
0.246 / 0.3 |
0.82 |
| 12) |
-80 - -799 |
719 |
| 13) |
8 + -32 |
-24 |
| 14) |
28 + -50 |
-22 |
| 15) |
-5 * -93 |
465 |
| 16) |
93 * 1.1 |
102.3 |
| 17) |
57 / 0.05 |
1140 |
| 18) |
6.2 / 0.02 |
310 |
| 19) |
-0.7 + -3 |
-3.7 |
| 20) |
9 + -13 |
-4 |
| 21) |
6.1 - 95 |
-88.9 |
| 22) |
-9 + -5 |
-14 |
| 23) |
-76 * -8 |
608 |
| 24) |
-2 - 0.7 |
-2.7 |
| 25) |
0.72 / -2 |
-0.36 |
| 26) |
0.3 + 3.558 |
3.858 |
| 27) |
2 - 597 |
-595 |
| 28) |
6531 / 0.7 |
9330 |
| 29) |
4236 + 76 |
4312 |
| 30) |
26.4 * 5 |
132 |
| 31) |
0.1 - 2 |
-1.9 |
| 32) |
6 * 4 |
24 |
| 33) |
1 - 9.6 |
-8.6 |
| 34) |
648.3 + -0.7 |
647.6 |
| 35) |
92 - -6141 |
6233 |
| 36) |
-136 + -8 |
-144 |
| 37) |
0.25 - -0.003 |
0.253 |
| 38) |
0.004 * 1 |
0.004 |
| 39) |
0.03 - -49 |
49.03 |
| 40) |
4095 / 15 |
273 |
| 41) |
-6.1 + 61.98 |
55.88 |
| 42) |
90 * 8 |
720 |
| 43) |
95 * -0.008 |
-0.76 |
| 44) |
1 + -3 |
-2 |
| 45) |
44 - 3 |
41 |
| 46) |
9 + -0.4 |
8.6 |
| 47) |
42 - 61.8 |
-19.8 |
| 48) |
-0.01 * 144 |
-1.44 |
| 49) |
5 + -0.858 |
4.142 |
| 50) |
69 / -92 |
-0.75 |
| 51) |
78 - 73 |
5 |
| 52) |
-1475 + 1247 |
-228 |
| 53) |
4.6 + 7.82 |
12.42 |
| 54) |
0.967 - -6 |
6.967 |
| 55) |
2 + 50 |
52 |
| 56) |
-7 * 66 |
-462 |
| 57) |
-51.2 + 833 |
781.8 |
| 58) |
-1.7 + 289 |
287.3 |
| 59) |
27.03 - -41 |
68.03 |
| 60) |
0.09 + -0.37 |
-0.28 |
| 61) |
-167 * -0.6 |
100.2 |
| 62) |
-442 - 18 |
-460 |
| 63) |
0.7 + 413 |
413.7 |
| 64) |
0.745 - -4.46 |
5.205 |
| 65) |
-16 - -178 |
162 |
| 66) |
58.56 + 9.73 |
68.29 |
| 67) |
550 - 1 |
549 |
| 68) |
2 + 97 |
99 |
| 69) |
700 + 29.2 |
729.2 |
| 70) |
5691 + 1 |
5692 |
| 71) |
4 + 7 |
11 |
| 72) |
3.02 + 68 |
71.02 |
| 73) |
0.022 + 5 |
5.022 |
| 74) |
0.2 - -8.36 |
8.56 |
| 75) |
3 / -3 |
-1 |
| 76) |
-2 + 42 |
40 |
| 77) |
-1 * 3 |
-3 |
| 78) |
4.5 * 0.51 |
2.295 |
| 79) |
25 + 5.77 |
30.77 |
| 80) |
-0.17 * 10 |
-1.7 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized