
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) |
-4.4 + 1 |
-3.4 |
| 2) |
0.4 * 11.09 |
4.436 |
| 3) |
-2 + -70.5 |
-72.5 |
| 4) |
-0.04 - -5.3 |
5.26 |
| 5) |
0.07 + -8.45 |
-8.38 |
| 6) |
18 - 80 |
-62 |
| 7) |
27 - 97 |
-70 |
| 8) |
-0.065 * -688 |
44.72 |
| 9) |
61 + -0.6 |
60.4 |
| 10) |
2.22 - -0.02 |
2.24 |
| 11) |
-4 * 7 |
-28 |
| 12) |
50 - 556 |
-506 |
| 13) |
-91 * -7.4 |
673.4 |
| 14) |
-84 - 8.6 |
-92.6 |
| 15) |
0.2 + -2 |
-1.8 |
| 16) |
-9.6 - 3.6 |
-13.2 |
| 17) |
405 + -8.2 |
396.8 |
| 18) |
-7 * 0.07 |
-0.49 |
| 19) |
692 + -12 |
680 |
| 20) |
45 - 4 |
41 |
| 21) |
6.2 + 146 |
152.2 |
| 22) |
-754 + 9 |
-745 |
| 23) |
-47 * -0.09 |
4.23 |
| 24) |
-985 + 3 |
-982 |
| 25) |
-0.6 + 0.6 |
0 |
| 26) |
0.82 - -0.05 |
0.87 |
| 27) |
-56.4 / 0.6 |
-94 |
| 28) |
-1.6 - -0.2 |
-1.4 |
| 29) |
8.732 - 0.09 |
8.642 |
| 30) |
17 + -0.8 |
16.2 |
| 31) |
90.22 + -52 |
38.22 |
| 32) |
727 * 0.09 |
65.43 |
| 33) |
-8416 / -8 |
1052 |
| 34) |
707 + 7.4 |
714.4 |
| 35) |
-8 * -0.007 |
0.056 |
| 36) |
0.8 + 2 |
2.8 |
| 37) |
648 * 0.04 |
25.92 |
| 38) |
284 + -424 |
-140 |
| 39) |
1 * 0.74 |
0.74 |
| 40) |
-3 * 6.1 |
-18.3 |
| 41) |
-2.76 - -7.73 |
4.97 |
| 42) |
92.4 - 2 |
90.4 |
| 43) |
62 - 14 |
48 |
| 44) |
-50 + -3 |
-53 |
| 45) |
0.007 + 0.7 |
0.707 |
| 46) |
2 * -4 |
-8 |
| 47) |
-1 + -216 |
-217 |
| 48) |
-50 * 0.02 |
-1 |
| 49) |
49.8 / 5 |
9.96 |
| 50) |
8.6 + -0.03 |
8.57 |
| 51) |
-9.46 - -4 |
-5.46 |
| 52) |
-26 + 509 |
483 |
| 53) |
35 - -2 |
37 |
| 54) |
0.6 + 14 |
14.6 |
| 55) |
4 - 3.59 |
0.41 |
| 56) |
78.2 + 74 |
152.2 |
| 57) |
69 - 0.4 |
68.6 |
| 58) |
2 - -989.4 |
991.4 |
| 59) |
15.3 / 10 |
1.53 |
| 60) |
94 + -0.74 |
93.26 |
| 61) |
5 - -3.462 |
8.462 |
| 62) |
6.776 - -2 |
8.776 |
| 63) |
-83 * 0.06 |
-4.98 |
| 64) |
-9 - 70 |
-79 |
| 65) |
4829 + 7 |
4836 |
| 66) |
-763 + 9908 |
9145 |
| 67) |
0.4 / -0.08 |
-5 |
| 68) |
-2 * -0.6 |
1.2 |
| 69) |
2 * 918 |
1836 |
| 70) |
46.9 - 0.39 |
46.51 |
| 71) |
690 / 6 |
115 |
| 72) |
-92 - 802 |
-894 |
| 73) |
4.8 + 0.005 |
4.805 |
| 74) |
87.74 - 5 |
82.74 |
| 75) |
2.2 + -0.027 |
2.173 |
| 76) |
-0.076 - -0.1 |
0.024 |
| 77) |
5.48 - -6 |
11.48 |
| 78) |
6 + 3482 |
3488 |
| 79) |
0.727 + 1 |
1.727 |
| 80) |
-974 + 383 |
-591 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized