
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) |
-5357 + 6981 |
1624 |
| 2) |
0.02 + 0.004 |
0.024 |
| 3) |
62.55 - -36.1 |
98.65 |
| 4) |
0.4 + -97 |
-96.6 |
| 5) |
9 - -0.791 |
9.791 |
| 6) |
2617 - -5 |
2622 |
| 7) |
1.84 - -0.9 |
2.74 |
| 8) |
3569 - -6023 |
9592 |
| 9) |
23.9 - 3 |
20.9 |
| 10) |
-0.02 + 0.01 |
-0.01 |
| 11) |
3.2 / 40 |
0.08 |
| 12) |
97.54 + 2.26 |
99.8 |
| 13) |
0.06 * 618 |
37.08 |
| 14) |
0.075 + 7 |
7.075 |
| 15) |
-43 - 840 |
-883 |
| 16) |
0.068 - 0.006 |
0.062 |
| 17) |
2.2 + 9.66 |
11.86 |
| 18) |
-9 - -4636 |
4627 |
| 19) |
32 - -74 |
106 |
| 20) |
7316 + 48 |
7364 |
| 21) |
6 - -4.65 |
10.65 |
| 22) |
-9 + -63 |
-72 |
| 23) |
5.451 + 0.77 |
6.221 |
| 24) |
7 * 366 |
2562 |
| 25) |
66 - 32 |
34 |
| 26) |
30 / -0.25 |
-120 |
| 27) |
4 - 4.77 |
-0.77 |
| 28) |
671 + -575 |
96 |
| 29) |
47 + 299.8 |
346.8 |
| 30) |
75 - -3343 |
3418 |
| 31) |
1 * 7 |
7 |
| 32) |
0.092 - 0.006 |
0.086 |
| 33) |
535 * 0.003 |
1.605 |
| 34) |
99 + 53 |
152 |
| 35) |
0.08 + 0.2 |
0.28 |
| 36) |
0.97 - -25.39 |
26.36 |
| 37) |
37 / 2 |
18.5 |
| 38) |
466 + 319 |
785 |
| 39) |
0.88 / -0.005 |
-176 |
| 40) |
9.4 - -8.38 |
17.78 |
| 41) |
4 * -0.54 |
-2.16 |
| 42) |
-2.906 + 3 |
0.094 |
| 43) |
2 + 58 |
60 |
| 44) |
0.4 + 677.3 |
677.7 |
| 45) |
0.37 - -82 |
82.37 |
| 46) |
1 / 0.8 |
1.25 |
| 47) |
-41 * 6 |
-246 |
| 48) |
-0.015 - -0.5 |
0.485 |
| 49) |
4 / 0.05 |
80 |
| 50) |
-454 * 0.05 |
-22.7 |
| 51) |
-86 - -361.2 |
275.2 |
| 52) |
-38 * -7.5 |
285 |
| 53) |
-72 / -2 |
36 |
| 54) |
-0.08 * 99 |
-7.92 |
| 55) |
5.8 - 1.408 |
4.392 |
| 56) |
-41 + 160 |
119 |
| 57) |
6.133 + 0.062 |
6.195 |
| 58) |
957.3 - 7 |
950.3 |
| 59) |
5 * -8.88 |
-44.4 |
| 60) |
8.02 + 8.7 |
16.72 |
| 61) |
41 * -3 |
-123 |
| 62) |
-7 / 0.4 |
-17.5 |
| 63) |
915 + -41 |
874 |
| 64) |
-0.4 * -3 |
1.2 |
| 65) |
50.6 - 3.01 |
47.59 |
| 66) |
-6 / -2 |
3 |
| 67) |
9 - 10.77 |
-1.77 |
| 68) |
0.003 + 0.04 |
0.043 |
| 69) |
9659 - 570 |
9089 |
| 70) |
847 * 6 |
5082 |
| 71) |
1.93 * -2 |
-3.86 |
| 72) |
685 + -5 |
680 |
| 73) |
7.35 + -0.001 |
7.349 |
| 74) |
24.54 - 0.1 |
24.44 |
| 75) |
0.18 * 2825 |
508.5 |
| 76) |
59.24 + 0.87 |
60.11 |
| 77) |
647 * 6 |
3882 |
| 78) |
1.66 - -0.01 |
1.67 |
| 79) |
9 / 6 |
1.5 |
| 80) |
-49 + 4758 |
4709 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized