
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.002 - -0.02 |
0.018 |
| 2) |
7.4 - 0.7 |
6.7 |
| 3) |
7 * 307 |
2149 |
| 4) |
235 - 6 |
229 |
| 5) |
0.04 + 56.75 |
56.79 |
| 6) |
47 - 33.1 |
13.9 |
| 7) |
-7 + 0.03 |
-6.97 |
| 8) |
580 + 5786 |
6366 |
| 9) |
0.17 - -37 |
37.17 |
| 10) |
9.4 + 271 |
280.4 |
| 11) |
1.75 - 7 |
-5.25 |
| 12) |
-782 + 96 |
-686 |
| 13) |
0.3 + 12 |
12.3 |
| 14) |
-26.3 - -22 |
-4.3 |
| 15) |
3 + 0.07 |
3.07 |
| 16) |
34 * 67 |
2278 |
| 17) |
888 / 8 |
111 |
| 18) |
67 - -0.1 |
67.1 |
| 19) |
8917 + -30 |
8887 |
| 20) |
2304 + 2971 |
5275 |
| 21) |
500 + 0.6 |
500.6 |
| 22) |
0.08 + 55 |
55.08 |
| 23) |
-4 - -9.92 |
5.92 |
| 24) |
2 + 1105 |
1107 |
| 25) |
-34 / 1 |
-34 |
| 26) |
0.36 + -0.038 |
0.322 |
| 27) |
1 - 78 |
-77 |
| 28) |
342.5 + 8.5 |
351 |
| 29) |
1.14 * 1.9 |
2.166 |
| 30) |
-5 - -520.3 |
515.3 |
| 31) |
-3 + 4 |
1 |
| 32) |
1.4 * 89.5 |
125.3 |
| 33) |
738.3 + -8 |
730.3 |
| 34) |
6 * -0.08 |
-0.48 |
| 35) |
9695 - 5469 |
4226 |
| 36) |
3.82 * 0.2 |
0.764 |
| 37) |
93 + 0.01 |
93.01 |
| 38) |
-7.1 - -0.01 |
-7.09 |
| 39) |
0.3 * 2 |
0.6 |
| 40) |
-0.065 * -76 |
4.94 |
| 41) |
68 * 19 |
1292 |
| 42) |
568.4 - 42 |
526.4 |
| 43) |
-0.07 + -6.77 |
-6.84 |
| 44) |
-74 + 1268 |
1194 |
| 45) |
0.07 - 0.7 |
-0.63 |
| 46) |
9.45 * 0.42 |
3.969 |
| 47) |
-925 * -3.6 |
3330 |
| 48) |
12 - -76.1 |
88.1 |
| 49) |
9.5 + -20 |
-10.5 |
| 50) |
67 * -8 |
-536 |
| 51) |
-79 + -701 |
-780 |
| 52) |
-0.03 - -72 |
71.97 |
| 53) |
2 + -7 |
-5 |
| 54) |
62 * 0.5 |
31 |
| 55) |
56.25 + -5 |
51.25 |
| 56) |
0.03 + -2.1 |
-2.07 |
| 57) |
90.4 - -0.5 |
90.9 |
| 58) |
922 - 2 |
920 |
| 59) |
53 - -45.5 |
98.5 |
| 60) |
-0.8 + 99.3 |
98.5 |
| 61) |
7 * 2 |
14 |
| 62) |
0.013 + 6.83 |
6.843 |
| 63) |
-5 * 8 |
-40 |
| 64) |
0.069 / 0.04 |
1.725 |
| 65) |
-0.1 / 2 |
-0.05 |
| 66) |
-7 - -0.09 |
-6.91 |
| 67) |
344 + 7 |
351 |
| 68) |
96 * 66 |
6336 |
| 69) |
5.25 + 1.9 |
7.15 |
| 70) |
88 + 399 |
487 |
| 71) |
8 + -70 |
-62 |
| 72) |
-41 * 7 |
-287 |
| 73) |
0.83 - 7.7 |
-6.87 |
| 74) |
54 / -8 |
-6.75 |
| 75) |
0.07 + 70 |
70.07 |
| 76) |
-829 + 6 |
-823 |
| 77) |
-2 - 7.96 |
-9.96 |
| 78) |
-0.048 + 6 |
5.952 |
| 79) |
-6 - 2.35 |
-8.35 |
| 80) |
-9 + -6 |
-15 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized