
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.5 - -500 |
500.5 |
| 2) |
-0.7 - 45 |
-45.7 |
| 3) |
769 - 2 |
767 |
| 4) |
0.045 - -9.85 |
9.895 |
| 5) |
7417 + 90 |
7507 |
| 6) |
0.7 - 61 |
-60.3 |
| 7) |
-2 + -0.6 |
-2.6 |
| 8) |
0.84 - -0.7 |
1.54 |
| 9) |
4.6 / 1 |
4.6 |
| 10) |
0.3 - 0.071 |
0.229 |
| 11) |
4 + 0.001 |
4.001 |
| 12) |
-0.1 - 0.96 |
-1.06 |
| 13) |
8344 + -1322 |
7022 |
| 14) |
-51.6 - 3.7 |
-55.3 |
| 15) |
1 * 0.009 |
0.009 |
| 16) |
0.82 - 1 |
-0.18 |
| 17) |
7426 - 698 |
6728 |
| 18) |
993 - 534.8 |
458.2 |
| 19) |
9 - -4 |
13 |
| 20) |
1 * 0.09 |
0.09 |
| 21) |
905 + -38 |
867 |
| 22) |
30.6 + -9 |
21.6 |
| 23) |
-11 - 3 |
-14 |
| 24) |
5 / -4 |
-1.25 |
| 25) |
-88 + 74 |
-14 |
| 26) |
7 * 8 |
56 |
| 27) |
322 * 0.16 |
51.52 |
| 28) |
-731 / -1 |
731 |
| 29) |
-2.7 - -0.99 |
-1.71 |
| 30) |
491 + -423 |
68 |
| 31) |
-3 * 254 |
-762 |
| 32) |
-3.5 * -1 |
3.5 |
| 33) |
-49.5 + 0.9 |
-48.6 |
| 34) |
-3 + -387 |
-390 |
| 35) |
0.2 / -0.5 |
-0.4 |
| 36) |
3 + 0.032 |
3.032 |
| 37) |
-2 + 4 |
2 |
| 38) |
22 + 4.4 |
26.4 |
| 39) |
347 + -730 |
-383 |
| 40) |
0.032 + 2 |
2.032 |
| 41) |
26 * 1 |
26 |
| 42) |
-0.02 + 0.205 |
0.185 |
| 43) |
0.074 * 915 |
67.71 |
| 44) |
93.2 + 7 |
100.2 |
| 45) |
-55.7 - 2 |
-57.7 |
| 46) |
-80 / 4 |
-20 |
| 47) |
5110 - 8 |
5102 |
| 48) |
0.51 + 3.46 |
3.97 |
| 49) |
-0.002 + 1 |
0.998 |
| 50) |
23.4 + 57 |
80.4 |
| 51) |
96 + -8 |
88 |
| 52) |
-0.3 + 1 |
0.7 |
| 53) |
-0.3 * 18 |
-5.4 |
| 54) |
-9 / -0.3 |
30 |
| 55) |
7 - -71 |
78 |
| 56) |
-1.94 - -0.07 |
-1.87 |
| 57) |
7.9 * 9 |
71.1 |
| 58) |
-0.02 * 19 |
-0.38 |
| 59) |
75 - 28 |
47 |
| 60) |
9 * 0.15 |
1.35 |
| 61) |
-7.3 + 0.31 |
-6.99 |
| 62) |
0.5 + 528 |
528.5 |
| 63) |
16 - 164 |
-148 |
| 64) |
31 + 2391 |
2422 |
| 65) |
74.6 - 11 |
63.6 |
| 66) |
0.46 - 1.21 |
-0.75 |
| 67) |
139 - 4 |
135 |
| 68) |
-0.73 * -8 |
5.84 |
| 69) |
-0.005 * -53 |
0.265 |
| 70) |
-3 - -7735 |
7732 |
| 71) |
284 + 92.6 |
376.6 |
| 72) |
5 * -11 |
-55 |
| 73) |
175 + 3262 |
3437 |
| 74) |
-47 * 0.2 |
-9.4 |
| 75) |
7 / -1 |
-7 |
| 76) |
0.1 - 1 |
-0.9 |
| 77) |
1596 / 2 |
798 |
| 78) |
-0.3 * 0.8 |
-0.24 |
| 79) |
2638 + 620 |
3258 |
| 80) |
422 + 23 |
445 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized