
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.91 - 0.77 |
0.14 |
| 2) |
477 - 77.3 |
399.7 |
| 3) |
7 + 76.3 |
83.3 |
| 4) |
9.231 - 0.67 |
8.561 |
| 5) |
471 * 0.5 |
235.5 |
| 6) |
78.21 + -2 |
76.21 |
| 7) |
5612 - 8 |
5604 |
| 8) |
1 * 606 |
606 |
| 9) |
6.206 + 0.5 |
6.706 |
| 10) |
-1428 * -6.5 |
9282 |
| 11) |
0.16 + 93.4 |
93.56 |
| 12) |
6.13 - 0.006 |
6.124 |
| 13) |
25 - -4118 |
4143 |
| 14) |
6 / -10 |
-0.6 |
| 15) |
-1 * -446 |
446 |
| 16) |
-56 / 20 |
-2.8 |
| 17) |
0.005 + 0.129 |
0.134 |
| 18) |
6431 + 426 |
6857 |
| 19) |
0.01 - 0.7 |
-0.69 |
| 20) |
60 + -34 |
26 |
| 21) |
12 * 4.56 |
54.72 |
| 22) |
69 - -9160 |
9229 |
| 23) |
3 + -4.8 |
-1.8 |
| 24) |
3.8 / -0.8 |
-4.75 |
| 25) |
9 + 0.063 |
9.063 |
| 26) |
-6 * 0.08 |
-0.48 |
| 27) |
9 - -6 |
15 |
| 28) |
-25.3 + 54 |
28.7 |
| 29) |
-45.95 + 70 |
24.05 |
| 30) |
48 + -345 |
-297 |
| 31) |
87 + 9 |
96 |
| 32) |
0.3 + 9.48 |
9.78 |
| 33) |
7.2 * 4 |
28.8 |
| 34) |
-995 - -7 |
-988 |
| 35) |
4 * -55 |
-220 |
| 36) |
601.7 + 0.4 |
602.1 |
| 37) |
3.2 + 2 |
5.2 |
| 38) |
6.9 / 3 |
2.3 |
| 39) |
6.4 + -27.4 |
-21 |
| 40) |
41 * 107 |
4387 |
| 41) |
-36 + 3.7 |
-32.3 |
| 42) |
479 + 8 |
487 |
| 43) |
-0.1 * 499 |
-49.9 |
| 44) |
-68 + 0.6 |
-67.4 |
| 45) |
66 - 60 |
6 |
| 46) |
0.03 * -7 |
-0.21 |
| 47) |
-0.87 - -7 |
6.13 |
| 48) |
65.6 + 139 |
204.6 |
| 49) |
-9 - 15 |
-24 |
| 50) |
3 - 95 |
-92 |
| 51) |
3 - -220 |
223 |
| 52) |
875 + 899 |
1774 |
| 53) |
-2 + 307.9 |
305.9 |
| 54) |
795.3 - 30.9 |
764.4 |
| 55) |
-36 / -24 |
1.5 |
| 56) |
-70 + -0.6 |
-70.6 |
| 57) |
68 + -0.4 |
67.6 |
| 58) |
7936 - 632 |
7304 |
| 59) |
98 / 0.05 |
1960 |
| 60) |
2899 - -9 |
2908 |
| 61) |
6531 * 0.1 |
653.1 |
| 62) |
-902 + -2 |
-904 |
| 63) |
1 + 5682 |
5683 |
| 64) |
0.9 - 2.5 |
-1.6 |
| 65) |
-98 / 2 |
-49 |
| 66) |
0.43 - -0.5 |
0.93 |
| 67) |
484 + 396 |
880 |
| 68) |
-6.7 - 0.08 |
-6.78 |
| 69) |
7609 - 30 |
7579 |
| 70) |
4 + 3078 |
3082 |
| 71) |
5 * 904.6 |
4523 |
| 72) |
68 + 74.1 |
142.1 |
| 73) |
92 * 0.003 |
0.276 |
| 74) |
-26 - -3 |
-23 |
| 75) |
0.132 / -0.024 |
-5.5 |
| 76) |
58 - 222 |
-164 |
| 77) |
0.4 * 288 |
115.2 |
| 78) |
504 / 84 |
6 |
| 79) |
44.1 + 7.6 |
51.7 |
| 80) |
819 - -0.6 |
819.6 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized