
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) |
9367 / 1 |
9367 |
2) |
6.8 * 32 |
217.6 |
3) |
8 * 9 |
72 |
4) |
-51 - 85 |
-136 |
5) |
5 * 7.6 |
38 |
6) |
9 - -9135 |
9144 |
7) |
0.09 - -16.11 |
16.2 |
8) |
4 * 0.8 |
3.2 |
9) |
-0.92 * 5 |
-4.6 |
10) |
2.8 + 4.5 |
7.3 |
11) |
-0.3 * -2 |
0.6 |
12) |
-0.08 * -880 |
70.4 |
13) |
9237 + 99 |
9336 |
14) |
3 - 5 |
-2 |
15) |
0.6 * 2.8 |
1.68 |
16) |
7285 - 8 |
7277 |
17) |
1 + 9.3 |
10.3 |
18) |
0.869 + -0.006 |
0.863 |
19) |
-4 + -0.07 |
-4.07 |
20) |
-8 + 39 |
31 |
21) |
-8337 / -35 |
238.2 |
22) |
76 + 0.05 |
76.05 |
23) |
0.008 * -20 |
-0.16 |
24) |
8391 - 9241 |
-850 |
25) |
9 * 0.003 |
0.027 |
26) |
0.768 - 0.009 |
0.759 |
27) |
131 + -4.3 |
126.7 |
28) |
1 - -0.04 |
1.04 |
29) |
75.7 * 0.4 |
30.28 |
30) |
7 - 57 |
-50 |
31) |
0.003 * 4 |
0.012 |
32) |
-0.6 - 7 |
-7.6 |
33) |
20 * 41 |
820 |
34) |
3 - -81 |
84 |
35) |
-5 * 84 |
-420 |
36) |
0.2 - 0.006 |
0.194 |
37) |
80.37 + -0.06 |
80.31 |
38) |
-0.8 / 0.008 |
-100 |
39) |
59 + 0.8 |
59.8 |
40) |
-22 - 97 |
-119 |
41) |
-5 * 0.04 |
-0.2 |
42) |
8 * 0.006 |
0.048 |
43) |
-76 - -90 |
14 |
44) |
8.7 - -20.4 |
29.1 |
45) |
339 - 94 |
245 |
46) |
4414 - 68 |
4346 |
47) |
-5.61 + -2.2 |
-7.81 |
48) |
5.4 - 8.2 |
-2.8 |
49) |
79 + 7 |
86 |
50) |
2.4 + -0.016 |
2.384 |
51) |
730 * -0.012 |
-8.76 |
52) |
4.87 + 4 |
8.87 |
53) |
-0.024 + 2 |
1.976 |
54) |
6216 - 5127 |
1089 |
55) |
2 - 1.65 |
0.35 |
56) |
-9 * 5.7 |
-51.3 |
57) |
99 * 1 |
99 |
58) |
-0.08 - 8 |
-8.08 |
59) |
54.48 / 0.3 |
181.6 |
60) |
4930 + -96 |
4834 |
61) |
308 + 4133 |
4441 |
62) |
-5 + 7.26 |
2.26 |
63) |
-49 * -0.085 |
4.165 |
64) |
-9 + 8 |
-1 |
65) |
0.002 - -0.054 |
0.056 |
66) |
-8 + 9 |
1 |
67) |
90 + 0.3 |
90.3 |
68) |
0.273 / -0.7 |
-0.39 |
69) |
-2 * 73 |
-146 |
70) |
328 * 6 |
1968 |
71) |
119 - -8 |
127 |
72) |
44 - -72.3 |
116.3 |
73) |
-8.4 + 57 |
48.6 |
74) |
689 + -44 |
645 |
75) |
732.3 + 34 |
766.3 |
76) |
74.15 + 2.27 |
76.42 |
77) |
8 + 594 |
602 |
78) |
70 - 9 |
61 |
79) |
-348 + 69 |
-279 |
80) |
5 + -7 |
-2 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized