
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.7 - -0.887 |
0.187 |
| 2) |
-558 - 32 |
-590 |
| 3) |
8.8 * 5 |
44 |
| 4) |
5 / 0.4 |
12.5 |
| 5) |
8 + 56.4 |
64.4 |
| 6) |
-5752 - -6473 |
721 |
| 7) |
-593 - 7 |
-600 |
| 8) |
1 - 756 |
-755 |
| 9) |
85.1 - 1 |
84.1 |
| 10) |
4 * 2 |
8 |
| 11) |
292 - -30 |
322 |
| 12) |
4645 - 4 |
4641 |
| 13) |
5.8 * 0.8 |
4.64 |
| 14) |
8 + 0.68 |
8.68 |
| 15) |
-2.45 - 0.91 |
-3.36 |
| 16) |
634 / 5 |
126.8 |
| 17) |
78.2 + 0.5 |
78.7 |
| 18) |
534 * 0.2 |
106.8 |
| 19) |
4 - -93 |
97 |
| 20) |
3602 - -3931 |
7533 |
| 21) |
8.08 * 9 |
72.72 |
| 22) |
4293 + 896 |
5189 |
| 23) |
83.9 * 0.3 |
25.17 |
| 24) |
0.8 + -6.65 |
-5.85 |
| 25) |
9 * -43 |
-387 |
| 26) |
0.91 * 8 |
7.28 |
| 27) |
761 + 66 |
827 |
| 28) |
-8 + 0.2 |
-7.8 |
| 29) |
-0.35 + 9.6 |
9.25 |
| 30) |
106 - -87 |
193 |
| 31) |
-1.23 + -2.5 |
-3.73 |
| 32) |
41 * 0.09 |
3.69 |
| 33) |
7 + -44 |
-37 |
| 34) |
12 - -437 |
449 |
| 35) |
-9 + 527 |
518 |
| 36) |
-1.792 - -6 |
4.208 |
| 37) |
7 - -60 |
67 |
| 38) |
0.024 + 6 |
6.024 |
| 39) |
29 - 9 |
20 |
| 40) |
625 - 687 |
-62 |
| 41) |
-57 - 11 |
-68 |
| 42) |
709 * 7 |
4963 |
| 43) |
-5 * 7 |
-35 |
| 44) |
0.08 - -0.05 |
0.13 |
| 45) |
-3.7 + 1.8 |
-1.9 |
| 46) |
75.02 + -0.1 |
74.92 |
| 47) |
688 - 8 |
680 |
| 48) |
88.5 + -4.32 |
84.18 |
| 49) |
13 + 7257 |
7270 |
| 50) |
-6 - 53 |
-59 |
| 51) |
6.9 * -2 |
-13.8 |
| 52) |
-31.1 * -21 |
653.1 |
| 53) |
0.08 - -3.586 |
3.666 |
| 54) |
-9 + 132.9 |
123.9 |
| 55) |
4 - -56 |
60 |
| 56) |
9718 + -1889 |
7829 |
| 57) |
0.049 + 0.5 |
0.549 |
| 58) |
5.54 - 0.5 |
5.04 |
| 59) |
746 - 5 |
741 |
| 60) |
10 * -0.005 |
-0.05 |
| 61) |
1.571 + 1.7 |
3.271 |
| 62) |
2 - -7 |
9 |
| 63) |
6 - 0.001 |
5.999 |
| 64) |
90 * 0.056 |
5.04 |
| 65) |
-8 + 64 |
56 |
| 66) |
285 + -2 |
283 |
| 67) |
842 + 13.6 |
855.6 |
| 68) |
2079 - -880 |
2959 |
| 69) |
8.38 + 0.4 |
8.78 |
| 70) |
47 - 0.54 |
46.46 |
| 71) |
0.005 + 1.728 |
1.733 |
| 72) |
4 + -0.9 |
3.1 |
| 73) |
-5 + 53 |
48 |
| 74) |
-7 - -0.6 |
-6.4 |
| 75) |
920 - 51 |
869 |
| 76) |
0.7 * 74 |
51.8 |
| 77) |
41 / 4 |
10.25 |
| 78) |
4 - 388 |
-384 |
| 79) |
0.968 - -2.87 |
3.838 |
| 80) |
7587 + 1 |
7588 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized