
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.08 / 0.016 |
5 |
| 2) |
226 + 33.8 |
259.8 |
| 3) |
69 / 4 |
17.25 |
| 4) |
-6.36 / 0.2 |
-31.8 |
| 5) |
56.15 - 5 |
51.15 |
| 6) |
1 + -5 |
-4 |
| 7) |
9.3 + -2.25 |
7.05 |
| 8) |
-39 + 8 |
-31 |
| 9) |
6 + -0.329 |
5.671 |
| 10) |
8.9 - -43 |
51.9 |
| 11) |
5 + 1926 |
1931 |
| 12) |
709 - 617 |
92 |
| 13) |
0.06 / 0.4 |
0.15 |
| 14) |
44.9 - -781 |
825.9 |
| 15) |
5 + 8227 |
8232 |
| 16) |
9.44 * 850 |
8024 |
| 17) |
0.25 * -23 |
-5.75 |
| 18) |
99 - 236 |
-137 |
| 19) |
0.07 - 0.068 |
0.002 |
| 20) |
3 + 0.042 |
3.042 |
| 21) |
6.39 - -0.4 |
6.79 |
| 22) |
2873 + -56 |
2817 |
| 23) |
0.276 - -0.006 |
0.282 |
| 24) |
91 + 2940 |
3031 |
| 25) |
3 - 0.311 |
2.689 |
| 26) |
-71 + 0.9 |
-70.1 |
| 27) |
-0.47 - -0.7 |
0.23 |
| 28) |
2497 * 1 |
2497 |
| 29) |
6304 - 1 |
6303 |
| 30) |
0.008 / 2 |
0.004 |
| 31) |
927 - -3347 |
4274 |
| 32) |
-3 / 1 |
-3 |
| 33) |
-139 / 0.2 |
-695 |
| 34) |
-2 + 0.5 |
-1.5 |
| 35) |
0.23 * 0.7 |
0.161 |
| 36) |
503 + 94 |
597 |
| 37) |
8282 + -9 |
8273 |
| 38) |
-0.062 * -31 |
1.922 |
| 39) |
0.3 - 3.93 |
-3.63 |
| 40) |
2.56 - 0.807 |
1.753 |
| 41) |
8 - -77.7 |
85.7 |
| 42) |
23 + 66.17 |
89.17 |
| 43) |
2 * 24 |
48 |
| 44) |
4 - 231 |
-227 |
| 45) |
21 + -58 |
-37 |
| 46) |
-6 - 68 |
-74 |
| 47) |
927.5 - 0.5 |
927 |
| 48) |
-7 + -59 |
-66 |
| 49) |
0.04 / 0.1 |
0.4 |
| 50) |
0.003 + 9 |
9.003 |
| 51) |
-0.1 - -0.49 |
0.39 |
| 52) |
2.19 + 4 |
6.19 |
| 53) |
18 + 3 |
21 |
| 54) |
92 - 5.14 |
86.86 |
| 55) |
7 * 0.031 |
0.217 |
| 56) |
774 - 426 |
348 |
| 57) |
-350 - -154 |
-196 |
| 58) |
81.87 + 2.5 |
84.37 |
| 59) |
-42 * 3 |
-126 |
| 60) |
1 - 8 |
-7 |
| 61) |
43.8 + 40 |
83.8 |
| 62) |
8599 - 6083 |
2516 |
| 63) |
9464 + 312 |
9776 |
| 64) |
6767 - 49 |
6718 |
| 65) |
8558 - 563 |
7995 |
| 66) |
-2 + 38 |
36 |
| 67) |
2 - 66 |
-64 |
| 68) |
-7.54 + 8 |
0.46 |
| 69) |
-87 + 82.75 |
-4.25 |
| 70) |
6 + -791 |
-785 |
| 71) |
-5 * -4 |
20 |
| 72) |
0.34 + 0.11 |
0.45 |
| 73) |
-4 - -0.02 |
-3.98 |
| 74) |
-0.1 * 81 |
-8.1 |
| 75) |
0.6 - -255 |
255.6 |
| 76) |
-775 - 7 |
-782 |
| 77) |
6.46 + 0.008 |
6.468 |
| 78) |
968.4 - 8 |
960.4 |
| 79) |
96 + -85 |
11 |
| 80) |
314 + -33 |
281 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized