
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) |
21 - -0.01 |
21.01 |
2) |
98.9 + -97.1 |
1.8 |
3) |
-2 + -995 |
-997 |
4) |
164 - 235 |
-71 |
5) |
-97 + 998 |
901 |
6) |
-40 * 6.5 |
-260 |
7) |
645 / 25 |
25.8 |
8) |
-274 + 21 |
-253 |
9) |
79 + 5 |
84 |
10) |
0.09 * 31.1 |
2.799 |
11) |
728.1 + -340 |
388.1 |
12) |
1 - -0.33 |
1.33 |
13) |
7 - 0.71 |
6.29 |
14) |
2 * 814 |
1628 |
15) |
-3 / 5 |
-0.6 |
16) |
-0.077 + 6 |
5.923 |
17) |
636 - -22.1 |
658.1 |
18) |
0.057 / 0.1 |
0.57 |
19) |
5 + -4 |
1 |
20) |
439 - 767 |
-328 |
21) |
-5 - 168 |
-173 |
22) |
-4 + 875 |
871 |
23) |
7.56 - -0.1 |
7.66 |
24) |
7 + -9 |
-2 |
25) |
0.06 - 0.63 |
-0.57 |
26) |
-0.8 + 377 |
376.2 |
27) |
0.2 - 70 |
-69.8 |
28) |
7 * 82 |
574 |
29) |
4 + 3 |
7 |
30) |
-0.19 / 0.2 |
-0.95 |
31) |
0.1 * 88.87 |
8.887 |
32) |
-53 - 33 |
-86 |
33) |
-0.7 * 0.8 |
-0.56 |
34) |
58 - -7647 |
7705 |
35) |
0.79 + 0.001 |
0.791 |
36) |
5 * 6 |
30 |
37) |
0.01 * 57 |
0.57 |
38) |
-32 / 25 |
-1.28 |
39) |
35 + 755 |
790 |
40) |
-54 * -5 |
270 |
41) |
-40 + 749.6 |
709.6 |
42) |
-0.8 - 2.01 |
-2.81 |
43) |
7860 + -385 |
7475 |
44) |
5 - 17 |
-12 |
45) |
3 - -5.1 |
8.1 |
46) |
87.7 + 29 |
116.7 |
47) |
228.5 - 0.4 |
228.1 |
48) |
328 + 5884 |
6212 |
49) |
0.452 + 1 |
1.452 |
50) |
0.009 + 7.3 |
7.309 |
51) |
4 - -0.83 |
4.83 |
52) |
-0.02 + 9 |
8.98 |
53) |
895 + 824 |
1719 |
54) |
5591 - 624 |
4967 |
55) |
83 - -94 |
177 |
56) |
2.6 + 76.42 |
79.02 |
57) |
-50 - -4.1 |
-45.9 |
58) |
-706 + 6 |
-700 |
59) |
0.26 / -0.4 |
-0.65 |
60) |
-606 + 6310 |
5704 |
61) |
9544 - 462 |
9082 |
62) |
-95 + 88 |
-7 |
63) |
3 * 1 |
3 |
64) |
0.049 + 0.006 |
0.055 |
65) |
0.01 + 5 |
5.01 |
66) |
74 + 55 |
129 |
67) |
-235 - -5 |
-230 |
68) |
780 - 78 |
702 |
69) |
-34 + 113 |
79 |
70) |
0.7 - -0.499 |
1.199 |
71) |
510 + -8 |
502 |
72) |
-770 + 7 |
-763 |
73) |
9 - 5.724 |
3.276 |
74) |
0.1 + 4.09 |
4.19 |
75) |
38.59 - -7 |
45.59 |
76) |
-0.6 / 3 |
-0.2 |
77) |
-57 * 0.2 |
-11.4 |
78) |
1.9 * 20 |
38 |
79) |
4.043 - 0.001 |
4.042 |
80) |
-5 + 97 |
92 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized