
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) |
128 * 9 |
1152 |
| 2) |
45 + 0.9 |
45.9 |
| 3) |
925 - 99.6 |
825.4 |
| 4) |
-0.783 / 0.009 |
-87 |
| 5) |
569 + 8184 |
8753 |
| 6) |
0.005 / -0.002 |
-2.5 |
| 7) |
682 + 210 |
892 |
| 8) |
-2 - -32 |
30 |
| 9) |
3879 + 779 |
4658 |
| 10) |
5 + 9 |
14 |
| 11) |
12.3 + -5.4 |
6.9 |
| 12) |
4 + 0.035 |
4.035 |
| 13) |
-46.79 - -52 |
5.21 |
| 14) |
39 + 402 |
441 |
| 15) |
8 - -732.4 |
740.4 |
| 16) |
-119 * -0.66 |
78.54 |
| 17) |
1 + 32 |
33 |
| 18) |
62.6 / -2 |
-31.3 |
| 19) |
5.415 - -0.048 |
5.463 |
| 20) |
12 + 0.08 |
12.08 |
| 21) |
-93.9 - -97.8 |
3.9 |
| 22) |
0.31 + 0.6 |
0.91 |
| 23) |
-3.7 - -842 |
838.3 |
| 24) |
-0.06 / 0.2 |
-0.3 |
| 25) |
3440 - -57 |
3497 |
| 26) |
-0.14 + 9 |
8.86 |
| 27) |
-23 - 6.2 |
-29.2 |
| 28) |
0.008 * 73 |
0.584 |
| 29) |
-1.85 + 0.05 |
-1.8 |
| 30) |
-0.6 - -7.53 |
6.93 |
| 31) |
86 + 1.2 |
87.2 |
| 32) |
0.6 * -94 |
-56.4 |
| 33) |
43 + -2.25 |
40.75 |
| 34) |
-0.006 / 0.008 |
-0.75 |
| 35) |
88.9 - 2 |
86.9 |
| 36) |
-6.46 - -0.3 |
-6.16 |
| 37) |
3 - 0.01 |
2.99 |
| 38) |
0.2 * 3.8 |
0.76 |
| 39) |
-3 - 0.56 |
-3.56 |
| 40) |
3 - -59.9 |
62.9 |
| 41) |
4 + -25.1 |
-21.1 |
| 42) |
90 / 0.05 |
1800 |
| 43) |
6 - 175 |
-169 |
| 44) |
79 - -0.05 |
79.05 |
| 45) |
-0.35 + -0.5 |
-0.85 |
| 46) |
26.32 + -0.7 |
25.62 |
| 47) |
74 - 395 |
-321 |
| 48) |
0.05 - -6.24 |
6.29 |
| 49) |
-73 + 2.5 |
-70.5 |
| 50) |
231 + 0.9 |
231.9 |
| 51) |
0.09 - 1 |
-0.91 |
| 52) |
-87 - 78 |
-165 |
| 53) |
67 + 412.2 |
479.2 |
| 54) |
1860 - 71 |
1789 |
| 55) |
2126 / 1 |
2126 |
| 56) |
4529 + 5 |
4534 |
| 57) |
-4 * -27 |
108 |
| 58) |
3 + -0.016 |
2.984 |
| 59) |
-1 - -3250 |
3249 |
| 60) |
0.182 * 125 |
22.75 |
| 61) |
6 + -0.02 |
5.98 |
| 62) |
-49 - 814 |
-863 |
| 63) |
31.5 - -6 |
37.5 |
| 64) |
0.98 - 0.251 |
0.729 |
| 65) |
0.38 - 6 |
-5.62 |
| 66) |
3 - 7 |
-4 |
| 67) |
68.51 + -6 |
62.51 |
| 68) |
37 / -5 |
-7.4 |
| 69) |
-1 + 9.08 |
8.08 |
| 70) |
-3.4 - 0.6 |
-4 |
| 71) |
684 - 583 |
101 |
| 72) |
841.5 - -0.7 |
842.2 |
| 73) |
40.05 / 0.9 |
44.5 |
| 74) |
5 + 0.29 |
5.29 |
| 75) |
0.06 + 37 |
37.06 |
| 76) |
40 - 7 |
33 |
| 77) |
453 - 4 |
449 |
| 78) |
9728 - -32 |
9760 |
| 79) |
0.6 / 75 |
0.008 |
| 80) |
-496 + 7552 |
7056 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized