
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.6 - 4 |
-3.4 |
2) |
-85 - 35 |
-120 |
3) |
7 * 175 |
1225 |
4) |
75.3 / 0.5 |
150.6 |
5) |
642 + 8642 |
9284 |
6) |
9.3 - 3 |
6.3 |
7) |
2.53 - 8.45 |
-5.92 |
8) |
-90 - 0.4 |
-90.4 |
9) |
3 * -3 |
-9 |
10) |
-21.1 / -4 |
5.275 |
11) |
-0.07 + 0.95 |
0.88 |
12) |
1100 - -3908 |
5008 |
13) |
-7 - 0.6 |
-7.6 |
14) |
-0.09 + 5.51 |
5.42 |
15) |
44.11 + 52 |
96.11 |
16) |
279 - -9 |
288 |
17) |
37 - 110 |
-73 |
18) |
0.4 / 1 |
0.4 |
19) |
6 - -24 |
30 |
20) |
335 / 1 |
335 |
21) |
7 - 0.49 |
6.51 |
22) |
-2.43 - -93 |
90.57 |
23) |
0.9 - -0.056 |
0.956 |
24) |
-78 + 29 |
-49 |
25) |
6 / 0.005 |
1200 |
26) |
2 + 0.1 |
2.1 |
27) |
3007 + 29 |
3036 |
28) |
0.04 + 0.008 |
0.048 |
29) |
0.4 / 4 |
0.1 |
30) |
0.8 * -7.6 |
-6.08 |
31) |
-30 - 2 |
-32 |
32) |
7017 + 5 |
7022 |
33) |
5 * 67 |
335 |
34) |
-952 * -0.01 |
9.52 |
35) |
-5.56 + 6 |
0.44 |
36) |
-0.005 + 0.066 |
0.061 |
37) |
98 / 7 |
14 |
38) |
558 - -37 |
595 |
39) |
-68 + -862 |
-930 |
40) |
-50.7 - -0.9 |
-49.8 |
41) |
6 - -112 |
118 |
42) |
-795 / -0.3 |
2650 |
43) |
-0.7 - -58 |
57.3 |
44) |
-0.5 * 8 |
-4 |
45) |
1.905 * -2 |
-3.81 |
46) |
825 - 7 |
818 |
47) |
32.5 - 0.01 |
32.49 |
48) |
22 + -735 |
-713 |
49) |
573 * 0.02 |
11.46 |
50) |
6 - 0.06 |
5.94 |
51) |
2 * 0.139 |
0.278 |
52) |
49.35 + 3 |
52.35 |
53) |
0.2 - -9.72 |
9.92 |
54) |
-19 + 0.5 |
-18.5 |
55) |
-0.006 * 660 |
-3.96 |
56) |
8.8 + 34.5 |
43.3 |
57) |
3.1 + 834 |
837.1 |
58) |
9 - 92 |
-83 |
59) |
21.6 / 2.7 |
8 |
60) |
6 + -75 |
-69 |
61) |
-0.61 - -8 |
7.39 |
62) |
0.5 - -0.5 |
1 |
63) |
9939 - 5 |
9934 |
64) |
773 + -25 |
748 |
65) |
-444 - 272 |
-716 |
66) |
8 + 5 |
13 |
67) |
2380 - -379 |
2759 |
68) |
69.2 * 35 |
2422 |
69) |
5 + 19 |
24 |
70) |
8 * 523 |
4184 |
71) |
0.6 + -2 |
-1.4 |
72) |
-5.4 / 45 |
-0.12 |
73) |
-6 - 923 |
-929 |
74) |
53 * -7 |
-371 |
75) |
27.8 - 0.6 |
27.2 |
76) |
6 * 5 |
30 |
77) |
-6 * 2 |
-12 |
78) |
-313 + 946.3 |
633.3 |
79) |
-3 - -5 |
2 |
80) |
9 + -2.43 |
6.57 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized