
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) |
-93 + 1 |
-92 |
| 2) |
-45 - 5 |
-50 |
| 3) |
4 * 11.3 |
45.2 |
| 4) |
599 + -0.5 |
598.5 |
| 5) |
0.009 * 9 |
0.081 |
| 6) |
-0.005 * -96 |
0.48 |
| 7) |
-0.6 * 99 |
-59.4 |
| 8) |
44 - 5.5 |
38.5 |
| 9) |
1 - 0.07 |
0.93 |
| 10) |
-0.6 - -59.8 |
59.2 |
| 11) |
4.739 + 0.008 |
4.747 |
| 12) |
2551 - 5 |
2546 |
| 13) |
97 + 326 |
423 |
| 14) |
108 + 3569 |
3677 |
| 15) |
0.186 - -0.99 |
1.176 |
| 16) |
2552 + -22 |
2530 |
| 17) |
8 - 60.8 |
-52.8 |
| 18) |
960 * 0.009 |
8.64 |
| 19) |
1.419 - 0.001 |
1.418 |
| 20) |
3481 + 21 |
3502 |
| 21) |
-58.6 - 6 |
-64.6 |
| 22) |
-97 - 6 |
-103 |
| 23) |
0.68 / 0.8 |
0.85 |
| 24) |
0.037 - 0.007 |
0.03 |
| 25) |
0.93 + 95 |
95.93 |
| 26) |
-0.09 / -0.05 |
1.8 |
| 27) |
-0.99 + -4.6 |
-5.59 |
| 28) |
0.4 * 479 |
191.6 |
| 29) |
3215 - -8 |
3223 |
| 30) |
-0.045 + 4.9 |
4.855 |
| 31) |
8231 - -6 |
8237 |
| 32) |
0.51 / 2 |
0.255 |
| 33) |
60 + 8.5 |
68.5 |
| 34) |
911 - -0.7 |
911.7 |
| 35) |
0.44 * 0.3 |
0.132 |
| 36) |
-0.03 + 40 |
39.97 |
| 37) |
655.5 / -5.7 |
-115 |
| 38) |
553 - -3.8 |
556.8 |
| 39) |
-1.3 * -198 |
257.4 |
| 40) |
-66 - 70 |
-136 |
| 41) |
2 - 2.6 |
-0.6 |
| 42) |
55.61 + 4 |
59.61 |
| 43) |
-582 * -9 |
5238 |
| 44) |
6 + 254 |
260 |
| 45) |
9 / -0.01 |
-900 |
| 46) |
-3 * 0.79 |
-2.37 |
| 47) |
0.9 + 708 |
708.9 |
| 48) |
8.991 + 0.004 |
8.995 |
| 49) |
1 * 0.03 |
0.03 |
| 50) |
9062 - -8 |
9070 |
| 51) |
4 + -8.2 |
-4.2 |
| 52) |
73 - 78 |
-5 |
| 53) |
92 + 1 |
93 |
| 54) |
-57 + -92 |
-149 |
| 55) |
34 * 0.2 |
6.8 |
| 56) |
38.5 + -1.09 |
37.41 |
| 57) |
4 + -723 |
-719 |
| 58) |
66 - 57.59 |
8.41 |
| 59) |
-8 / 0.064 |
-125 |
| 60) |
8 - 56 |
-48 |
| 61) |
1 * -1.32 |
-1.32 |
| 62) |
1 - 0.08 |
0.92 |
| 63) |
-3.9 + 53 |
49.1 |
| 64) |
0.02 / 2 |
0.01 |
| 65) |
-2 + 526.4 |
524.4 |
| 66) |
-89 * -0.2 |
17.8 |
| 67) |
59.76 / -0.8 |
-74.7 |
| 68) |
33.92 - -4.42 |
38.34 |
| 69) |
9.036 + 0.6 |
9.636 |
| 70) |
6 / 0.003 |
2000 |
| 71) |
-9 * -452 |
4068 |
| 72) |
-5 * 37 |
-185 |
| 73) |
-4 - 6 |
-10 |
| 74) |
-55 - 481 |
-536 |
| 75) |
81.4 + -24.76 |
56.64 |
| 76) |
51 - -0.07 |
51.07 |
| 77) |
6 * 1 |
6 |
| 78) |
1 * 5 |
5 |
| 79) |
0.7 * -63 |
-44.1 |
| 80) |
5.07 - -79.13 |
84.2 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized