
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.19 - -27 |
27.19 |
| 2) |
0.627 - -0.365 |
0.992 |
| 3) |
12 + -9.15 |
2.85 |
| 4) |
-0.68 - -12 |
11.32 |
| 5) |
7.5 + 34.54 |
42.04 |
| 6) |
83.18 - 0.5 |
82.68 |
| 7) |
7 * 0.01 |
0.07 |
| 8) |
0.92 - 4.3 |
-3.38 |
| 9) |
7.03 + 0.009 |
7.039 |
| 10) |
0.17 - 5 |
-4.83 |
| 11) |
64 - -2 |
66 |
| 12) |
3 - -3.95 |
6.95 |
| 13) |
-0.8 - -14 |
13.2 |
| 14) |
76 + 60 |
136 |
| 15) |
-1 * -0.4 |
0.4 |
| 16) |
-0.5 + -60 |
-60.5 |
| 17) |
7 * -1 |
-7 |
| 18) |
0.009 / 0.005 |
1.8 |
| 19) |
40 - 392 |
-352 |
| 20) |
0.02 - -8 |
8.02 |
| 21) |
81 * -7 |
-567 |
| 22) |
1729 + 3 |
1732 |
| 23) |
0.054 / 0.9 |
0.06 |
| 24) |
-2.1 + 6 |
3.9 |
| 25) |
6 * -4 |
-24 |
| 26) |
-8 - 321 |
-329 |
| 27) |
0.7 * 0.85 |
0.595 |
| 28) |
23 - 86 |
-63 |
| 29) |
5.73 - -0.78 |
6.51 |
| 30) |
281 + 61 |
342 |
| 31) |
95 + 72 |
167 |
| 32) |
57 / -57 |
-1 |
| 33) |
-7 * 9 |
-63 |
| 34) |
81.5 - 18.1 |
63.4 |
| 35) |
-793 + 94 |
-699 |
| 36) |
6 - -691.6 |
697.6 |
| 37) |
-1 - -509 |
508 |
| 38) |
6 + -0.05 |
5.95 |
| 39) |
16 * 0.18 |
2.88 |
| 40) |
0.887 - 0.51 |
0.377 |
| 41) |
1937 + 52 |
1989 |
| 42) |
0.02 - 1 |
-0.98 |
| 43) |
-0.335 * -6 |
2.01 |
| 44) |
9.46 - 3.171 |
6.289 |
| 45) |
6 / 4 |
1.5 |
| 46) |
6588 - -92 |
6680 |
| 47) |
5 - 9.6 |
-4.6 |
| 48) |
0.49 / 0.05 |
9.8 |
| 49) |
7 - 0.3 |
6.7 |
| 50) |
0.7 / -0.01 |
-70 |
| 51) |
-0.299 + 9 |
8.701 |
| 52) |
-7 / 1 |
-7 |
| 53) |
0.6 + 9 |
9.6 |
| 54) |
3.828 + 4.5 |
8.328 |
| 55) |
-284 - 5 |
-289 |
| 56) |
32 - 418 |
-386 |
| 57) |
630 + 2.4 |
632.4 |
| 58) |
34 - 493 |
-459 |
| 59) |
0.6 + -3.02 |
-2.42 |
| 60) |
0.004 / 0.04 |
0.1 |
| 61) |
-48 + -9 |
-57 |
| 62) |
-0.251 * -2 |
0.502 |
| 63) |
588 - 0.9 |
587.1 |
| 64) |
-57.9 + 92 |
34.1 |
| 65) |
3.99 + 8 |
11.99 |
| 66) |
-27.8 * -0.01 |
0.278 |
| 67) |
5.56 - 2 |
3.56 |
| 68) |
-4 - 769 |
-773 |
| 69) |
6.648 - 2 |
4.648 |
| 70) |
-32 + 7542 |
7510 |
| 71) |
9 + 828 |
837 |
| 72) |
4.041 - 1.9 |
2.141 |
| 73) |
972 + 36 |
1008 |
| 74) |
51 + -5.7 |
45.3 |
| 75) |
0.075 / 1 |
0.075 |
| 76) |
0.8 + -0.08 |
0.72 |
| 77) |
2 + 0.4 |
2.4 |
| 78) |
0.365 - 0.08 |
0.285 |
| 79) |
93.3 + -22 |
71.3 |
| 80) |
6 + -1.566 |
4.434 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized