
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.7 + 66 |
66.7 |
2) |
-44 + 3 |
-41 |
3) |
-2 - 796 |
-798 |
4) |
-2 + 0.09 |
-1.91 |
5) |
552 - 2 |
550 |
6) |
-23 - -87.4 |
64.4 |
7) |
31 + 0.2 |
31.2 |
8) |
41 - -36 |
77 |
9) |
9 + -94 |
-85 |
10) |
-0.03 / 0.04 |
-0.75 |
11) |
3 - 4 |
-1 |
12) |
43 - 2.7 |
40.3 |
13) |
3 + -96 |
-93 |
14) |
-0.056 + 8 |
7.944 |
15) |
-95.3 - -8 |
-87.3 |
16) |
92 + 4 |
96 |
17) |
-686 + 3963 |
3277 |
18) |
0.7 * 765 |
535.5 |
19) |
-9.42 - 0.55 |
-9.97 |
20) |
3 * -0.6 |
-1.8 |
21) |
626 - 68.8 |
557.2 |
22) |
201 + -191.4 |
9.6 |
23) |
0.5 * 6.996 |
3.498 |
24) |
-0.005 * 2 |
-0.01 |
25) |
-1 + 8096 |
8095 |
26) |
3527 - -82 |
3609 |
27) |
0.006 + 0.6 |
0.606 |
28) |
-7 + 82 |
75 |
29) |
9 - 0.053 |
8.947 |
30) |
0.75 + -0.041 |
0.709 |
31) |
9 / 0.8 |
11.25 |
32) |
-7.3 + 6 |
-1.3 |
33) |
974.5 - 70 |
904.5 |
34) |
0.3 + 0.002 |
0.302 |
35) |
1.8 - -409.2 |
411 |
36) |
0.91 * -4 |
-3.64 |
37) |
8.8 + -0.087 |
8.713 |
38) |
0.009 + 2.8 |
2.809 |
39) |
480 - 13.8 |
466.2 |
40) |
7.8 + 24.89 |
32.69 |
41) |
-1 + 46.4 |
45.4 |
42) |
86 * 0.022 |
1.892 |
43) |
6.1 - 0.6 |
5.5 |
44) |
-0.8 + 0.7 |
-0.1 |
45) |
0.08 * 983 |
78.64 |
46) |
-0.06 * 3 |
-0.18 |
47) |
1833 + -172 |
1661 |
48) |
80.5 - 0.47 |
80.03 |
49) |
2.9 * 5 |
14.5 |
50) |
5 - -8419 |
8424 |
51) |
0.001 * 5214 |
5.214 |
52) |
822 + 912 |
1734 |
53) |
7 - 964 |
-957 |
54) |
-0.001 * -999 |
0.999 |
55) |
2 - -34 |
36 |
56) |
4902 - 4 |
4898 |
57) |
578 / -1 |
-578 |
58) |
202 / 1 |
202 |
59) |
350 + -354 |
-4 |
60) |
-3 * -5.4 |
16.2 |
61) |
-0.05 + -0.2 |
-0.25 |
62) |
0.578 - 0.07 |
0.508 |
63) |
-549 + 1 |
-548 |
64) |
328.3 + -50.8 |
277.5 |
65) |
9.9 + 9 |
18.9 |
66) |
4127 + 9 |
4136 |
67) |
-0.3 - 71 |
-71.3 |
68) |
2 / 0.08 |
25 |
69) |
48 - -8 |
56 |
70) |
61 - -16.66 |
77.66 |
71) |
9.12 + -0.6 |
8.52 |
72) |
-4.3 - 1.14 |
-5.44 |
73) |
15 + 638 |
653 |
74) |
0.02 + -0.03 |
-0.01 |
75) |
-487 * -0.009 |
4.383 |
76) |
-0.31 / -0.008 |
38.75 |
77) |
34 - 85.2 |
-51.2 |
78) |
0.72 * 82 |
59.04 |
79) |
0.01 - 4 |
-3.99 |
80) |
6 - -474 |
480 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized