
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) |
-96 * 5 |
-480 |
| 2) |
731 / 5 |
146.2 |
| 3) |
0.6 / -0.001 |
-600 |
| 4) |
9.82 + -0.048 |
9.772 |
| 5) |
53.4 - 0.3 |
53.1 |
| 6) |
4565 + 1 |
4566 |
| 7) |
0.028 - -5.45 |
5.478 |
| 8) |
8 * 857 |
6856 |
| 9) |
4 - 1 |
3 |
| 10) |
-591 + 2 |
-589 |
| 11) |
0.6 - -0.001 |
0.601 |
| 12) |
0.01 + 50 |
50.01 |
| 13) |
-5 * -232 |
1160 |
| 14) |
0.8 * 853 |
682.4 |
| 15) |
5 - 724 |
-719 |
| 16) |
-3.8 / -0.8 |
4.75 |
| 17) |
64.25 - 6 |
58.25 |
| 18) |
6.6 / 25 |
0.264 |
| 19) |
0.05 + 50 |
50.05 |
| 20) |
-2.8 * -0.05 |
0.14 |
| 21) |
0.4 + 5 |
5.4 |
| 22) |
162 / 25 |
6.48 |
| 23) |
6.04 - 9.2 |
-3.16 |
| 24) |
0.04 + 7 |
7.04 |
| 25) |
-0.06 - 0.2 |
-0.26 |
| 26) |
-4.2 + -29 |
-33.2 |
| 27) |
213 - -69 |
282 |
| 28) |
797 - 0.8 |
796.2 |
| 29) |
-0.3 + 60 |
59.7 |
| 30) |
0.3 * 7.8 |
2.34 |
| 31) |
9922 + 8 |
9930 |
| 32) |
5 * 354 |
1770 |
| 33) |
63 + 547 |
610 |
| 34) |
53 - -5792 |
5845 |
| 35) |
-8 + 0.25 |
-7.75 |
| 36) |
-4 - -84 |
80 |
| 37) |
0.53 + 9.9 |
10.43 |
| 38) |
-99 * 9 |
-891 |
| 39) |
0.1 + 394 |
394.1 |
| 40) |
97 - -0.06 |
97.06 |
| 41) |
-7 + 3 |
-4 |
| 42) |
7 - 82.5 |
-75.5 |
| 43) |
-331 - 67 |
-398 |
| 44) |
-874 * -0.08 |
69.92 |
| 45) |
-0.02 - 9.27 |
-9.29 |
| 46) |
177 + 6240 |
6417 |
| 47) |
2 + -7 |
-5 |
| 48) |
81 - 53.9 |
27.1 |
| 49) |
-7 * -28 |
196 |
| 50) |
0.009 + 0.08 |
0.089 |
| 51) |
-2 + -0.6 |
-2.6 |
| 52) |
0.61 - 0.78 |
-0.17 |
| 53) |
52 * 7 |
364 |
| 54) |
-75.5 - -0.8 |
-74.7 |
| 55) |
89 * 35 |
3115 |
| 56) |
81 + 8 |
89 |
| 57) |
-5.3 - -354 |
348.7 |
| 58) |
6.8 * 0.6 |
4.08 |
| 59) |
0.3 - -78 |
78.3 |
| 60) |
70 + 1 |
71 |
| 61) |
1 + 0.74 |
1.74 |
| 62) |
1 / -5 |
-0.2 |
| 63) |
-0.6 + 0.1 |
-0.5 |
| 64) |
-4 + 2 |
-2 |
| 65) |
1 / -4 |
-0.25 |
| 66) |
8.02 + -2 |
6.02 |
| 67) |
-0.89 / 0.5 |
-1.78 |
| 68) |
0.995 + 0.1 |
1.095 |
| 69) |
-6.545 / 3.5 |
-1.87 |
| 70) |
0.5 + 7.84 |
8.34 |
| 71) |
7 - 0.06 |
6.94 |
| 72) |
3172 * 0.001 |
3.172 |
| 73) |
-743 - -7 |
-736 |
| 74) |
-378 - 6 |
-384 |
| 75) |
28 + -5.57 |
22.43 |
| 76) |
23 / 0.8 |
28.75 |
| 77) |
13 / -5 |
-2.6 |
| 78) |
266.6 - 7 |
259.6 |
| 79) |
-0.78 - 0.7 |
-1.48 |
| 80) |
0.1 + 2.93 |
3.03 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized