
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) |
7349 - 5958 |
1391 |
| 2) |
5 + 24 |
29 |
| 3) |
9 / -1.5 |
-6 |
| 4) |
409 + -434 |
-25 |
| 5) |
15 - 0.3 |
14.7 |
| 6) |
-6.3 + 48 |
41.7 |
| 7) |
5734 - 4 |
5730 |
| 8) |
2 + 61 |
63 |
| 9) |
16.1 + 3.31 |
19.41 |
| 10) |
0.03 + 0.003 |
0.033 |
| 11) |
80 + 8.73 |
88.73 |
| 12) |
1020 - -1897 |
2917 |
| 13) |
55 * -2 |
-110 |
| 14) |
-22 - 1 |
-23 |
| 15) |
315.2 / 50 |
6.304 |
| 16) |
5 + -67 |
-62 |
| 17) |
-0.008 + 0.01 |
0.002 |
| 18) |
5 * 2 |
10 |
| 19) |
1 - 0.003 |
0.997 |
| 20) |
-841 - -15 |
-826 |
| 21) |
0.5 * 8.64 |
4.32 |
| 22) |
-363 - 9 |
-372 |
| 23) |
9930 * 0.7 |
6951 |
| 24) |
-195 - 3 |
-198 |
| 25) |
4 * 3 |
12 |
| 26) |
4.8 + 498 |
502.8 |
| 27) |
-93 - 478 |
-571 |
| 28) |
303 + 5 |
308 |
| 29) |
0.7 - 6.87 |
-6.17 |
| 30) |
4 - -41 |
45 |
| 31) |
7.65 - -6 |
13.65 |
| 32) |
75 * 0.04 |
3 |
| 33) |
35 * -0.062 |
-2.17 |
| 34) |
0.436 / 1 |
0.436 |
| 35) |
-0.6 - 1 |
-1.6 |
| 36) |
7 + -5.73 |
1.27 |
| 37) |
3 + 1.3 |
4.3 |
| 38) |
2920 + -483 |
2437 |
| 39) |
35.43 - -0.93 |
36.36 |
| 40) |
-0.14 - -3.39 |
3.25 |
| 41) |
247 + 584 |
831 |
| 42) |
0.3 + 352 |
352.3 |
| 43) |
-61.4 - 0.2 |
-61.6 |
| 44) |
15 * 364 |
5460 |
| 45) |
675 - -505 |
1180 |
| 46) |
696 - 3 |
693 |
| 47) |
71 + -7 |
64 |
| 48) |
4543 - -23 |
4566 |
| 49) |
3540 + 5 |
3545 |
| 50) |
0.78 / -0.005 |
-156 |
| 51) |
7 - 0.009 |
6.991 |
| 52) |
59 + 0.09 |
59.09 |
| 53) |
7134 + -44 |
7090 |
| 54) |
922 * 0.01 |
9.22 |
| 55) |
597 / -3 |
-199 |
| 56) |
2 + 732.5 |
734.5 |
| 57) |
928 + -6 |
922 |
| 58) |
23.85 * 0.08 |
1.908 |
| 59) |
495 + 8.7 |
503.7 |
| 60) |
-25 + -7 |
-32 |
| 61) |
9.6 + 0.02 |
9.62 |
| 62) |
1 * -3.1 |
-3.1 |
| 63) |
-181 - 283 |
-464 |
| 64) |
6 + 8 |
14 |
| 65) |
-45 * -213 |
9585 |
| 66) |
-579 + 6 |
-573 |
| 67) |
68 * 0.63 |
42.84 |
| 68) |
-0.09 / 0.02 |
-4.5 |
| 69) |
6611 + -647 |
5964 |
| 70) |
-0.054 * 180 |
-9.72 |
| 71) |
8 * 3.56 |
28.48 |
| 72) |
191.8 + -14 |
177.8 |
| 73) |
-175 * -9 |
1575 |
| 74) |
4341 - 524 |
3817 |
| 75) |
0.082 * 46 |
3.772 |
| 76) |
3.1 + 4.3 |
7.4 |
| 77) |
0.01 - -9.17 |
9.18 |
| 78) |
-0.334 + 0.955 |
0.621 |
| 79) |
-91 + -0.9 |
-91.9 |
| 80) |
43 * -9 |
-387 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized