
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 - 1 |
-0.1 |
2) |
-491 + 6291 |
5800 |
3) |
6 + 0.04 |
6.04 |
4) |
36.9 + 0.68 |
37.58 |
5) |
529 / 1 |
529 |
6) |
-0.05 + 1.12 |
1.07 |
7) |
522 * 0.006 |
3.132 |
8) |
0.2 * 4082 |
816.4 |
9) |
-384 / 4 |
-96 |
10) |
29 - -0.1 |
29.1 |
11) |
7 + -102.1 |
-95.1 |
12) |
9 + 56 |
65 |
13) |
405 - 72 |
333 |
14) |
8 * 3 |
24 |
15) |
0.022 - -0.003 |
0.025 |
16) |
3 * 9 |
27 |
17) |
0.01 + 5 |
5.01 |
18) |
-0.5 * -6 |
3 |
19) |
4.72 + 25 |
29.72 |
20) |
6.92 + 24.23 |
31.15 |
21) |
6 - 8 |
-2 |
22) |
-11 - -23 |
12 |
23) |
539 - 425 |
114 |
24) |
-8 + -668 |
-676 |
25) |
8 - 0.082 |
7.918 |
26) |
0.4 + 17 |
17.4 |
27) |
-96 - 875 |
-971 |
28) |
-6 - -5 |
-1 |
29) |
0.2 * 1 |
0.2 |
30) |
84.6 + 9 |
93.6 |
31) |
964 + 3500 |
4464 |
32) |
0.001 - -0.6 |
0.601 |
33) |
-44 + -9 |
-53 |
34) |
9.62 - -2 |
11.62 |
35) |
-0.6 + 0.05 |
-0.55 |
36) |
51 + 42.6 |
93.6 |
37) |
874 - -90.1 |
964.1 |
38) |
9 - 0.006 |
8.994 |
39) |
3 - 0.084 |
2.916 |
40) |
0.006 + 3.1 |
3.106 |
41) |
-7 - -244 |
237 |
42) |
0.5 * 6 |
3 |
43) |
59 / -1 |
-59 |
44) |
-0.001 + 0.6 |
0.599 |
45) |
-223 - -776 |
553 |
46) |
0.4 * 9.5 |
3.8 |
47) |
0.3 / -0.006 |
-50 |
48) |
5930 + 3871 |
9801 |
49) |
-1 * 950 |
-950 |
50) |
-79.6 + -5 |
-84.6 |
51) |
839.8 + -7.2 |
832.6 |
52) |
-7 - 8.3 |
-15.3 |
53) |
3893 + -8 |
3885 |
54) |
-89 + 4910 |
4821 |
55) |
48 * 8 |
384 |
56) |
-4 + 6 |
2 |
57) |
-731.2 + 885 |
153.8 |
58) |
-9 + 853 |
844 |
59) |
454 + 3 |
457 |
60) |
57.6 * 6 |
345.6 |
61) |
503 - -8008 |
8511 |
62) |
2 * 0.9 |
1.8 |
63) |
6017 - 1384 |
4633 |
64) |
0.6 * 5 |
3 |
65) |
-1620 / 2.5 |
-648 |
66) |
5006 + 60 |
5066 |
67) |
94 + 3.06 |
97.06 |
68) |
74 / -4 |
-18.5 |
69) |
387 - -1 |
388 |
70) |
3 + -0.09 |
2.91 |
71) |
-90 - 112 |
-202 |
72) |
433.8 + 403 |
836.8 |
73) |
6688 + 8 |
6696 |
74) |
2 - -280 |
282 |
75) |
-0.01 * -2714 |
27.14 |
76) |
0.006 / 0.03 |
0.2 |
77) |
-466 - 168 |
-634 |
78) |
-75 + -73 |
-148 |
79) |
11 + -8 |
3 |
80) |
-8 / -0.5 |
16 |
|
|
Quick links:
Practice:
Easy |
Medium |
Hard
Test:
Easy |
Medium |
Hard
Customized