
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.6 - -7.42 |
6.82 |
| 2) |
112 / -0.5 |
-224 |
| 3) |
-80.3 + -6 |
-86.3 |
| 4) |
94 - 0.06 |
93.94 |
| 5) |
9 + -9 |
0 |
| 6) |
-0.009 + 6.37 |
6.361 |
| 7) |
-6 - -34 |
28 |
| 8) |
8877 - 430 |
8447 |
| 9) |
0.011 * 3620 |
39.82 |
| 10) |
62.1 + 562 |
624.1 |
| 11) |
9 * 0.594 |
5.346 |
| 12) |
0.071 / 0.05 |
1.42 |
| 13) |
-53.3 + 17 |
-36.3 |
| 14) |
7 + 2.6 |
9.6 |
| 15) |
7 - 0.008 |
6.992 |
| 16) |
0.04 * 2 |
0.08 |
| 17) |
99 - 140 |
-41 |
| 18) |
34 + 1100 |
1134 |
| 19) |
56.3 - -1 |
57.3 |
| 20) |
7 + 9292 |
9299 |
| 21) |
726 + -40 |
686 |
| 22) |
1 - 0.545 |
0.455 |
| 23) |
8 + 421 |
429 |
| 24) |
472 * 0.7 |
330.4 |
| 25) |
0.6 * -23 |
-13.8 |
| 26) |
75 * 7 |
525 |
| 27) |
2 * 0.04 |
0.08 |
| 28) |
-40 + 38 |
-2 |
| 29) |
-8 * -0.003 |
0.024 |
| 30) |
7.7 - 0.197 |
7.503 |
| 31) |
-0.7 * 3 |
-2.1 |
| 32) |
7.1 / -0.05 |
-142 |
| 33) |
0.6 + 5.3 |
5.9 |
| 34) |
6 - 8.42 |
-2.42 |
| 35) |
47.6 - 0.5 |
47.1 |
| 36) |
94.6 - -239 |
333.6 |
| 37) |
-447 * 2 |
-894 |
| 38) |
0.04 * 7 |
0.28 |
| 39) |
-911 + 7 |
-904 |
| 40) |
2.19 / 0.03 |
73 |
| 41) |
661 * 0.08 |
52.88 |
| 42) |
-8.18 - 1 |
-9.18 |
| 43) |
-58 + -9 |
-67 |
| 44) |
81 / 18 |
4.5 |
| 45) |
7.1 * -2 |
-14.2 |
| 46) |
-50 / -2 |
25 |
| 47) |
0.2 - -674 |
674.2 |
| 48) |
1.6 + 0.41 |
2.01 |
| 49) |
8 + -0.469 |
7.531 |
| 50) |
1216 - 657 |
559 |
| 51) |
0.5 - 7 |
-6.5 |
| 52) |
0.25 / -5 |
-0.05 |
| 53) |
93 + 8479 |
8572 |
| 54) |
1 - 4.26 |
-3.26 |
| 55) |
-0.05 + 9 |
8.95 |
| 56) |
416 * 0.003 |
1.248 |
| 57) |
1 - 4 |
-3 |
| 58) |
2.6 + 76.1 |
78.7 |
| 59) |
-6.6 - 0.46 |
-7.06 |
| 60) |
45 * 2 |
90 |
| 61) |
11 + 3 |
14 |
| 62) |
-86 + 1 |
-85 |
| 63) |
0.188 * 6 |
1.128 |
| 64) |
-6.36 - 0.9 |
-7.26 |
| 65) |
1 * 10 |
10 |
| 66) |
9 - 17 |
-8 |
| 67) |
324.8 + 1 |
325.8 |
| 68) |
-0.01 - 0.07 |
-0.08 |
| 69) |
1350 - 749 |
601 |
| 70) |
-506 - -2 |
-504 |
| 71) |
-438 - 151 |
-589 |
| 72) |
-0.53 - 0.51 |
-1.04 |
| 73) |
15 - -465 |
480 |
| 74) |
1601 + -918 |
683 |
| 75) |
0.08 - 0.04 |
0.04 |
| 76) |
3 * 0.009 |
0.027 |
| 77) |
0.137 + 0.035 |
0.172 |
| 78) |
31 - 363 |
-332 |
| 79) |
2.98 + 0.031 |
3.011 |
| 80) |
-62 + 8462 |
8400 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized