
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) |
914 / -1 |
-914 |
| 2) |
9 + 3 |
12 |
| 3) |
4 * 0.54 |
2.16 |
| 4) |
4 + 8 |
12 |
| 5) |
-179 - 8 |
-187 |
| 6) |
0.7 * 0.3 |
0.21 |
| 7) |
4 - -9 |
13 |
| 8) |
-1 + 422 |
421 |
| 9) |
-3 * 0.91 |
-2.73 |
| 10) |
253.5 - 54.2 |
199.3 |
| 11) |
-1 - 24 |
-25 |
| 12) |
3 - -90 |
93 |
| 13) |
1472 + -1 |
1471 |
| 14) |
-0.7 / 1 |
-0.7 |
| 15) |
-76 + -9 |
-85 |
| 16) |
0.4 - 8 |
-7.6 |
| 17) |
6 - 8.44 |
-2.44 |
| 18) |
3141 + 2612 |
5753 |
| 19) |
36.3 - 1 |
35.3 |
| 20) |
9.2 * 0.51 |
4.692 |
| 21) |
0.7 + -0.082 |
0.618 |
| 22) |
51 + 3928 |
3979 |
| 23) |
-246 * -4 |
984 |
| 24) |
-34 + -77 |
-111 |
| 25) |
-5.648 - -8 |
2.352 |
| 26) |
571 + 37 |
608 |
| 27) |
0.001 * 717 |
0.717 |
| 28) |
7.4 - 0.1 |
7.3 |
| 29) |
9 - 0.91 |
8.09 |
| 30) |
-0.18 - -0.9 |
0.72 |
| 31) |
32 + 2183 |
2215 |
| 32) |
66.44 - -7 |
73.44 |
| 33) |
52.2 - -0.5 |
52.7 |
| 34) |
-3.84 - 1.13 |
-4.97 |
| 35) |
817 + -4.9 |
812.1 |
| 36) |
-8.21 - -62 |
53.79 |
| 37) |
-138 / -3 |
46 |
| 38) |
-520 * 1 |
-520 |
| 39) |
0.9 * 20 |
18 |
| 40) |
0.3 - -9 |
9.3 |
| 41) |
4 * -89 |
-356 |
| 42) |
-9.43 + 91 |
81.57 |
| 43) |
6 / 0.8 |
7.5 |
| 44) |
29 + 3 |
32 |
| 45) |
-26 - -14 |
-12 |
| 46) |
754 + 4 |
758 |
| 47) |
9 - -4.7 |
13.7 |
| 48) |
0.9 / -0.6 |
-1.5 |
| 49) |
456.7 + 8 |
464.7 |
| 50) |
4.607 - 0.04 |
4.567 |
| 51) |
-0.08 - 6 |
-6.08 |
| 52) |
5 + -54 |
-49 |
| 53) |
651.2 + -57 |
594.2 |
| 54) |
6 * 665 |
3990 |
| 55) |
2.9 - 96 |
-93.1 |
| 56) |
46.5 + 8 |
54.5 |
| 57) |
0.2 / 1 |
0.2 |
| 58) |
9 + 0.3 |
9.3 |
| 59) |
25.31 + 26 |
51.31 |
| 60) |
7 - 60.6 |
-53.6 |
| 61) |
-4.75 + 3 |
-1.75 |
| 62) |
5 + 0.001 |
5.001 |
| 63) |
1 * 9 |
9 |
| 64) |
0.3 + 6 |
6.3 |
| 65) |
66 - 768 |
-702 |
| 66) |
-6.475 * -1 |
6.475 |
| 67) |
-46 / -0.08 |
575 |
| 68) |
-0.5 * -62 |
31 |
| 69) |
2 * 829 |
1658 |
| 70) |
5 - 1 |
4 |
| 71) |
-8.4 - 0.31 |
-8.71 |
| 72) |
0.003 / -0.06 |
-0.05 |
| 73) |
6 - 0.005 |
5.995 |
| 74) |
0.1 * 9271 |
927.1 |
| 75) |
-0.45 - -0.03 |
-0.42 |
| 76) |
4 / 0.001 |
4000 |
| 77) |
-4 / 0.008 |
-500 |
| 78) |
-74 - 33 |
-107 |
| 79) |
76 + -9 |
67 |
| 80) |
4 - -0.042 |
4.042 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized