
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 - 3 |
1 |
| 2) |
0.6 + -7 |
-6.4 |
| 3) |
-0.8 - -211 |
210.2 |
| 4) |
71.8 / 1 |
71.8 |
| 5) |
0.7 / -0.04 |
-17.5 |
| 6) |
11 - 9 |
2 |
| 7) |
403.7 + -5.5 |
398.2 |
| 8) |
0.75 - 0.003 |
0.747 |
| 9) |
-428 + -85 |
-513 |
| 10) |
0.5 * 0.03 |
0.015 |
| 11) |
30 * 0.9 |
27 |
| 12) |
2.1 + 1.7 |
3.8 |
| 13) |
-0.001 + 7 |
6.999 |
| 14) |
-5 * 2 |
-10 |
| 15) |
9.02 + 0.03 |
9.05 |
| 16) |
0.51 - -0.002 |
0.512 |
| 17) |
8 + 29.9 |
37.9 |
| 18) |
-5 * -0.007 |
0.035 |
| 19) |
36 * 0.126 |
4.536 |
| 20) |
0.007 + 0.05 |
0.057 |
| 21) |
0.008 * 0.5 |
0.004 |
| 22) |
0.163 - 6.853 |
-6.69 |
| 23) |
55.06 + 3 |
58.06 |
| 24) |
104.9 + 1.4 |
106.3 |
| 25) |
5.2 * 865 |
4498 |
| 26) |
541 - -14.1 |
555.1 |
| 27) |
54 * -16 |
-864 |
| 28) |
0.7 - 10 |
-9.3 |
| 29) |
6.64 + 4 |
10.64 |
| 30) |
-8 + 0.5 |
-7.5 |
| 31) |
-7 + 1 |
-6 |
| 32) |
-1 - -0.71 |
-0.29 |
| 33) |
0.078 + 0.4 |
0.478 |
| 34) |
7 - 5.48 |
1.52 |
| 35) |
6 / -1 |
-6 |
| 36) |
-962 - -941 |
-21 |
| 37) |
-8 * -0.891 |
7.128 |
| 38) |
21 - 920 |
-899 |
| 39) |
3 + -3 |
0 |
| 40) |
0.88 - 0.003 |
0.877 |
| 41) |
9 / 6 |
1.5 |
| 42) |
0.04 * 7 |
0.28 |
| 43) |
-308 + 224 |
-84 |
| 44) |
1 - 0.6 |
0.4 |
| 45) |
0.003 * 987 |
2.961 |
| 46) |
0.2 - 75 |
-74.8 |
| 47) |
0.07 - 0.032 |
0.038 |
| 48) |
0.53 - 5.31 |
-4.78 |
| 49) |
-4 - 9 |
-13 |
| 50) |
73.9 + -0.1 |
73.8 |
| 51) |
0.093 - -8 |
8.093 |
| 52) |
1 + 8 |
9 |
| 53) |
-80 + 62 |
-18 |
| 54) |
15 * -0.3 |
-4.5 |
| 55) |
55 - 73 |
-18 |
| 56) |
-4.57 + -3.4 |
-7.97 |
| 57) |
222 / 1 |
222 |
| 58) |
267 * 0.9 |
240.3 |
| 59) |
0.5 - 21 |
-20.5 |
| 60) |
0.05 - 0.76 |
-0.71 |
| 61) |
160 - -380.5 |
540.5 |
| 62) |
-7 * 0.4 |
-2.8 |
| 63) |
0.8 + 0.059 |
0.859 |
| 64) |
-4 - 0.01 |
-4.01 |
| 65) |
997 / 0.2 |
4985 |
| 66) |
9.13 - 3 |
6.13 |
| 67) |
44 * -0.07 |
-3.08 |
| 68) |
-0.02 + 0.8 |
0.78 |
| 69) |
-6 + 422 |
416 |
| 70) |
0.01 + 0.2 |
0.21 |
| 71) |
0.399 * 23 |
9.177 |
| 72) |
9179 - 7527 |
1652 |
| 73) |
-712 - -7336 |
6624 |
| 74) |
4 + 209.6 |
213.6 |
| 75) |
-8 + 10.2 |
2.2 |
| 76) |
2563 + 1638 |
4201 |
| 77) |
0.9 / -0.004 |
-225 |
| 78) |
0.006 * 7 |
0.042 |
| 79) |
-71.1 - 6 |
-77.1 |
| 80) |
8 + -0.8 |
7.2 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized