
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.05 * 6990 |
349.5 |
| 2) |
0.23 + -3 |
-2.77 |
| 3) |
946 - -893 |
1839 |
| 4) |
-3.83 - -40 |
36.17 |
| 5) |
-2 * 86 |
-172 |
| 6) |
5261 - -67 |
5328 |
| 7) |
2 * -15 |
-30 |
| 8) |
8.9 - -326 |
334.9 |
| 9) |
7.4 * -0.3 |
-2.22 |
| 10) |
0.05 - 9 |
-8.95 |
| 11) |
66.5 - -6.5 |
73 |
| 12) |
-8.9 + 0.03 |
-8.87 |
| 13) |
81 * 1 |
81 |
| 14) |
67 * 0.8 |
53.6 |
| 15) |
924 * 0.02 |
18.48 |
| 16) |
4.1 - 73 |
-68.9 |
| 17) |
76 / 32 |
2.375 |
| 18) |
-572 - 55 |
-627 |
| 19) |
-0.065 / -0.008 |
8.125 |
| 20) |
82 + -7 |
75 |
| 21) |
0.566 + 3.68 |
4.246 |
| 22) |
74 * 3.3 |
244.2 |
| 23) |
7690 - 33 |
7657 |
| 24) |
1 + 0.16 |
1.16 |
| 25) |
9 - -0.078 |
9.078 |
| 26) |
-5 + 236.4 |
231.4 |
| 27) |
751 + 63 |
814 |
| 28) |
0.46 * 5.2 |
2.392 |
| 29) |
0.84 + 5 |
5.84 |
| 30) |
1256 * 1 |
1256 |
| 31) |
0.828 + 0.9 |
1.728 |
| 32) |
1 * 599 |
599 |
| 33) |
0.33 + 8.48 |
8.81 |
| 34) |
4 - 530 |
-526 |
| 35) |
-2 * 57 |
-114 |
| 36) |
7 * 9 |
63 |
| 37) |
6148 - 862 |
5286 |
| 38) |
389 * 0.008 |
3.112 |
| 39) |
-92.2 + 554 |
461.8 |
| 40) |
-97 + 613 |
516 |
| 41) |
0.025 - -0.044 |
0.069 |
| 42) |
-0.3 * 5 |
-1.5 |
| 43) |
-49.2 + 36 |
-13.2 |
| 44) |
-440 + 8722 |
8282 |
| 45) |
0.003 + 0.086 |
0.089 |
| 46) |
0.4 - -4 |
4.4 |
| 47) |
5 - 37 |
-32 |
| 48) |
8 + -49 |
-41 |
| 49) |
-499 + 6165 |
5666 |
| 50) |
-8 + 8 |
0 |
| 51) |
8.47 + 0.7 |
9.17 |
| 52) |
0.1 + 7.53 |
7.63 |
| 53) |
191 + 3.6 |
194.6 |
| 54) |
9.22 + 0.19 |
9.41 |
| 55) |
-0.6 - 7 |
-7.6 |
| 56) |
51 - -5358 |
5409 |
| 57) |
76.5 + 0.03 |
76.53 |
| 58) |
450 / 2 |
225 |
| 59) |
-6 - -957 |
951 |
| 60) |
88.42 + 0.03 |
88.45 |
| 61) |
451.5 - 45.9 |
405.6 |
| 62) |
-3 + 68.7 |
65.7 |
| 63) |
38 + 3 |
41 |
| 64) |
-0.04 * 61 |
-2.44 |
| 65) |
6 - -1 |
7 |
| 66) |
-0.3 * 4.9 |
-1.47 |
| 67) |
-94 * 9 |
-846 |
| 68) |
0.09 - 0.04 |
0.05 |
| 69) |
309 - -28 |
337 |
| 70) |
-3 - 884 |
-887 |
| 71) |
-5 * 2 |
-10 |
| 72) |
9 + 7087 |
7096 |
| 73) |
-3 / 0.03 |
-100 |
| 74) |
3 - -5 |
8 |
| 75) |
-16 - 6 |
-22 |
| 76) |
-135.1 / -0.5 |
270.2 |
| 77) |
-0.89 + 75.9 |
75.01 |
| 78) |
310 - -7965 |
8275 |
| 79) |
7 / 0.02 |
350 |
| 80) |
8.436 - 0.313 |
8.123 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized