
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.9 - -62 |
62.9 |
| 2) |
98.5 - 8.7 |
89.8 |
| 3) |
3.4 + 0.4 |
3.8 |
| 4) |
5 * 0.805 |
4.025 |
| 5) |
560 - 62 |
498 |
| 6) |
65 + 316 |
381 |
| 7) |
1 - 16.4 |
-15.4 |
| 8) |
39 + -809 |
-770 |
| 9) |
424 * 2 |
848 |
| 10) |
44.7 * -20 |
-894 |
| 11) |
0.05 * -518 |
-25.9 |
| 12) |
0.15 + -6 |
-5.85 |
| 13) |
7 + 3975 |
3982 |
| 14) |
8 * -33 |
-264 |
| 15) |
56 - 1 |
55 |
| 16) |
-8 + 799 |
791 |
| 17) |
-6 - 8.1 |
-14.1 |
| 18) |
54 / 1.8 |
30 |
| 19) |
4 * 4.45 |
17.8 |
| 20) |
2 + 81.4 |
83.4 |
| 21) |
70 / 7 |
10 |
| 22) |
0.32 + 6.8 |
7.12 |
| 23) |
951 - -74 |
1025 |
| 24) |
-12.2 * 0.6 |
-7.32 |
| 25) |
39.98 - 0.08 |
39.9 |
| 26) |
5.9 / -1 |
-5.9 |
| 27) |
-6 + 14.52 |
8.52 |
| 28) |
0.313 + 7.819 |
8.132 |
| 29) |
0.36 + 0.06 |
0.42 |
| 30) |
-29 - 5 |
-34 |
| 31) |
6615 + -9 |
6606 |
| 32) |
8 - 0.4 |
7.6 |
| 33) |
0.07 * -36 |
-2.52 |
| 34) |
0.81 * 65 |
52.65 |
| 35) |
-0.9 * -69 |
62.1 |
| 36) |
2 - 4 |
-2 |
| 37) |
75.4 * 0.6 |
45.24 |
| 38) |
-1.2 - -100 |
98.8 |
| 39) |
6.37 - 9.1 |
-2.73 |
| 40) |
0.07 + 5 |
5.07 |
| 41) |
-6 + 0.6 |
-5.4 |
| 42) |
52.2 - 9.6 |
42.6 |
| 43) |
0.009 - -0.092 |
0.101 |
| 44) |
-33.4 * 1 |
-33.4 |
| 45) |
-995 + -3 |
-998 |
| 46) |
6 - 0.069 |
5.931 |
| 47) |
-0.42 - -3 |
2.58 |
| 48) |
-8.3 - -28 |
19.7 |
| 49) |
0.7 / 0.05 |
14 |
| 50) |
66 + -8 |
58 |
| 51) |
-779 + -15 |
-794 |
| 52) |
10 + -0.41 |
9.59 |
| 53) |
0.07 + -0.002 |
0.068 |
| 54) |
3 / -2 |
-1.5 |
| 55) |
-8 * 73 |
-584 |
| 56) |
14 - 0.7 |
13.3 |
| 57) |
439 + 0.7 |
439.7 |
| 58) |
0.09 * -69 |
-6.21 |
| 59) |
-0.001 - -0.035 |
0.034 |
| 60) |
1 - 5 |
-4 |
| 61) |
129 + 5 |
134 |
| 62) |
-9 + 0.21 |
-8.79 |
| 63) |
626 / 5 |
125.2 |
| 64) |
-3 + 8682 |
8679 |
| 65) |
5 * -0.472 |
-2.36 |
| 66) |
54 + 0.83 |
54.83 |
| 67) |
8.996 + -3 |
5.996 |
| 68) |
1.73 - -75 |
76.73 |
| 69) |
5.7 * 8 |
45.6 |
| 70) |
7 + 6.58 |
13.58 |
| 71) |
7.2 / -6 |
-1.2 |
| 72) |
0.225 + 4 |
4.225 |
| 73) |
6 - 0.949 |
5.051 |
| 74) |
-5.29 + 1 |
-4.29 |
| 75) |
-5 - 0.6 |
-5.6 |
| 76) |
2.5 + -7.8 |
-5.3 |
| 77) |
376 * 0.8 |
300.8 |
| 78) |
6163 - 2664 |
3499 |
| 79) |
2 - 637 |
-635 |
| 80) |
-459 + 7528 |
7069 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized