
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.26 - 0.23 |
0.03 |
2) |
4347 - 7 |
4340 |
3) |
61 - 3.5 |
57.5 |
4) |
6 - -815 |
821 |
5) |
98 - 9 |
89 |
6) |
-420 + 965 |
545 |
7) |
9.48 + -4 |
5.48 |
8) |
273 - 475 |
-202 |
9) |
57.5 + -33.1 |
24.4 |
10) |
7275 / 5 |
1455 |
11) |
0.08 - 8 |
-7.92 |
12) |
-87 - 9 |
-96 |
13) |
0.48 + 0.035 |
0.515 |
14) |
9 * -0.09 |
-0.81 |
15) |
-737 * -0.009 |
6.633 |
16) |
0.722 - 0.091 |
0.631 |
17) |
543 + 9234 |
9777 |
18) |
4 + 0.34 |
4.34 |
19) |
1.4 * 0.07 |
0.098 |
20) |
-21 + 801 |
780 |
21) |
6 / 3 |
2 |
22) |
77 * 0.001 |
0.077 |
23) |
0.6 * 0.8 |
0.48 |
24) |
0.7 + 7 |
7.7 |
25) |
823 + 41.3 |
864.3 |
26) |
9.1 + 0.2 |
9.3 |
27) |
-7 + -67 |
-74 |
28) |
1 - -9.4 |
10.4 |
29) |
0.62 + 89 |
89.62 |
30) |
-5 * -6.02 |
30.1 |
31) |
0.4 - -1 |
1.4 |
32) |
-17 * -0.5 |
8.5 |
33) |
0.08 + -0.007 |
0.073 |
34) |
5 * 0.43 |
2.15 |
35) |
7 + -0.01 |
6.99 |
36) |
-7 - 647 |
-654 |
37) |
0.4 + 0.07 |
0.47 |
38) |
1 - 4 |
-3 |
39) |
32 + 39 |
71 |
40) |
5.854 - 0.057 |
5.797 |
41) |
-30 + 9 |
-21 |
42) |
-0.3 - 8.23 |
-8.53 |
43) |
-3 / 0.5 |
-6 |
44) |
-3 + 686.9 |
683.9 |
45) |
0.03 - 8 |
-7.97 |
46) |
5 + 7 |
12 |
47) |
-1 + 911 |
910 |
48) |
9 * 0.711 |
6.399 |
49) |
0.9 + -0.006 |
0.894 |
50) |
-687 / 75 |
-9.16 |
51) |
856 - 2 |
854 |
52) |
0.006 + 0.06 |
0.066 |
53) |
0.02 - 0.001 |
0.019 |
54) |
2 + 3555 |
3557 |
55) |
-1 - 42.3 |
-43.3 |
56) |
80 + 134.1 |
214.1 |
57) |
8.35 - 0.31 |
8.04 |
58) |
8 - -998 |
1006 |
59) |
8 + 4 |
12 |
60) |
3439 + 123 |
3562 |
61) |
8 - 3.15 |
4.85 |
62) |
30.5 * 3 |
91.5 |
63) |
0.004 - -0.005 |
0.009 |
64) |
2 / -0.04 |
-50 |
65) |
1574 + 28 |
1602 |
66) |
-3 / 0.25 |
-12 |
67) |
3 + 2.44 |
5.44 |
68) |
74.7 - 45 |
29.7 |
69) |
4.2 - 39.9 |
-35.7 |
70) |
-94.9 - 3.5 |
-98.4 |
71) |
72.9 * 8 |
583.2 |
72) |
-35 + -10.2 |
-45.2 |
73) |
388.5 * 2 |
777 |
74) |
-590 + 221 |
-369 |
75) |
157.3 + 41 |
198.3 |
76) |
-0.006 + 2 |
1.994 |
77) |
29 - 0.7 |
28.3 |
78) |
-1 + 8925 |
8924 |
79) |
2 - -0.04 |
2.04 |
80) |
62 - 3 |
59 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized