
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.03 + 0.41 |
0.38 |
| 2) |
5 - -24 |
29 |
| 3) |
6.8 + -3 |
3.8 |
| 4) |
9.2 + 0.042 |
9.242 |
| 5) |
-0.2 * 0.3 |
-0.06 |
| 6) |
4.439 + 0.7 |
5.139 |
| 7) |
-33 * 0.17 |
-5.61 |
| 8) |
50 + 0.7 |
50.7 |
| 9) |
2867 - 5 |
2862 |
| 10) |
18.1 + 0.5 |
18.6 |
| 11) |
1.74 - 0.07 |
1.67 |
| 12) |
-1 * -46.97 |
46.97 |
| 13) |
-33 + 4.8 |
-28.2 |
| 14) |
-6 + 1.35 |
-4.65 |
| 15) |
566 - 7 |
559 |
| 16) |
8 - -0.158 |
8.158 |
| 17) |
-5 - -97 |
92 |
| 18) |
1 * 4 |
4 |
| 19) |
0.001 + 0.66 |
0.661 |
| 20) |
59 + -2 |
57 |
| 21) |
5076 + -14 |
5062 |
| 22) |
-3.96 - 4 |
-7.96 |
| 23) |
3 - -12.2 |
15.2 |
| 24) |
-0.015 * 6 |
-0.09 |
| 25) |
7 + 5.2 |
12.2 |
| 26) |
6.858 + -0.02 |
6.838 |
| 27) |
7 + 17.56 |
24.56 |
| 28) |
2 - 415 |
-413 |
| 29) |
1535 + 645 |
2180 |
| 30) |
5.36 + -1 |
4.36 |
| 31) |
0.02 + 9 |
9.02 |
| 32) |
55 + 54.8 |
109.8 |
| 33) |
8 * -8.8 |
-70.4 |
| 34) |
5 + 100.4 |
105.4 |
| 35) |
0.348 + 0.01 |
0.358 |
| 36) |
-87 + 93.55 |
6.55 |
| 37) |
5512 - 75 |
5437 |
| 38) |
0.035 - -5.034 |
5.069 |
| 39) |
4 / -0.005 |
-800 |
| 40) |
6 - -0.828 |
6.828 |
| 41) |
8.8 / -0.4 |
-22 |
| 42) |
0.049 + 8 |
8.049 |
| 43) |
58 - 68 |
-10 |
| 44) |
-7.28 + 0.6 |
-6.68 |
| 45) |
4 * 8 |
32 |
| 46) |
-7 + 0.3 |
-6.7 |
| 47) |
9 + 8 |
17 |
| 48) |
55 - 36.2 |
18.8 |
| 49) |
-7 - 8 |
-15 |
| 50) |
2 + 0.3 |
2.3 |
| 51) |
794 - 64.5 |
729.5 |
| 52) |
94.8 + 4 |
98.8 |
| 53) |
0.003 * 4 |
0.012 |
| 54) |
6290 - 652 |
5638 |
| 55) |
0.87 + 0.01 |
0.88 |
| 56) |
1 - 0.001 |
0.999 |
| 57) |
33 / 0.2 |
165 |
| 58) |
415.5 - 6 |
409.5 |
| 59) |
768 + 1 |
769 |
| 60) |
1255 * 6.4 |
8032 |
| 61) |
291 + -1.7 |
289.3 |
| 62) |
6785 * 0.008 |
54.28 |
| 63) |
-6 + 940.9 |
934.9 |
| 64) |
941.5 * 1 |
941.5 |
| 65) |
-6 + 642 |
636 |
| 66) |
0.051 * 35 |
1.785 |
| 67) |
-6.424 - -7.85 |
1.426 |
| 68) |
6.5 + 7.1 |
13.6 |
| 69) |
-48 + 15 |
-33 |
| 70) |
0.37 * 6 |
2.22 |
| 71) |
0.9 - -0.19 |
1.09 |
| 72) |
-347 * -0.006 |
2.082 |
| 73) |
8.23 - 0.998 |
7.232 |
| 74) |
-0.5 / -5 |
0.1 |
| 75) |
26.78 + 0.2 |
26.98 |
| 76) |
-110 - 6 |
-116 |
| 77) |
-864 - 58 |
-922 |
| 78) |
41 - 0.02 |
40.98 |
| 79) |
52 - 3.1 |
48.9 |
| 80) |
924 / -600 |
-1.54 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized