
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) |
25 + 0.76 |
25.76 |
| 2) |
90 / 1 |
90 |
| 3) |
35.4 * 3 |
106.2 |
| 4) |
129 - 47.22 |
81.78 |
| 5) |
-0.79 + 88 |
87.21 |
| 6) |
0.01 - -46 |
46.01 |
| 7) |
0.05 * 0.5 |
0.025 |
| 8) |
892.6 - -53 |
945.6 |
| 9) |
7 - 80 |
-73 |
| 10) |
18 - -8 |
26 |
| 11) |
76.8 - -563 |
639.8 |
| 12) |
0.6 - 1 |
-0.4 |
| 13) |
-4.1 + 64 |
59.9 |
| 14) |
-12 + 60 |
48 |
| 15) |
0.83 - -39 |
39.83 |
| 16) |
-29 + 84.73 |
55.73 |
| 17) |
0.04 * 815 |
32.6 |
| 18) |
-6 - 2 |
-8 |
| 19) |
-62.8 + 85 |
22.2 |
| 20) |
903 / -7 |
-129 |
| 21) |
0.02 * 105 |
2.1 |
| 22) |
11.3 - -0.07 |
11.37 |
| 23) |
-0.87 * -8.8 |
7.656 |
| 24) |
76.43 - 0.14 |
76.29 |
| 25) |
-18 - 3.4 |
-21.4 |
| 26) |
8 * 3.19 |
25.52 |
| 27) |
0.9 - 0.95 |
-0.05 |
| 28) |
1.168 * 3 |
3.504 |
| 29) |
0.1 - 61 |
-60.9 |
| 30) |
6 * 346 |
2076 |
| 31) |
5.3 + 4.258 |
9.558 |
| 32) |
1 * 0.008 |
0.008 |
| 33) |
25 - -48.4 |
73.4 |
| 34) |
23 - 80 |
-57 |
| 35) |
-6 * -788 |
4728 |
| 36) |
0.07 - 1 |
-0.93 |
| 37) |
0.568 * 8 |
4.544 |
| 38) |
-4 - -52 |
48 |
| 39) |
83 + 5 |
88 |
| 40) |
-0.7 - -0.16 |
-0.54 |
| 41) |
1.6 * 3 |
4.8 |
| 42) |
-5 + 872.8 |
867.8 |
| 43) |
0.29 - 0.73 |
-0.44 |
| 44) |
615 - -72 |
687 |
| 45) |
935 / 25 |
37.4 |
| 46) |
-6 + 2.57 |
-3.43 |
| 47) |
4.9 - 51 |
-46.1 |
| 48) |
0.003 * 5 |
0.015 |
| 49) |
-4 + -5.2 |
-9.2 |
| 50) |
-149 * 0.02 |
-2.98 |
| 51) |
0.4 * 2259 |
903.6 |
| 52) |
58 + 9630 |
9688 |
| 53) |
2 - -4 |
6 |
| 54) |
34.8 / 0.75 |
46.4 |
| 55) |
-22 + -0.5 |
-22.5 |
| 56) |
6 * 38 |
228 |
| 57) |
-9.4 + 97.2 |
87.8 |
| 58) |
0.4 * -217 |
-86.8 |
| 59) |
0.55 + -5.64 |
-5.09 |
| 60) |
73.7 + 4 |
77.7 |
| 61) |
5.8 * 50 |
290 |
| 62) |
2.53 - 1 |
1.53 |
| 63) |
-270 * 0.9 |
-243 |
| 64) |
-0.44 - 4 |
-4.44 |
| 65) |
-696 * -1 |
696 |
| 66) |
3 + -106 |
-103 |
| 67) |
-7 - -6262 |
6255 |
| 68) |
0.5 + 7.434 |
7.934 |
| 69) |
58.85 - -0.47 |
59.32 |
| 70) |
35.24 - -9 |
44.24 |
| 71) |
8395 + -977 |
7418 |
| 72) |
-8 + -3 |
-11 |
| 73) |
8.1 - 89.1 |
-81 |
| 74) |
49 + -43 |
6 |
| 75) |
-41.8 - 5.7 |
-47.5 |
| 76) |
0.008 / 8 |
0.001 |
| 77) |
12.5 + -9.3 |
3.2 |
| 78) |
82 * -7 |
-574 |
| 79) |
1.59 - 0.26 |
1.33 |
| 80) |
45 / 0.3 |
150 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized