
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) |
-4.6 * 12 |
-55.2 |
| 2) |
951 - 5 |
946 |
| 3) |
-0.9 + -1 |
-1.9 |
| 4) |
12 * 186 |
2232 |
| 5) |
3 + 0.008 |
3.008 |
| 6) |
-8.33 - -1.1 |
-7.23 |
| 7) |
91.5 - 60.93 |
30.57 |
| 8) |
8.78 - -45.3 |
54.08 |
| 9) |
-4 - -3215 |
3211 |
| 10) |
678 - 0.8 |
677.2 |
| 11) |
3 + 2 |
5 |
| 12) |
36 * 0.78 |
28.08 |
| 13) |
48 + -242 |
-194 |
| 14) |
0.001 * 9832 |
9.832 |
| 15) |
0.02 * 0.05 |
0.001 |
| 16) |
-45 * -25 |
1125 |
| 17) |
0.001 * 63 |
0.063 |
| 18) |
-7 / 2 |
-3.5 |
| 19) |
0.4 - -43.57 |
43.97 |
| 20) |
-0.2 * -7 |
1.4 |
| 21) |
790 + 933 |
1723 |
| 22) |
-5 + 943 |
938 |
| 23) |
39 - 2 |
37 |
| 24) |
308 * 3 |
924 |
| 25) |
3 - -86 |
89 |
| 26) |
939 / 3 |
313 |
| 27) |
456 + 556 |
1012 |
| 28) |
-652 - -58 |
-594 |
| 29) |
0.36 + 4.74 |
5.1 |
| 30) |
2 * 0.104 |
0.208 |
| 31) |
-7 - 0.25 |
-7.25 |
| 32) |
-8 + 4 |
-4 |
| 33) |
7.5 - -65.8 |
73.3 |
| 34) |
-612 / -0.2 |
3060 |
| 35) |
-3 + 0.2 |
-2.8 |
| 36) |
0.04 - 0.008 |
0.032 |
| 37) |
5693 + 603 |
6296 |
| 38) |
448 - 66.2 |
381.8 |
| 39) |
26 - 346 |
-320 |
| 40) |
-0.41 + -3.8 |
-4.21 |
| 41) |
16 * 1 |
16 |
| 42) |
7 - -0.4 |
7.4 |
| 43) |
0.33 + 0.045 |
0.375 |
| 44) |
-0.006 + 9 |
8.994 |
| 45) |
316.9 - -63.8 |
380.7 |
| 46) |
5 * 0.031 |
0.155 |
| 47) |
7 - 0.003 |
6.997 |
| 48) |
42 + 256 |
298 |
| 49) |
27 * 1 |
27 |
| 50) |
27 - 0.09 |
26.91 |
| 51) |
8.1 - -169 |
177.1 |
| 52) |
0.08 + 8 |
8.08 |
| 53) |
632 + 47.2 |
679.2 |
| 54) |
145 * 15 |
2175 |
| 55) |
0.058 + -0.01 |
0.048 |
| 56) |
888 + 89 |
977 |
| 57) |
50 + 1956 |
2006 |
| 58) |
-96 * -0.081 |
7.776 |
| 59) |
335.4 - 202 |
133.4 |
| 60) |
946 + 65 |
1011 |
| 61) |
-3 / 0.1 |
-30 |
| 62) |
-49 + 6 |
-43 |
| 63) |
-349 - -4416 |
4067 |
| 64) |
5.9 + -0.9 |
5 |
| 65) |
0.06 / 0.02 |
3 |
| 66) |
-1 + -4 |
-5 |
| 67) |
0.8 / 0.5 |
1.6 |
| 68) |
3 * 9.9 |
29.7 |
| 69) |
-0.007 * -6 |
0.042 |
| 70) |
0.04 * 1 |
0.04 |
| 71) |
9664 + 8 |
9672 |
| 72) |
7.2 * 20 |
144 |
| 73) |
69 - -0.38 |
69.38 |
| 74) |
8.73 + 18 |
26.73 |
| 75) |
-647 + 1135 |
488 |
| 76) |
-67 / 1 |
-67 |
| 77) |
2 * -51 |
-102 |
| 78) |
18.5 / 0.4 |
46.25 |
| 79) |
4210 + 5348 |
9558 |
| 80) |
22.82 - 1 |
21.82 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized