
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.9 - -976 |
976.9 |
2) |
0.2 + 9 |
9.2 |
3) |
9 - 55.6 |
-46.6 |
4) |
5312 - 730 |
4582 |
5) |
-16 + 7513 |
7497 |
6) |
0.334 + 0.08 |
0.414 |
7) |
0.07 - -7.85 |
7.92 |
8) |
1.725 + -0.008 |
1.717 |
9) |
17.25 - 9.87 |
7.38 |
10) |
60.2 - -2.57 |
62.77 |
11) |
-493 + 6104 |
5611 |
12) |
9 / 0.096 |
93.75 |
13) |
2473 - 3109 |
-636 |
14) |
-6 / 2 |
-3 |
15) |
9 + 0.006 |
9.006 |
16) |
-442 - 8 |
-450 |
17) |
88 + -9.6 |
78.4 |
18) |
-30 - 79 |
-109 |
19) |
5.2 + 135 |
140.2 |
20) |
0.9 + -1 |
-0.1 |
21) |
97 + 98.5 |
195.5 |
22) |
-0.1 - 1 |
-1.1 |
23) |
-62 + 5567 |
5505 |
24) |
7 - 9.8 |
-2.8 |
25) |
167 - 1 |
166 |
26) |
902 + -57.8 |
844.2 |
27) |
397 - 9 |
388 |
28) |
0.1 + 0.002 |
0.102 |
29) |
-4.3 - 91 |
-95.3 |
30) |
0.5 + 2.7 |
3.2 |
31) |
0.04 - -41 |
41.04 |
32) |
-2 + 54 |
52 |
33) |
-3 * 8 |
-24 |
34) |
0.92 + 89.8 |
90.72 |
35) |
0.006 + 0.072 |
0.078 |
36) |
0.001 - -4.7 |
4.701 |
37) |
465 + 20 |
485 |
38) |
-0.05 * 79 |
-3.95 |
39) |
30.58 + 9.76 |
40.34 |
40) |
0.3 + 6 |
6.3 |
41) |
6295 - 11 |
6284 |
42) |
39 + 3245 |
3284 |
43) |
9 + 0.096 |
9.096 |
44) |
0.09 - 0.52 |
-0.43 |
45) |
2.3 + 0.274 |
2.574 |
46) |
-44 - 768 |
-812 |
47) |
7 + -0.06 |
6.94 |
48) |
0.06 + 9.63 |
9.69 |
49) |
4 - 0.03 |
3.97 |
50) |
62 - 6 |
56 |
51) |
0.5 + -41.8 |
-41.3 |
52) |
-5 / 0.1 |
-50 |
53) |
6322 + -5 |
6317 |
54) |
7 - -0.5 |
7.5 |
55) |
6 * 0.1 |
0.6 |
56) |
2.826 + 0.71 |
3.536 |
57) |
1.8 + -21 |
-19.2 |
58) |
37 - 58 |
-21 |
59) |
407 + 908 |
1315 |
60) |
-6.3 * 3 |
-18.9 |
61) |
8 * -2 |
-16 |
62) |
0.4 * 5 |
2 |
63) |
3 - -7.7 |
10.7 |
64) |
54.4 / -68 |
-0.8 |
65) |
5.1 - 0.067 |
5.033 |
66) |
6 * 0.9 |
5.4 |
67) |
2 + 28.35 |
30.35 |
68) |
1.1 - 0.91 |
0.19 |
69) |
5 - 0.495 |
4.505 |
70) |
-0.07 + 0.2 |
0.13 |
71) |
-60 + 4 |
-56 |
72) |
1 - 0.3 |
0.7 |
73) |
5 * 1.781 |
8.905 |
74) |
0.26 * 57 |
14.82 |
75) |
9 + -0.09 |
8.91 |
76) |
-68 + 321 |
253 |
77) |
0.4 - 0.004 |
0.396 |
78) |
5.1 * -17 |
-86.7 |
79) |
4 - 869 |
-865 |
80) |
9 * 106 |
954 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized