
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.616 + -0.002 |
0.614 |
| 2) |
21 * 5 |
105 |
| 3) |
-3 - -4 |
1 |
| 4) |
0.09 / 6 |
0.015 |
| 5) |
1.256 + -0.009 |
1.247 |
| 6) |
-0.6 + 210 |
209.4 |
| 7) |
-0.4 - 23 |
-23.4 |
| 8) |
1 * -3 |
-3 |
| 9) |
9.2 + 7.2 |
16.4 |
| 10) |
-0.05 + 0.6 |
0.55 |
| 11) |
4 - -7.25 |
11.25 |
| 12) |
9 + 89.13 |
98.13 |
| 13) |
-0.9 * 0.2 |
-0.18 |
| 14) |
-0.05 + 7 |
6.95 |
| 15) |
1693 - -6 |
1699 |
| 16) |
0.02 * 8 |
0.16 |
| 17) |
2482 - 876 |
1606 |
| 18) |
6 - 7 |
-1 |
| 19) |
8.9 - 77.2 |
-68.3 |
| 20) |
-4 / 1 |
-4 |
| 21) |
25 + 3 |
28 |
| 22) |
17 + -0.18 |
16.82 |
| 23) |
0.07 - 0.73 |
-0.66 |
| 24) |
-46 + -743 |
-789 |
| 25) |
0.8 - -0.03 |
0.83 |
| 26) |
-0.075 * 388 |
-29.1 |
| 27) |
100 + -4.7 |
95.3 |
| 28) |
-67 - 0.6 |
-67.6 |
| 29) |
-9 + 6.21 |
-2.79 |
| 30) |
0.5 - -2 |
2.5 |
| 31) |
7 + 98 |
105 |
| 32) |
-0.05 + -0.11 |
-0.16 |
| 33) |
659.6 + -50 |
609.6 |
| 34) |
5 * 0.001 |
0.005 |
| 35) |
-4.38 + 58.8 |
54.42 |
| 36) |
-73 * 8 |
-584 |
| 37) |
-887 + 5 |
-882 |
| 38) |
82 * 34 |
2788 |
| 39) |
82 - -455 |
537 |
| 40) |
89.62 - -9 |
98.62 |
| 41) |
4.865 - 4.39 |
0.475 |
| 42) |
-31.55 * -0.2 |
6.31 |
| 43) |
1 + -4 |
-3 |
| 44) |
-0.58 - -21 |
20.42 |
| 45) |
2.365 * 8 |
18.92 |
| 46) |
-0.544 + 5.2 |
4.656 |
| 47) |
0.81 - 0.008 |
0.802 |
| 48) |
4 * 1430 |
5720 |
| 49) |
1 + 337 |
338 |
| 50) |
24.3 - -0.68 |
24.98 |
| 51) |
240.6 - -16 |
256.6 |
| 52) |
207.7 + 5 |
212.7 |
| 53) |
70 * -3.8 |
-266 |
| 54) |
8.9 + 1 |
9.9 |
| 55) |
0.571 - -0.002 |
0.573 |
| 56) |
-2 * 0.04 |
-0.08 |
| 57) |
8 - 34.9 |
-26.9 |
| 58) |
30 + -5.87 |
24.13 |
| 59) |
3 - -4770 |
4773 |
| 60) |
3 + -1.237 |
1.763 |
| 61) |
-46.1 + 184 |
137.9 |
| 62) |
9.929 - 8.626 |
1.303 |
| 63) |
0.95 + -8.9 |
-7.95 |
| 64) |
2 - 0.83 |
1.17 |
| 65) |
693 - 6 |
687 |
| 66) |
127 + -52.3 |
74.7 |
| 67) |
1 - -448 |
449 |
| 68) |
1 + 4 |
5 |
| 69) |
-44 + 9553 |
9509 |
| 70) |
-0.129 / -0.1 |
1.29 |
| 71) |
0.9 * 5 |
4.5 |
| 72) |
1.37 + 0.7 |
2.07 |
| 73) |
14 - -468 |
482 |
| 74) |
-48.5 - 3 |
-51.5 |
| 75) |
5755 + 9 |
5764 |
| 76) |
538 + 44 |
582 |
| 77) |
3.72 + 40 |
43.72 |
| 78) |
5.1 + -5 |
0.1 |
| 79) |
635 - -3346 |
3981 |
| 80) |
-0.05 + 61 |
60.95 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized