
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) |
-45 + 926 |
881 |
| 2) |
5601 - 5 |
5596 |
| 3) |
6.4 + 6.78 |
13.18 |
| 4) |
759 - 3 |
756 |
| 5) |
-914 + 398 |
-516 |
| 6) |
131 * 0.2 |
26.2 |
| 7) |
377 + 98 |
475 |
| 8) |
-6.2 - -82.34 |
76.14 |
| 9) |
66 / -1 |
-66 |
| 10) |
8 * 0.4 |
3.2 |
| 11) |
0.07 * 0.2 |
0.014 |
| 12) |
2 - 50.5 |
-48.5 |
| 13) |
7482 + -7856 |
-374 |
| 14) |
0.38 * 20 |
7.6 |
| 15) |
14 - 84 |
-70 |
| 16) |
0.06 + -0.045 |
0.015 |
| 17) |
-30 + 3 |
-27 |
| 18) |
-35.5 - 43 |
-78.5 |
| 19) |
0.05 * 8.1 |
0.405 |
| 20) |
-53.05 - -67.19 |
14.14 |
| 21) |
880 - 660 |
220 |
| 22) |
0.02 * 8 |
0.16 |
| 23) |
-8 / -4 |
2 |
| 24) |
2 - -80 |
82 |
| 25) |
-9 / 0.09 |
-100 |
| 26) |
7188 - 653 |
6535 |
| 27) |
4 + -0.02 |
3.98 |
| 28) |
279 - 8 |
271 |
| 29) |
625 - 3 |
622 |
| 30) |
0.043 * 7 |
0.301 |
| 31) |
6.7 / 1 |
6.7 |
| 32) |
438 + 0.3 |
438.3 |
| 33) |
85 * 0.003 |
0.255 |
| 34) |
2.18 - -2 |
4.18 |
| 35) |
-4 + 690 |
686 |
| 36) |
5 * 3 |
15 |
| 37) |
-0.38 - -0.1 |
-0.28 |
| 38) |
-13 - 8 |
-21 |
| 39) |
9710 + -9402 |
308 |
| 40) |
-4 - -100 |
96 |
| 41) |
8 * 642 |
5136 |
| 42) |
7.26 - -58 |
65.26 |
| 43) |
-73 * 0.04 |
-2.92 |
| 44) |
8.6 * 8 |
68.8 |
| 45) |
-1 + 8.033 |
7.033 |
| 46) |
0.042 / 0.001 |
42 |
| 47) |
261 - 5 |
256 |
| 48) |
-6 + -8 |
-14 |
| 49) |
0.97 * 6 |
5.82 |
| 50) |
0.65 + 80 |
80.65 |
| 51) |
37 - -3216 |
3253 |
| 52) |
2 * 4 |
8 |
| 53) |
3.4 + -1.74 |
1.66 |
| 54) |
-38 - 54 |
-92 |
| 55) |
-105 / 42 |
-2.5 |
| 56) |
69 + -824 |
-755 |
| 57) |
3.66 - -2 |
5.66 |
| 58) |
-80 + -111 |
-191 |
| 59) |
903 + -53 |
850 |
| 60) |
-21 / -0.7 |
30 |
| 61) |
-193 + 2 |
-191 |
| 62) |
38.8 + -0.08 |
38.72 |
| 63) |
3 / 0.006 |
500 |
| 64) |
78 - -5.7 |
83.7 |
| 65) |
1.5 * -0.28 |
-0.42 |
| 66) |
262.7 + 86 |
348.7 |
| 67) |
0.08 + 59.5 |
59.58 |
| 68) |
740 + -17 |
723 |
| 69) |
763 - -7 |
770 |
| 70) |
-0.1 / -0.004 |
25 |
| 71) |
0.7 - -2 |
2.7 |
| 72) |
80 - 177.6 |
-97.6 |
| 73) |
-90 + 1 |
-89 |
| 74) |
0.666 / 0.045 |
14.8 |
| 75) |
-53.1 - -956.4 |
903.3 |
| 76) |
9 + -93 |
-84 |
| 77) |
47 - -531 |
578 |
| 78) |
0.33 / 0.11 |
3 |
| 79) |
-773 - -7 |
-766 |
| 80) |
-3.91 + -5.3 |
-9.21 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized