
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) |
8 * 0.64 |
5.12 |
| 2) |
-80 + 881 |
801 |
| 3) |
8.83 + 5.61 |
14.44 |
| 4) |
270 - 778 |
-508 |
| 5) |
7.047 + 0.065 |
7.112 |
| 6) |
317 * 7 |
2219 |
| 7) |
7 + 2 |
9 |
| 8) |
9.72 - 0.03 |
9.69 |
| 9) |
-204.3 / -6.81 |
30 |
| 10) |
14 - 5.02 |
8.98 |
| 11) |
5.6 + 5 |
10.6 |
| 12) |
0.01 - 9 |
-8.99 |
| 13) |
54 + -7.6 |
46.4 |
| 14) |
6 * 95 |
570 |
| 15) |
35 + 7 |
42 |
| 16) |
6 * 1.117 |
6.702 |
| 17) |
-3 - 606 |
-609 |
| 18) |
58 * -0.35 |
-20.3 |
| 19) |
18.1 - -981 |
999.1 |
| 20) |
2449 - 49 |
2400 |
| 21) |
75 / 0.06 |
1250 |
| 22) |
373 + 86 |
459 |
| 23) |
4.9 / 2 |
2.45 |
| 24) |
4.3 * 2 |
8.6 |
| 25) |
-1 + -3 |
-4 |
| 26) |
47 * -0.05 |
-2.35 |
| 27) |
8368 + -619 |
7749 |
| 28) |
-118 - -28 |
-90 |
| 29) |
8 * -6 |
-48 |
| 30) |
-7 * -67 |
469 |
| 31) |
6.227 - 2 |
4.227 |
| 32) |
-0.09 + 1.2 |
1.11 |
| 33) |
3 + -6 |
-3 |
| 34) |
7813 + 58 |
7871 |
| 35) |
666.4 / -8 |
-83.3 |
| 36) |
-3 * 9.2 |
-27.6 |
| 37) |
-0.5 - -527 |
526.5 |
| 38) |
96.5 + 2.1 |
98.6 |
| 39) |
262 * 0.7 |
183.4 |
| 40) |
784 - 15 |
769 |
| 41) |
0.7 * 749 |
524.3 |
| 42) |
2 + 27.6 |
29.6 |
| 43) |
42 - 564 |
-522 |
| 44) |
0.06 + 0.642 |
0.702 |
| 45) |
-83 - 50 |
-133 |
| 46) |
-6 + 7099 |
7093 |
| 47) |
833 - -1371 |
2204 |
| 48) |
0.975 + 0.003 |
0.978 |
| 49) |
7 - 383 |
-376 |
| 50) |
443 - 68.8 |
374.2 |
| 51) |
8.12 + 9 |
17.12 |
| 52) |
48 - -4950 |
4998 |
| 53) |
-0.043 - -9 |
8.957 |
| 54) |
0.01 + 4 |
4.01 |
| 55) |
20 + 54 |
74 |
| 56) |
2 - 0.16 |
1.84 |
| 57) |
4616 + 979 |
5595 |
| 58) |
-6 - 42 |
-48 |
| 59) |
-0.9 / -900 |
0.001 |
| 60) |
633 - -5.6 |
638.6 |
| 61) |
0.007 + 0.8 |
0.807 |
| 62) |
28 + -25.82 |
2.18 |
| 63) |
5 * 2.99 |
14.95 |
| 64) |
-824 * -0.8 |
659.2 |
| 65) |
61 + -2 |
59 |
| 66) |
40.8 - -0.05 |
40.85 |
| 67) |
0.009 - 0.007 |
0.002 |
| 68) |
962 + 381 |
1343 |
| 69) |
863 - 36.6 |
826.4 |
| 70) |
75 + -6 |
69 |
| 71) |
0.07 - -8 |
8.07 |
| 72) |
32 + 37 |
69 |
| 73) |
200 - 0.6 |
199.4 |
| 74) |
892 + -65 |
827 |
| 75) |
93 + 412 |
505 |
| 76) |
65 * -0.076 |
-4.94 |
| 77) |
0.08 + 0.6 |
0.68 |
| 78) |
3.6 + -9.8 |
-6.2 |
| 79) |
3.4 - -155.7 |
159.1 |
| 80) |
7 + 5.02 |
12.02 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized