
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) |
760 + 0.1 |
760.1 |
| 2) |
0.002 * 600 |
1.2 |
| 3) |
-18 + 3 |
-15 |
| 4) |
501 - 67.9 |
433.1 |
| 5) |
0.57 * 30 |
17.1 |
| 6) |
-51 + -415 |
-466 |
| 7) |
1 * 24 |
24 |
| 8) |
0.4 / 0.8 |
0.5 |
| 9) |
9.2 + 0.1 |
9.3 |
| 10) |
111 + 2.1 |
113.1 |
| 11) |
0.9 + 29 |
29.9 |
| 12) |
6 * 36 |
216 |
| 13) |
46 + 2 |
48 |
| 14) |
-9.4 - -92.8 |
83.4 |
| 15) |
7 + -51 |
-44 |
| 16) |
5.2 * -7 |
-36.4 |
| 17) |
-20 + 4089 |
4069 |
| 18) |
2 * 11.23 |
22.46 |
| 19) |
30 * 8 |
240 |
| 20) |
0.1 / 4 |
0.025 |
| 21) |
261 + 108.9 |
369.9 |
| 22) |
0.8 - -7 |
7.8 |
| 23) |
854 * 0.001 |
0.854 |
| 24) |
5 - 0.765 |
4.235 |
| 25) |
-64 + 782 |
718 |
| 26) |
-6 + 25 |
19 |
| 27) |
3 * 534 |
1602 |
| 28) |
0.52 + 8.11 |
8.63 |
| 29) |
60 + 0.07 |
60.07 |
| 30) |
40.09 - 22.38 |
17.71 |
| 31) |
8 * -3 |
-24 |
| 32) |
146 - -2.5 |
148.5 |
| 33) |
0.5 + -97.8 |
-97.3 |
| 34) |
0.003 + -0.001 |
0.002 |
| 35) |
0.496 * 4 |
1.984 |
| 36) |
54 / 0.1 |
540 |
| 37) |
6 - -7173 |
7179 |
| 38) |
20 + -34 |
-14 |
| 39) |
11 - -0.7 |
11.7 |
| 40) |
-76.9 + 6 |
-70.9 |
| 41) |
0.6 / 0.1 |
6 |
| 42) |
5.94 * 0.6 |
3.564 |
| 43) |
51 - 566 |
-515 |
| 44) |
0.998 * 9 |
8.982 |
| 45) |
-81 - 3.5 |
-84.5 |
| 46) |
9.3 - 6 |
3.3 |
| 47) |
-0.4 * -347 |
138.8 |
| 48) |
-5 + 9338 |
9333 |
| 49) |
0.5 * -0.02 |
-0.01 |
| 50) |
-4 - 6.7 |
-10.7 |
| 51) |
-6.91 - -75.8 |
68.89 |
| 52) |
21 / 0.1 |
210 |
| 53) |
-2 - 0.4 |
-2.4 |
| 54) |
99 + -0.3 |
98.7 |
| 55) |
12.7 + -4.6 |
8.1 |
| 56) |
0.65 - -6.1 |
6.75 |
| 57) |
0.072 + 6.613 |
6.685 |
| 58) |
27.2 * 0.05 |
1.36 |
| 59) |
3 - 9 |
-6 |
| 60) |
8 + 9043 |
9051 |
| 61) |
968.6 + 1 |
969.6 |
| 62) |
-0.525 * 6 |
-3.15 |
| 63) |
-51 + 586 |
535 |
| 64) |
0.09 + 0.001 |
0.091 |
| 65) |
-0.16 / -5 |
0.032 |
| 66) |
-80 * 7.5 |
-600 |
| 67) |
39 + 7 |
46 |
| 68) |
-9 + 98.8 |
89.8 |
| 69) |
2 + 0.7 |
2.7 |
| 70) |
6797 + -1 |
6796 |
| 71) |
-7 - -8.76 |
1.76 |
| 72) |
207 + 8131 |
8338 |
| 73) |
44.8 * 7 |
313.6 |
| 74) |
4 * 0.39 |
1.56 |
| 75) |
1.103 + -0.002 |
1.101 |
| 76) |
-4.6 + 3 |
-1.6 |
| 77) |
-0.7 * -35 |
24.5 |
| 78) |
0.43 - -6.12 |
6.55 |
| 79) |
-0.06 * 96 |
-5.76 |
| 80) |
-6 + 41.82 |
35.82 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized