
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) |
44 * -14 |
-616 |
| 2) |
8 + 814 |
822 |
| 3) |
0.04 - 0.1 |
-0.06 |
| 4) |
5 * -6.82 |
-34.1 |
| 5) |
58.7 + 18 |
76.7 |
| 6) |
-9 - 78 |
-87 |
| 7) |
-36 * 3 |
-108 |
| 8) |
3251 - 115 |
3136 |
| 9) |
60 + 83 |
143 |
| 10) |
0.001 + 6.571 |
6.572 |
| 11) |
9.95 - -61 |
70.95 |
| 12) |
0.008 * 2245 |
17.96 |
| 13) |
50.8 - 72 |
-21.2 |
| 14) |
9.69 + -2.5 |
7.19 |
| 15) |
368 - -5728 |
6096 |
| 16) |
2 + 61 |
63 |
| 17) |
14.52 - 3 |
11.52 |
| 18) |
6 + 2.37 |
8.37 |
| 19) |
-5 + -65 |
-70 |
| 20) |
994 / -7 |
-142 |
| 21) |
0.481 - -7.09 |
7.571 |
| 22) |
-0.4 - 91.2 |
-91.6 |
| 23) |
-0.32 * -1.6 |
0.512 |
| 24) |
457 / 0.05 |
9140 |
| 25) |
6.965 + -0.85 |
6.115 |
| 26) |
37.88 / -4 |
-9.47 |
| 27) |
0.9 + 18 |
18.9 |
| 28) |
-3 - 3.2 |
-6.2 |
| 29) |
0.06 + 2.94 |
3 |
| 30) |
0.859 - 0.051 |
0.808 |
| 31) |
5.31 + -6 |
-0.69 |
| 32) |
248.3 - 7.9 |
240.4 |
| 33) |
0.02 * -55 |
-1.1 |
| 34) |
5 + -0.05 |
4.95 |
| 35) |
-91 - 62 |
-153 |
| 36) |
-9 * -0.001 |
0.009 |
| 37) |
-191 / 1 |
-191 |
| 38) |
1 - -916 |
917 |
| 39) |
-98 - 711 |
-809 |
| 40) |
99 - 32.5 |
66.5 |
| 41) |
260 + 5258 |
5518 |
| 42) |
395 - -8.1 |
403.1 |
| 43) |
5446 + -40 |
5406 |
| 44) |
5 - 32 |
-27 |
| 45) |
27 + 1 |
28 |
| 46) |
5.99 + -4 |
1.99 |
| 47) |
670 - -252 |
922 |
| 48) |
7354 + 7 |
7361 |
| 49) |
-0.07 * 27 |
-1.89 |
| 50) |
25 - -382 |
407 |
| 51) |
0.3 * 2608 |
782.4 |
| 52) |
23 + 9 |
32 |
| 53) |
-19.2 * -0.08 |
1.536 |
| 54) |
9 + -1.43 |
7.57 |
| 55) |
5 - 88 |
-83 |
| 56) |
0.099 + 0.704 |
0.803 |
| 57) |
2.5 + -0.009 |
2.491 |
| 58) |
7373 - -2 |
7375 |
| 59) |
1 * 4 |
4 |
| 60) |
166 * 1 |
166 |
| 61) |
0.06 / -0.02 |
-3 |
| 62) |
62 + -12.88 |
49.12 |
| 63) |
0.03 * 0.3 |
0.009 |
| 64) |
0.013 - -0.006 |
0.019 |
| 65) |
0.3 * 0.2 |
0.06 |
| 66) |
1 + -549 |
-548 |
| 67) |
7 * 0.033 |
0.231 |
| 68) |
74 + 3.7 |
77.7 |
| 69) |
-48 - -28.4 |
-19.6 |
| 70) |
54 + 12 |
66 |
| 71) |
-4 - -374 |
370 |
| 72) |
600 * 0.08 |
48 |
| 73) |
-8 + 617 |
609 |
| 74) |
-0.522 + 0.6 |
0.078 |
| 75) |
2 + 914 |
916 |
| 76) |
-247 / -0.304 |
812.5 |
| 77) |
0.008 * 49 |
0.392 |
| 78) |
264.4 - 73 |
191.4 |
| 79) |
4.3 + 14 |
18.3 |
| 80) |
44 * 151 |
6644 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized