
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.5 * -57 |
28.5 |
| 2) |
-878 - -7819 |
6941 |
| 3) |
0.9 * -62 |
-55.8 |
| 4) |
0.6 * 0.12 |
0.072 |
| 5) |
734 - 79 |
655 |
| 6) |
-4 + 6.38 |
2.38 |
| 7) |
3690 + 447 |
4137 |
| 8) |
0.5 - 86.6 |
-86.1 |
| 9) |
-7 - -6.57 |
-0.43 |
| 10) |
74 * 24 |
1776 |
| 11) |
0.07 - 1 |
-0.93 |
| 12) |
5 + 8 |
13 |
| 13) |
8.12 - -2 |
10.12 |
| 14) |
80.4 + 560 |
640.4 |
| 15) |
940 * 0.001 |
0.94 |
| 16) |
7 - -0.062 |
7.062 |
| 17) |
0.7 + -282.7 |
-282 |
| 18) |
1 + 1.18 |
2.18 |
| 19) |
893 - 4.3 |
888.7 |
| 20) |
-631 + 6140 |
5509 |
| 21) |
2 - -0.126 |
2.126 |
| 22) |
-56 * 0.8 |
-44.8 |
| 23) |
0.8 - -0.5 |
1.3 |
| 24) |
94.58 + 0.03 |
94.61 |
| 25) |
7 - 37 |
-30 |
| 26) |
803 - 506 |
297 |
| 27) |
3494 + 6449 |
9943 |
| 28) |
0.07 * 6.2 |
0.434 |
| 29) |
65 + 3 |
68 |
| 30) |
0.97 - -7 |
7.97 |
| 31) |
-0.082 * -35 |
2.87 |
| 32) |
91.58 + -0.4 |
91.18 |
| 33) |
0.003 + 1 |
1.003 |
| 34) |
0.6 - 4 |
-3.4 |
| 35) |
0.001 + 0.426 |
0.427 |
| 36) |
7 * 0.5 |
3.5 |
| 37) |
523 - -9208 |
9731 |
| 38) |
49.8 + 0.06 |
49.86 |
| 39) |
66 + 89 |
155 |
| 40) |
557 - 64 |
493 |
| 41) |
-0.004 + 0.01 |
0.006 |
| 42) |
5 * 8 |
40 |
| 43) |
9.64 - -0.02 |
9.66 |
| 44) |
0.029 * 7 |
0.203 |
| 45) |
6680 - -9 |
6689 |
| 46) |
0.7 * 18 |
12.6 |
| 47) |
1.441 + 6.3 |
7.741 |
| 48) |
-82 * -4 |
328 |
| 49) |
0.018 * 77 |
1.386 |
| 50) |
-9 - 5 |
-14 |
| 51) |
-62 + 58 |
-4 |
| 52) |
852 - 94 |
758 |
| 53) |
-94 + -0.2 |
-94.2 |
| 54) |
45 - 0.25 |
44.75 |
| 55) |
1 + 491 |
492 |
| 56) |
-0.9 + 85.32 |
84.42 |
| 57) |
55 * 1.62 |
89.1 |
| 58) |
-4 + -0.83 |
-4.83 |
| 59) |
2641 - -1 |
2642 |
| 60) |
0.04 * 0.6 |
0.024 |
| 61) |
-9 / -0.8 |
11.25 |
| 62) |
23 * 50 |
1150 |
| 63) |
41 - 0.38 |
40.62 |
| 64) |
-62 - 9 |
-71 |
| 65) |
0.3 - -0.16 |
0.46 |
| 66) |
-198 - -5065 |
4867 |
| 67) |
84 - -5.11 |
89.11 |
| 68) |
54 + 3 |
57 |
| 69) |
-0.8 - -9 |
8.2 |
| 70) |
0.57 + 38.74 |
39.31 |
| 71) |
-3 - 1 |
-4 |
| 72) |
0.966 * 5 |
4.83 |
| 73) |
52.4 + 0.4 |
52.8 |
| 74) |
0.28 - 9.3 |
-9.02 |
| 75) |
8756 - 4 |
8752 |
| 76) |
-60 + 0.1 |
-59.9 |
| 77) |
-0.07 - -63 |
62.93 |
| 78) |
-3 + 69 |
66 |
| 79) |
0.94 * 7 |
6.58 |
| 80) |
0.006 + 0.127 |
0.133 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized