
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) |
305 * 0.002 |
0.61 |
| 2) |
7 + 25.3 |
32.3 |
| 3) |
2.7 - 77 |
-74.3 |
| 4) |
939 + 948 |
1887 |
| 5) |
66.44 - -2 |
68.44 |
| 6) |
1 * 143 |
143 |
| 7) |
-80 - -419.9 |
339.9 |
| 8) |
8 * -1 |
-8 |
| 9) |
0.03 - -8 |
8.03 |
| 10) |
9 / -5 |
-1.8 |
| 11) |
8.1 - 98 |
-89.9 |
| 12) |
5 - -979 |
984 |
| 13) |
62 * 3.5 |
217 |
| 14) |
89 + 1.49 |
90.49 |
| 15) |
-1 - 2 |
-3 |
| 16) |
0.002 - -4.99 |
4.992 |
| 17) |
7 * -0.07 |
-0.49 |
| 18) |
-2 / 0.05 |
-40 |
| 19) |
9 - 4.29 |
4.71 |
| 20) |
8.088 + 0.9 |
8.988 |
| 21) |
988 + -2 |
986 |
| 22) |
-0.09 - 2.4 |
-2.49 |
| 23) |
-3 + 29 |
26 |
| 24) |
0.297 / 1 |
0.297 |
| 25) |
0.03 - 0.02 |
0.01 |
| 26) |
0.2 * 3 |
0.6 |
| 27) |
-0.4 + -0.1 |
-0.5 |
| 28) |
9.5 + 60 |
69.5 |
| 29) |
-8 * -0.58 |
4.64 |
| 30) |
-941 - -5749 |
4808 |
| 31) |
7.946 + -5 |
2.946 |
| 32) |
0.4 * 3.31 |
1.324 |
| 33) |
-40 + -8 |
-48 |
| 34) |
-41 + 4623 |
4582 |
| 35) |
5 * 1.7 |
8.5 |
| 36) |
-75 - -138 |
63 |
| 37) |
261 * 1 |
261 |
| 38) |
0.582 + 5.032 |
5.614 |
| 39) |
4.559 / 0.05 |
91.18 |
| 40) |
715 + 2 |
717 |
| 41) |
76 / -4 |
-19 |
| 42) |
77 + -5 |
72 |
| 43) |
55 - 76.3 |
-21.3 |
| 44) |
352 + -626 |
-274 |
| 45) |
0.08 / -0.4 |
-0.2 |
| 46) |
0.1 / 2 |
0.05 |
| 47) |
-67 - 3 |
-70 |
| 48) |
0.8 + 0.061 |
0.861 |
| 49) |
-24 + -5 |
-29 |
| 50) |
0.035 * 0.4 |
0.014 |
| 51) |
45 - 20.46 |
24.54 |
| 52) |
8 + 9281 |
9289 |
| 53) |
1176 * 3 |
3528 |
| 54) |
-48 / -0.03 |
1600 |
| 55) |
692 - -7619 |
8311 |
| 56) |
48 * 0.06 |
2.88 |
| 57) |
7 * 6 |
42 |
| 58) |
2 + -0.011 |
1.989 |
| 59) |
0.9 / 6 |
0.15 |
| 60) |
2 * 0.3 |
0.6 |
| 61) |
0.1 + 59 |
59.1 |
| 62) |
0.04 - -0.08 |
0.12 |
| 63) |
111 + 4976 |
5087 |
| 64) |
893 * 4 |
3572 |
| 65) |
3 * -1.4 |
-4.2 |
| 66) |
0.77 - -2.839 |
3.609 |
| 67) |
8.5 + 52 |
60.5 |
| 68) |
0.5 + 0.008 |
0.508 |
| 69) |
1 - 0.661 |
0.339 |
| 70) |
-4 / -0.032 |
125 |
| 71) |
4 - -12.2 |
16.2 |
| 72) |
86 / 5 |
17.2 |
| 73) |
-4 * 12 |
-48 |
| 74) |
0.1 - 85 |
-84.9 |
| 75) |
5 + 7 |
12 |
| 76) |
504 - -232 |
736 |
| 77) |
0.7 + 437 |
437.7 |
| 78) |
8.9 - 78 |
-69.1 |
| 79) |
-88 * -70 |
6160 |
| 80) |
5794 + -7 |
5787 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized