
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.004 + 4 |
4.004 |
| 2) |
-72 + 18 |
-54 |
| 3) |
909 - 65 |
844 |
| 4) |
-4901 - -8677 |
3776 |
| 5) |
30 - 4.42 |
25.58 |
| 6) |
-0.6 / 4 |
-0.15 |
| 7) |
2.4 - -5.925 |
8.325 |
| 8) |
-0.018 * -6 |
0.108 |
| 9) |
568 - -3233 |
3801 |
| 10) |
30 * 73 |
2190 |
| 11) |
-90 - 6 |
-96 |
| 12) |
-92 - 32 |
-124 |
| 13) |
82 + 32.4 |
114.4 |
| 14) |
162 - 9 |
153 |
| 15) |
4 + 17 |
21 |
| 16) |
0.808 + 0.29 |
1.098 |
| 17) |
8.5 + 8.07 |
16.57 |
| 18) |
8.33 * 0.5 |
4.165 |
| 19) |
0.01 - -2.107 |
2.117 |
| 20) |
6.3 / 900 |
0.007 |
| 21) |
-8 + -0.1 |
-8.1 |
| 22) |
-9.1 * 0.1 |
-0.91 |
| 23) |
-12 + -55 |
-67 |
| 24) |
1.06 - 0.03 |
1.03 |
| 25) |
0.2 + 26 |
26.2 |
| 26) |
-0.8 + 0.3 |
-0.5 |
| 27) |
7.9 - 0.005 |
7.895 |
| 28) |
7.5 * 6 |
45 |
| 29) |
93 + 0.05 |
93.05 |
| 30) |
82 * -0.3 |
-24.6 |
| 31) |
-2.8 - 5 |
-7.8 |
| 32) |
66 / 8 |
8.25 |
| 33) |
6 - -0.6 |
6.6 |
| 34) |
44 - 0.04 |
43.96 |
| 35) |
8 + -6.115 |
1.885 |
| 36) |
73 / 0.4 |
182.5 |
| 37) |
4648 - 3562 |
1086 |
| 38) |
932 + 49 |
981 |
| 39) |
0.657 * 9 |
5.913 |
| 40) |
470 + -481 |
-11 |
| 41) |
8 / -16 |
-0.5 |
| 42) |
-0.57 + 6 |
5.43 |
| 43) |
4 * 1 |
4 |
| 44) |
45.6 + 35 |
80.6 |
| 45) |
-39 - 33 |
-72 |
| 46) |
-484 - 110 |
-594 |
| 47) |
47 + -915 |
-868 |
| 48) |
8 - -0.4 |
8.4 |
| 49) |
3.01 + 0.41 |
3.42 |
| 50) |
-9.8 * 7 |
-68.6 |
| 51) |
2 + -27.4 |
-25.4 |
| 52) |
4 * 0.9 |
3.6 |
| 53) |
5 - -8226 |
8231 |
| 54) |
1.38 + 1 |
2.38 |
| 55) |
8520 + -1440 |
7080 |
| 56) |
-94 + 714.2 |
620.2 |
| 57) |
-0.1 * -0.06 |
0.006 |
| 58) |
9 - 457 |
-448 |
| 59) |
-70 + 79 |
9 |
| 60) |
0.4 * 6 |
2.4 |
| 61) |
1 * 93 |
93 |
| 62) |
6 + -607 |
-601 |
| 63) |
-30 - 549 |
-579 |
| 64) |
-6 + 20 |
14 |
| 65) |
1.26 - -0.3 |
1.56 |
| 66) |
0.543 + 0.008 |
0.551 |
| 67) |
0.04 - 0.09 |
-0.05 |
| 68) |
-404 + 1 |
-403 |
| 69) |
59 - -0.9 |
59.9 |
| 70) |
-30 / 2 |
-15 |
| 71) |
-9 - -0.5 |
-8.5 |
| 72) |
99 * -0.3 |
-29.7 |
| 73) |
0.08 - 9.1 |
-9.02 |
| 74) |
8.52 + -2.7 |
5.82 |
| 75) |
0.042 * 8 |
0.336 |
| 76) |
25 + 36 |
61 |
| 77) |
0.006 / 0.075 |
0.08 |
| 78) |
640 * 8.95 |
5728 |
| 79) |
1 - -5.889 |
6.889 |
| 80) |
-8.3 + 0.06 |
-8.24 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized