
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) |
-21 - -82 |
61 |
| 2) |
9 - 0.49 |
8.51 |
| 3) |
-19 * -0.26 |
4.94 |
| 4) |
9 * 21 |
189 |
| 5) |
0.59 / 1 |
0.59 |
| 6) |
0.004 / 0.05 |
0.08 |
| 7) |
-1.4 + -0.06 |
-1.46 |
| 8) |
846 - 37.8 |
808.2 |
| 9) |
0.05 + 0.003 |
0.053 |
| 10) |
0.1 + -40 |
-39.9 |
| 11) |
-8 * -2.3 |
18.4 |
| 12) |
-0.054 - -0.5 |
0.446 |
| 13) |
0.001 + 0.3 |
0.301 |
| 14) |
-136 - 67 |
-203 |
| 15) |
348 - -27 |
375 |
| 16) |
0.06 * 24 |
1.44 |
| 17) |
0.8 - 3.1 |
-2.3 |
| 18) |
8310 * 1 |
8310 |
| 19) |
0.5 - 4.02 |
-3.52 |
| 20) |
4 + 0.098 |
4.098 |
| 21) |
3 - 5 |
-2 |
| 22) |
0.053 - -0.072 |
0.125 |
| 23) |
-0.7 + 0.821 |
0.121 |
| 24) |
-68.8 - -696 |
627.2 |
| 25) |
2 + -59 |
-57 |
| 26) |
-6 * -750 |
4500 |
| 27) |
9 * 5 |
45 |
| 28) |
3591 + 6 |
3597 |
| 29) |
39.51 + 7 |
46.51 |
| 30) |
0.46 - -0.061 |
0.521 |
| 31) |
1 + 6099 |
6100 |
| 32) |
3 / 5 |
0.6 |
| 33) |
6.75 - -2 |
8.75 |
| 34) |
-9.2 * -97 |
892.4 |
| 35) |
5 + 7866 |
7871 |
| 36) |
81 + 8.6 |
89.6 |
| 37) |
0.002 + 0.09 |
0.092 |
| 38) |
44 / -1.1 |
-40 |
| 39) |
-0.3 - 7 |
-7.3 |
| 40) |
0.04 + 69 |
69.04 |
| 41) |
3 - 8 |
-5 |
| 42) |
36 + -97 |
-61 |
| 43) |
30 - 8 |
22 |
| 44) |
784 + 1 |
785 |
| 45) |
-261 + 7 |
-254 |
| 46) |
-4 * 0.92 |
-3.68 |
| 47) |
0.459 - 0.051 |
0.408 |
| 48) |
0.4 + -0.022 |
0.378 |
| 49) |
-27 * 5 |
-135 |
| 50) |
99 - 60.4 |
38.6 |
| 51) |
3 + 67 |
70 |
| 52) |
0.4 + 0.89 |
1.29 |
| 53) |
-475 * -0.8 |
380 |
| 54) |
1376 / 0.5 |
2752 |
| 55) |
9.4 - 4 |
5.4 |
| 56) |
7 + -3 |
4 |
| 57) |
-0.06 * -7 |
0.42 |
| 58) |
4254 + -846 |
3408 |
| 59) |
0.07 - 3 |
-2.93 |
| 60) |
9 * 41 |
369 |
| 61) |
-12 - 398 |
-410 |
| 62) |
0.8 - 90 |
-89.2 |
| 63) |
4 / -8 |
-0.5 |
| 64) |
22 + 70 |
92 |
| 65) |
649 - 5 |
644 |
| 66) |
-1 + -902 |
-903 |
| 67) |
234 + 0.8 |
234.8 |
| 68) |
-0.02 * 35 |
-0.7 |
| 69) |
0.009 + 9 |
9.009 |
| 70) |
123 * 5 |
615 |
| 71) |
3 - -0.04 |
3.04 |
| 72) |
-7 - 0.04 |
-7.04 |
| 73) |
0.009 + 0.008 |
0.017 |
| 74) |
7 - 408 |
-401 |
| 75) |
6 + 4 |
10 |
| 76) |
2556 - 6 |
2550 |
| 77) |
73 - 74 |
-1 |
| 78) |
0.09 / 0.003 |
30 |
| 79) |
9 + 933 |
942 |
| 80) |
6788 - 880 |
5908 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized