
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.992 + 7.3 |
6.308 |
| 2) |
5 + 0.043 |
5.043 |
| 3) |
83.2 + 1 |
84.2 |
| 4) |
-23 * 0.1 |
-2.3 |
| 5) |
286 + 4 |
290 |
| 6) |
-2 - 8 |
-10 |
| 7) |
-0.6 * -758 |
454.8 |
| 8) |
-415 + -1 |
-416 |
| 9) |
565 - 6 |
559 |
| 10) |
270 + -35.7 |
234.3 |
| 11) |
-8 - -852.6 |
844.6 |
| 12) |
-233 + -78 |
-311 |
| 13) |
-448 - 155 |
-603 |
| 14) |
-4.74 - -4 |
-0.74 |
| 15) |
-392 - 55 |
-447 |
| 16) |
-98.22 / -3 |
32.74 |
| 17) |
-25 + -0.3 |
-25.3 |
| 18) |
0.088 + -0.01 |
0.078 |
| 19) |
509 + -408.1 |
100.9 |
| 20) |
-3832 - -6323 |
2491 |
| 21) |
-5 * -84 |
420 |
| 22) |
355 - -0.9 |
355.9 |
| 23) |
3 * -2.1 |
-6.3 |
| 24) |
0.2 - -0.07 |
0.27 |
| 25) |
98 - 0.66 |
97.34 |
| 26) |
0.337 + -0.2 |
0.137 |
| 27) |
-6.2 - -61 |
54.8 |
| 28) |
12 * 2 |
24 |
| 29) |
0.077 + 4 |
4.077 |
| 30) |
4 * -0.8 |
-3.2 |
| 31) |
419 + 27 |
446 |
| 32) |
645 / -5 |
-129 |
| 33) |
1 + -39 |
-38 |
| 34) |
3219 - 58 |
3161 |
| 35) |
-8 - -5 |
-3 |
| 36) |
0.865 + 2 |
2.865 |
| 37) |
7 * 258 |
1806 |
| 38) |
0.89 - -8 |
8.89 |
| 39) |
-3 - -47 |
44 |
| 40) |
8 + 0.1 |
8.1 |
| 41) |
8200 + -470 |
7730 |
| 42) |
-758 / -2 |
379 |
| 43) |
-0.5 + 0.6 |
0.1 |
| 44) |
3 * 8.86 |
26.58 |
| 45) |
1.1 - -0.052 |
1.152 |
| 46) |
875 + 225 |
1100 |
| 47) |
-1 * -779 |
779 |
| 48) |
4 / -0.05 |
-80 |
| 49) |
92.89 / 0.7 |
132.7 |
| 50) |
6706 + -78 |
6628 |
| 51) |
-0.007 + 4.1 |
4.093 |
| 52) |
0.958 / -0.002 |
-479 |
| 53) |
6 + 0.8 |
6.8 |
| 54) |
-1.5 * -21 |
31.5 |
| 55) |
-0.9 + 8 |
7.1 |
| 56) |
609 - 12 |
597 |
| 57) |
-341 - 638 |
-979 |
| 58) |
-124 * 6 |
-744 |
| 59) |
3 - 0.006 |
2.994 |
| 60) |
4 + 940 |
944 |
| 61) |
4.56 * 5 |
22.8 |
| 62) |
8.51 + 0.004 |
8.514 |
| 63) |
4 + 90 |
94 |
| 64) |
6.08 / 0.8 |
7.6 |
| 65) |
7 * -0.42 |
-2.94 |
| 66) |
-0.01 + 65 |
64.99 |
| 67) |
0.07 / -0.02 |
-3.5 |
| 68) |
8 + 1.3 |
9.3 |
| 69) |
0.008 * 5 |
0.04 |
| 70) |
4 + -89.5 |
-85.5 |
| 71) |
38 - 82.8 |
-44.8 |
| 72) |
0.1 + 0.48 |
0.58 |
| 73) |
-7.82 - -8.791 |
0.971 |
| 74) |
49 * 25 |
1225 |
| 75) |
0.99 + 3 |
3.99 |
| 76) |
7 - 5 |
2 |
| 77) |
4.2 + 6 |
10.2 |
| 78) |
-0.2 - -95 |
94.8 |
| 79) |
1 - 921 |
-920 |
| 80) |
0.3 / 0.02 |
15 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized