
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) |
7 * 0.95 |
6.65 |
| 2) |
-326 + -57 |
-383 |
| 3) |
0.7 * 0.1 |
0.07 |
| 4) |
26.9 - 84 |
-57.1 |
| 5) |
-0.5 * 0.08 |
-0.04 |
| 6) |
272 - 0.4 |
271.6 |
| 7) |
0.4 + 0.474 |
0.874 |
| 8) |
1 - 81 |
-80 |
| 9) |
0.7 + 5 |
5.7 |
| 10) |
5.72 + -7.9 |
-2.18 |
| 11) |
66 - 0.1 |
65.9 |
| 12) |
0.007 + 0.085 |
0.092 |
| 13) |
81.2 - -0.04 |
81.24 |
| 14) |
1 * 58 |
58 |
| 15) |
4519 + 430 |
4949 |
| 16) |
7 + 0.6 |
7.6 |
| 17) |
75 - 2.9 |
72.1 |
| 18) |
0.037 - -1.6 |
1.637 |
| 19) |
80 - 73 |
7 |
| 20) |
21 - -0.7 |
21.7 |
| 21) |
96 + 42.5 |
138.5 |
| 22) |
554 * 0.02 |
11.08 |
| 23) |
9 / 4 |
2.25 |
| 24) |
-65 - -137 |
72 |
| 25) |
8 + 13.8 |
21.8 |
| 26) |
1809 - 414 |
1395 |
| 27) |
-33 * -61 |
2013 |
| 28) |
73.7 + -0.04 |
73.66 |
| 29) |
0.008 + 0.1 |
0.108 |
| 30) |
467 + 487 |
954 |
| 31) |
-0.72 / -0.8 |
0.9 |
| 32) |
766 + 30.8 |
796.8 |
| 33) |
42 + 8 |
50 |
| 34) |
5 + 27 |
32 |
| 35) |
-599 - 355 |
-954 |
| 36) |
3.97 * -2 |
-7.94 |
| 37) |
-3 / 0.6 |
-5 |
| 38) |
-5.9 * 8 |
-47.2 |
| 39) |
92 - 29 |
63 |
| 40) |
69.85 - 10 |
59.85 |
| 41) |
-3 + 6 |
3 |
| 42) |
451.2 + 269 |
720.2 |
| 43) |
67 / 5 |
13.4 |
| 44) |
9.2 - 0.3 |
8.9 |
| 45) |
0.07 * 17 |
1.19 |
| 46) |
0.99 + 3 |
3.99 |
| 47) |
1 * 6 |
6 |
| 48) |
0.22 * 1365 |
300.3 |
| 49) |
-3.2 + 10 |
6.8 |
| 50) |
8.155 + 0.01 |
8.165 |
| 51) |
-5.216 + 9.14 |
3.924 |
| 52) |
-7 - 0.05 |
-7.05 |
| 53) |
0.1 * -6 |
-0.6 |
| 54) |
-3.7 + 1.3 |
-2.4 |
| 55) |
4 / 0.001 |
4000 |
| 56) |
594.7 - 47 |
547.7 |
| 57) |
-317 + 57 |
-260 |
| 58) |
-0.9 / 2 |
-0.45 |
| 59) |
-0.009 - -0.04 |
0.031 |
| 60) |
2 - 187 |
-185 |
| 61) |
-6.1 + 927 |
920.9 |
| 62) |
0.003 + 5 |
5.003 |
| 63) |
6609 - -59 |
6668 |
| 64) |
-9 + 0.8 |
-8.2 |
| 65) |
90.99 + 0.1 |
91.09 |
| 66) |
1 - -868.8 |
869.8 |
| 67) |
78 + -2 |
76 |
| 68) |
673 - 878 |
-205 |
| 69) |
39 + 7391 |
7430 |
| 70) |
0.3 + 622 |
622.3 |
| 71) |
16 - 9 |
7 |
| 72) |
0.064 + 0.004 |
0.068 |
| 73) |
7984 + 776 |
8760 |
| 74) |
3.708 + 0.09 |
3.798 |
| 75) |
431 + -5 |
426 |
| 76) |
98.5 + 8.6 |
107.1 |
| 77) |
-138 + 428.6 |
290.6 |
| 78) |
0.5 + 0.69 |
1.19 |
| 79) |
240 / 0.6 |
400 |
| 80) |
57 + -8 |
49 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized