
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) |
26 * 1 |
26 |
| 2) |
0.005 / 1 |
0.005 |
| 3) |
416 - 92 |
324 |
| 4) |
419 - -1 |
420 |
| 5) |
-0.23 - 4 |
-4.23 |
| 6) |
0.006 + 4 |
4.006 |
| 7) |
85 - -0.9 |
85.9 |
| 8) |
-159 + 428 |
269 |
| 9) |
854.7 - -1 |
855.7 |
| 10) |
82.46 + -0.6 |
81.86 |
| 11) |
88 - 0.88 |
87.12 |
| 12) |
108 * 6 |
648 |
| 13) |
8 - 0.4 |
7.6 |
| 14) |
4 - 137 |
-133 |
| 15) |
230 + 7 |
237 |
| 16) |
-82 + 842 |
760 |
| 17) |
-2 + 6922 |
6920 |
| 18) |
71 * 2.2 |
156.2 |
| 19) |
-0.029 + 3.96 |
3.931 |
| 20) |
754 - -70 |
824 |
| 21) |
-1 - 626 |
-627 |
| 22) |
0.8 + 67 |
67.8 |
| 23) |
-0.2 - 40 |
-40.2 |
| 24) |
0.05 * 1930 |
96.5 |
| 25) |
801 - -3578 |
4379 |
| 26) |
22 + 24.6 |
46.6 |
| 27) |
6 + 47 |
53 |
| 28) |
-6 - -15.76 |
9.76 |
| 29) |
6.29 * 0.2 |
1.258 |
| 30) |
-0.6 * -216 |
129.6 |
| 31) |
652.2 + 78 |
730.2 |
| 32) |
37 - 449 |
-412 |
| 33) |
-0.5 * -5 |
2.5 |
| 34) |
82 + 8 |
90 |
| 35) |
7 + 7163 |
7170 |
| 36) |
-0.35 - 6 |
-6.35 |
| 37) |
6.9 + 61 |
67.9 |
| 38) |
75 + 7 |
82 |
| 39) |
23 - 938 |
-915 |
| 40) |
0.6 * 87 |
52.2 |
| 41) |
0.06 - -7.06 |
7.12 |
| 42) |
-195 * -0.009 |
1.755 |
| 43) |
0.1 * 3 |
0.3 |
| 44) |
-0.7 + 5 |
4.3 |
| 45) |
3.6 + -0.653 |
2.947 |
| 46) |
8 * -7 |
-56 |
| 47) |
-8.724 - -9.2 |
0.476 |
| 48) |
0.005 * 697.2 |
3.486 |
| 49) |
71 + 6.16 |
77.16 |
| 50) |
-217 - 455 |
-672 |
| 51) |
2784 + 2540 |
5324 |
| 52) |
545 - 31 |
514 |
| 53) |
-0.003 * -6 |
0.018 |
| 54) |
0.67 + -9 |
-8.33 |
| 55) |
8.41 - 6.654 |
1.756 |
| 56) |
1.3 * 93 |
120.9 |
| 57) |
8.97 - 4 |
4.97 |
| 58) |
-0.7 - -183 |
182.3 |
| 59) |
-10 + 63.7 |
53.7 |
| 60) |
1 * 0.978 |
0.978 |
| 61) |
8.49 + 7 |
15.49 |
| 62) |
67 - 3 |
64 |
| 63) |
514 * 0.6 |
308.4 |
| 64) |
0.07 / 0.02 |
3.5 |
| 65) |
70 + 0.2 |
70.2 |
| 66) |
-93 * -0.076 |
7.068 |
| 67) |
68 - 88 |
-20 |
| 68) |
0.008 * 943 |
7.544 |
| 69) |
0.5 + -79 |
-78.5 |
| 70) |
0.002 + 0.4 |
0.402 |
| 71) |
702 + 56 |
758 |
| 72) |
-0.322 - -9.681 |
9.359 |
| 73) |
-0.03 + 7.1 |
7.07 |
| 74) |
9 - 0.04 |
8.96 |
| 75) |
21 - 0.96 |
20.04 |
| 76) |
-5.6 / 2 |
-2.8 |
| 77) |
0.2 - -1.98 |
2.18 |
| 78) |
8 * -0.3 |
-2.4 |
| 79) |
33.12 + 49.1 |
82.22 |
| 80) |
8 * 12 |
96 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized