// Numbas version: exam_results_page_options {"navigation": {"allowregen": false, "showresultspage": "oncompletion", "browse": true, "onleave": {"action": "none", "message": ""}, "showfrontpage": true, "reverse": true, "preventleave": true}, "feedback": {"showtotalmark": true, "showanswerstate": true, "allowrevealanswer": false, "showactualmark": true, "intro": "", "feedbackmessages": [], "advicethreshold": 0}, "showstudentname": true, "showQuestionGroupNames": false, "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": ""}, "name": "Junlei's copy of Exam Test 2 (2015)", "duration": 10800, "timing": {"timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}, "allowPause": false}, "question_groups": [{"pickingStrategy": "all-ordered", "name": "Group", "pickQuestions": 1, "questions": [{"name": "2015-1a", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "preamble": {"js": "", "css": ""}, "statement": "", "ungrouped_variables": ["int", "d", "interest", "i4", "nominal"], "variables": {"d": {"description": "", "group": "Ungrouped variables", "definition": "1-(1-({int}/100)/12)^12", "name": "d", "templateType": "anything"}, "i4": {"description": "", "group": "Ungrouped variables", "definition": "(((1+{interest})^(1/4))-1)*4", "name": "i4", "templateType": "anything"}, "interest": {"description": "", "group": "Ungrouped variables", "definition": "{d}/(1-{d})", "name": "interest", "templateType": "anything"}, "int": {"description": "", "group": "Ungrouped variables", "definition": "random(5..9#1)", "name": "int", "templateType": "randrange"}, "nominal": {"description": "", "group": "Ungrouped variables", "definition": "{i4}*100", "name": "nominal", "templateType": "anything"}}, "variable_groups": [], "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "", "rulesets": {}, "parts": [{"type": "gapfill", "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "gaps": [{"type": "numberentry", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "unitTests": [], "minValue": "{nominal}-0.2", "variableReplacements": [], "marks": 1, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "mustBeReduced": false, "maxValue": "{nominal}+0.2", "scripts": {}, "showCorrectAnswer": true, "showFeedbackIcon": true, "correctAnswerFraction": false}], "unitTests": [], "showCorrectAnswer": true, "variableReplacements": [], "marks": 0, "extendBaseMarkingAlgorithm": true, "prompt": "

Find the nominal interest rate convertible quarterly which is equivalent to a nominal discount rate of {int}% per annum convertible monthly. 

\n

Interest rate Convertible quarterly: [[0]]%

", "sortAnswers": false, "scripts": {}, "showFeedbackIcon": true}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "type": "question"}, {"name": "2015-1b", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "variable_groups": [], "parts": [{"gaps": [{"correctAnswerFraction": false, "unitTests": [], "minValue": "{a1}-0.1", "showCorrectAnswer": true, "showFeedbackIcon": true, "allowFractions": false, "marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReduced": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "maxValue": "{a1}+0.1", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}, {"correctAnswerFraction": false, "unitTests": [], "minValue": "{a2}-0.1", "showCorrectAnswer": true, "showFeedbackIcon": true, "allowFractions": false, "marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReduced": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "maxValue": "{a2}+0.1", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}, {"correctAnswerFraction": false, "unitTests": [], "minValue": "{a3}-0.1", "showCorrectAnswer": true, "showFeedbackIcon": true, "allowFractions": false, "marks": 1, "variableReplacements": [], "correctAnswerStyle": "plain", "type": "numberentry", "mustBeReduced": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "maxValue": "{a3}+0.1", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst"}], "marks": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "unitTests": [], "type": "gapfill", "variableReplacements": [], "prompt": "

Determine the amount to which the initial £1,000 will accumulate at the end of each of the three years. 

\n

First Year: £[[0]],

\n

Second Year: £[[1]],

\n

Third Year: £[[2]].

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true}], "preamble": {"css": "", "js": ""}, "advice": "", "variables": {"a2": {"templateType": "anything", "group": "Ungrouped variables", "name": "a2", "description": "", "definition": "{a1}*(1-({int1}/100)/4)^(-4)"}, "a1": {"templateType": "anything", "group": "Ungrouped variables", "name": "a1", "description": "", "definition": "1000*(1+({int}/100)/12)^12"}, "a3": {"templateType": "anything", "group": "Ungrouped variables", "name": "a3", "description": "", "definition": "{a2}*e^(0.1)"}, "int1": {"templateType": "randrange", "group": "Ungrouped variables", "name": "int1", "description": "", "definition": "random(6..8#1)"}, "int": {"templateType": "randrange", "group": "Ungrouped variables", "name": "int", "description": "", "definition": "random(4..6#1)"}}, "statement": "

 The amount of £1,000 is paid into a savings account on which interest is earned as follows:

\n

During the \ufb01rst year, interest is earned at a nominal rate of interest of {int}% per annum convertible monthly;

\n

during the second year, interest is earned at a nominal rate of discount of {int1}% per annum convertible quarterly;

\n

during the third year, interest is earned at a force of interest δ(t) per annum at time t where δ(t) = 0.04t for 2 < t < 3. 

", "ungrouped_variables": ["a1", "a2", "a3", "int", "int1"], "rulesets": {}, "tags": [], "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"licence": "None specified", "description": ""}, "type": "question"}, {"name": "2015-2a", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "preamble": {"css": "", "js": ""}, "variables": {"i1": {"group": "Ungrouped variables", "name": "i1", "description": "", "templateType": "number", "definition": "0.08"}, "i2": {"group": "Ungrouped variables", "name": "i2", "description": "", "templateType": "number", "definition": "0.09"}, "irr": {"group": "Ungrouped variables", "name": "irr", "description": "", "templateType": "anything", "definition": "({i1}+(0-{npv1})(({i2}-{i1})/({npv2}-{npv1})))*100"}, "npv1": {"group": "Ungrouped variables", "name": "npv1", "description": "", "templateType": "anything", "definition": "-500-200/(1+{i1})^2+1000/(1+{i1})^5"}, "npv2": {"group": "Ungrouped variables", "name": "npv2", "description": "", "templateType": "anything", "definition": "-500-200/(1+{i2})^2+1000/(1+{i2})^5"}}, "tags": [], "statement": "

In return for an immediate payment of £500 and a further payment of £200 two years from now, aninvestor will receive £1,000 after 5 years.

\n

", "parts": [{"marks": 0, "showCorrectAnswer": true, "type": "gapfill", "showFeedbackIcon": true, "gaps": [{"correctAnswerStyle": "plain", "marks": 1, "showCorrectAnswer": true, "type": "numberentry", "showFeedbackIcon": true, "allowFractions": false, "mustBeReduced": false, "minValue": "{irr}-0.5", "mustBeReducedPC": 0, "variableReplacements": [], "unitTests": [], "maxValue": "{irr}+0.5", "extendBaseMarkingAlgorithm": true, "correctAnswerFraction": false, "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst"}], "variableReplacements": [], "prompt": "

Calculatethe internal rate of return(IRR)of the transaction using the linear interpolation method. 

\n

IRR: [[0]] %

", "unitTests": [], "extendBaseMarkingAlgorithm": true, "scripts": {}, "sortAnswers": false, "customMarkingAlgorithm": "", "variableReplacementStrategy": "originalfirst"}], "metadata": {"licence": "All rights reserved", "description": ""}, "functions": {}, "rulesets": {}, "advice": "", "variablesTest": {"condition": "", "maxRuns": 100}, "variable_groups": [], "ungrouped_variables": ["irr", "i1", "i2", "npv1", "npv2"], "type": "question"}, {"name": "2015-2b", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "preamble": {"js": "", "css": ""}, "statement": "

A company wants to invest £30 million into a new project that costs £50 million. The company proposes to borrow the remaining £20 million for the project at a force of interest of {force}% per annum. Repayments can be made in part or in whole at any time, and positive cash balances can be invested to yield {int}% per annum. The project will produce an income of £8 million per annum, payable continuously for the next 5 years. Furthermore, the investor expects to receive a \ufb01nal income of £25 million at the end of year 5. 

", "ungrouped_variables": ["force", "int", "Dpp", "Profit", "sn"], "variables": {"sn": {"description": "", "group": "Ungrouped variables", "definition": "((1+{int}/100)^(5-{dpp})-1)/(ln(1+{int}/100))", "name": "sn", "templateType": "anything"}, "Dpp": {"description": "", "group": "Ungrouped variables", "definition": "ln(1-(20/8)*({force}/100))/(-{force}/100)", "name": "Dpp", "templateType": "anything"}, "force": {"description": "", "group": "Ungrouped variables", "definition": "random(4..8#1)", "name": "force", "templateType": "randrange"}, "int": {"description": "", "group": "Ungrouped variables", "definition": "random(4..6#1)", "name": "int", "templateType": "randrange"}, "Profit": {"description": "", "group": "Ungrouped variables", "definition": "25+8{sn}-30(1+{int}/100)^5", "name": "Profit", "templateType": "anything"}}, "variable_groups": [], "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "", "rulesets": {}, "parts": [{"type": "gapfill", "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "gaps": [{"type": "numberentry", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "unitTests": [], "minValue": "{dpp}-0.3", "variableReplacements": [], "marks": 1, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "mustBeReduced": false, "maxValue": "{dpp}+0.3", "scripts": {}, "showCorrectAnswer": true, "showFeedbackIcon": true, "correctAnswerFraction": false}], "unitTests": [], "showCorrectAnswer": true, "variableReplacements": [], "marks": 0, "extendBaseMarkingAlgorithm": true, "prompt": "

Find the discounted payback period (DPP) for the £20 million loan if the company is using all pro\ufb01ts associated with this project to repay the loan as soon as possible

\n

Discounted Payback Period: [[0]] Years.

", "sortAnswers": false, "scripts": {}, "showFeedbackIcon": true}, {"type": "gapfill", "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "gaps": [{"type": "numberentry", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "unitTests": [], "minValue": "{profit}-0.5", "variableReplacements": [], "marks": 1, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "mustBeReduced": false, "maxValue": "{profit}+0.5", "scripts": {}, "showCorrectAnswer": true, "showFeedbackIcon": true, "correctAnswerFraction": false}], "unitTests": [], "showCorrectAnswer": true, "variableReplacements": [], "marks": 0, "extendBaseMarkingAlgorithm": true, "prompt": "

 Find the accumulated pro\ufb01t of the investment.

\n

Profit: £[[0]] Millions

", "sortAnswers": false, "scripts": {}, "showFeedbackIcon": true}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "type": "question"}, {"name": "2015-3a", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "preamble": {"js": "", "css": ""}, "statement": "

You plan to accumulate £100,000 at the end of 42 years by making the following deposits:

\n

X at the beginning of years 1 to 14;

\n

No deposits at the beginning of years 15 to 32;

\n

and Y at the beginning of years 33 to 42.

\n

The annual effective interest rate is {int}%.

", "ungrouped_variables": ["int", "Sna", "d", "y"], "variables": {"y": {"description": "", "group": "Ungrouped variables", "definition": "(100000-{sna}*100)/({sna}+(((1+{int}/100)^10-1)/{d}))", "name": "y", "templateType": "anything"}, "Sna": {"description": "", "group": "Ungrouped variables", "definition": "(1+{int}/100)^28*(((1+{int}/100)^14-1)/{d})", "name": "Sna", "templateType": "anything"}, "int": {"description": "", "group": "Ungrouped variables", "definition": "random(6..8#1)", "name": "int", "templateType": "randrange"}, "d": {"description": "", "group": "Ungrouped variables", "definition": "({int}/100)/(1+{int}/100)", "name": "d", "templateType": "anything"}}, "variable_groups": [], "metadata": {"description": "", "licence": "None specified"}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "", "rulesets": {}, "parts": [{"variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "showFeedbackIcon": true, "unitTests": [], "showCorrectAnswer": true, "variableReplacements": [], "marks": 0, "gaps": [{"type": "numberentry", "scripts": {}, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "minValue": "{y}-30", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "unitTests": [], "showCorrectAnswer": true, "variableReplacements": [], "maxValue": "{y}+30", "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "correctAnswerFraction": false, "marks": 1, "correctAnswerStyle": "plain", "showFeedbackIcon": true, "mustBeReduced": false}], "prompt": "

If X −Y = 100, calculate Y.

\n

Y: £[[0]]

", "sortAnswers": false, "scripts": {}, "type": "gapfill"}], "tags": [], "functions": {}, "type": "question"}, {"name": "2015-3b", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "ungrouped_variables": ["payment", "repayment", "money", "money1", "int", "v", "lhs", "d12"], "variablesTest": {"condition": "", "maxRuns": 100}, "parts": [{"variableReplacementStrategy": "originalfirst", "sortAnswers": false, "prompt": "

Find the appropriate single payment if option 1 is accepted by the bank.

\n

Payment: £[[0]]

", "type": "gapfill", "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "gaps": [{"marks": 1, "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "allowFractions": false, "maxValue": "{payment}+15", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "minValue": "{payment}-15", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "mustBeReducedPC": 0, "mustBeReduced": false, "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "unitTests": [], "variableReplacements": []}], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "unitTests": [], "variableReplacements": []}, {"variableReplacementStrategy": "originalfirst", "sortAnswers": false, "prompt": "

Find the appropriate monthly repayment if option 2 is accepted.

\n

Repayment:£[[0]]

", "type": "gapfill", "scripts": {}, "marks": 0, "extendBaseMarkingAlgorithm": true, "gaps": [{"marks": 1, "type": "numberentry", "scripts": {}, "correctAnswerFraction": false, "allowFractions": false, "maxValue": "{repayment}+2.5", "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "minValue": "{repayment}-2.5", "showFeedbackIcon": true, "customMarkingAlgorithm": "", "mustBeReducedPC": 0, "mustBeReduced": false, "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "unitTests": [], "variableReplacements": []}], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "unitTests": [], "variableReplacements": []}], "variable_groups": [], "metadata": {"licence": "None specified", "description": ""}, "tags": [], "statement": "

A borrower is under an obligation to repay a bank £{money} in two years’ time and £{money1} in three years’time. As part of a review of his future commitments, the borrower now offers either

\n

option 1: to discharge his liability for these two debts by making an appropriate single payment two years from now;

\n

or option 2: to repay the total amount owed by making 24 appropriate equal payments made at one month’ intervals, the \ufb01rst payment being due now.

\n

The repayments are calculated using an effective rate of interest of {int}% per annum. 

", "rulesets": {}, "advice": "", "variables": {"int": {"name": "int", "templateType": "randrange", "definition": "random(8..12#1)", "group": "Ungrouped variables", "description": ""}, "money": {"name": "money", "templateType": "randrange", "definition": "random(4000..4600#100)", "group": "Ungrouped variables", "description": ""}, "repayment": {"name": "repayment", "templateType": "anything", "definition": "{lhs}/(12*((1-{v}^2)/{d12}))", "group": "Ungrouped variables", "description": ""}, "money1": {"name": "money1", "templateType": "randrange", "definition": "random(1000..1400#100)", "group": "Ungrouped variables", "description": ""}, "lhs": {"name": "lhs", "templateType": "anything", "definition": "{money}*{v}^2+{money1}*{v}^3", "group": "Ungrouped variables", "description": "

left hand side

\n

"}, "payment": {"name": "payment", "templateType": "anything", "definition": "{lhs}/{v}^2", "group": "Ungrouped variables", "description": ""}, "d12": {"name": "d12", "templateType": "anything", "definition": "(1-(1-(({int}/100)*{v}))^(1/12))*12", "group": "Ungrouped variables", "description": ""}, "v": {"name": "v", "templateType": "anything", "definition": "1/(1+{int}/100)", "group": "Ungrouped variables", "description": ""}}, "preamble": {"css": "", "js": ""}, "functions": {}, "type": "question"}, {"name": "2015-4a", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "ungrouped_variables": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "functions": {}, "variable_groups": [], "metadata": {"licence": "None specified", "description": ""}, "tags": [], "statement": "

Consider a bond with face value f, redemption value C, current price P which has a coupon rate of r% payable m times per year for n years. Taxation is at the rate t1 and is paid at the end of each year, hence the annual tax is t1fr. Find an equation for the yield to maturity. 

", "rulesets": {}, "advice": "", "preamble": {"css": "", "js": ""}, "parts": [{"marks": 0, "sortAnswers": false, "prompt": "

Find an equation for the yield to maturity. 

\n

[[0]]

\n

\n

", "type": "gapfill", "scripts": {}, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "gaps": [{"distractors": ["", "", "", ""], "marks": 0, "type": "1_n_2", "scripts": {}, "choices": ["$P = (1-t1)fr[{(1-{1 \\over  (1+i)^n}) \\over i^m}]+C[{1 \\over (1+i)}]^n.$", "$P = (1-t1)fr[{(1-{1 \\over  (1+i)^m}) \\over i^n}]+C[{1 \\over (1+i)}]^n.$", "$P = (1-t1)fr[{(1-{1 \\over (1+i)^m}) \\over i^n}].$", "$P = (1-t1)fr[{(1-{1 \\over (1+i)^n}) \\over i^n}].$"], "displayColumns": 0, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "displayType": "radiogroup", "shuffleChoices": false, "showFeedbackIcon": true, "customMarkingAlgorithm": "", "showCellAnswerState": true, "matrix": ["1", 0, 0, 0], "minMarks": 0, "showCorrectAnswer": true, "maxMarks": 0, "unitTests": [], "variableReplacements": []}], "showFeedbackIcon": true, "customMarkingAlgorithm": "", "showCorrectAnswer": true, "unitTests": [], "variableReplacements": []}], "variables": {}, "type": "question"}, {"name": "2015-4b", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "variables": {"i22": {"templateType": "anything", "group": "Ungrouped variables", "definition": "((1+{int1}/100)^(1/2)-1)*2", "name": "i22", "description": ""}, "i2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "((1+{int}/100)^(1/2)-1)*2", "name": "i2", "description": ""}, "below": {"templateType": "anything", "group": "Ungrouped variables", "definition": "(1-({tax2}/100)*{v1}^(15-{year}))", "name": "below", "description": ""}, "tax1": {"templateType": "randrange", "group": "Ungrouped variables", "definition": "random(25..25#5)", "name": "tax1", "description": ""}, "tax2": {"templateType": "randrange", "group": "Ungrouped variables", "definition": "random(35..45#5)", "name": "tax2", "description": ""}, "price": {"templateType": "anything", "group": "Ungrouped variables", "definition": "(1-{tax}/100)*4((1-{v}^15)/{i2})+100{v}^15", "name": "price", "description": ""}, "int1": {"templateType": "randrange", "group": "Ungrouped variables", "definition": "random(5..7#1)", "name": "int1", "description": ""}, "v1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "1/(1+{int1}/100)", "name": "v1", "description": ""}, "price1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "((1-({tax1}/100))*4{a22}+100{v1}^(15-{year})-(({tax2}/100)*100)*{v1}^(15-{year}))/{below}", "name": "price1", "description": ""}, "a22": {"templateType": "anything", "group": "Ungrouped variables", "definition": "(1-{v1}^(15-{year}))/{i22}", "name": "a22", "description": ""}, "year": {"templateType": "randrange", "group": "Ungrouped variables", "definition": "random(7..9#1)", "name": "year", "description": ""}, "int": {"templateType": "randrange", "group": "Ungrouped variables", "definition": "random(4..7#1)", "name": "int", "description": ""}, "v": {"templateType": "anything", "group": "Ungrouped variables", "definition": "1/(1+{int}/100)", "name": "v", "description": ""}, "tax": {"templateType": "randrange", "group": "Ungrouped variables", "definition": "random(20..25#5)", "name": "tax", "description": ""}}, "ungrouped_variables": ["tax", "int", "price", "v", "i2", "price1", "tax1", "year", "tax2", "int1", "i22", "v1", "a22", "below"], "functions": {}, "advice": "", "statement": "

 Investor A purchased a bond with exactly 15 years to redemption. The bond is redeemable at par and has a gross redemption yield of {int}% per annum effective. It pays coupons of 4% per annum, half-yearly in arrears. He pays tax at {tax}% on the coupons only

", "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"licence": "None specified", "description": ""}, "variable_groups": [], "preamble": {"js": "", "css": ""}, "tags": [], "rulesets": {}, "parts": [{"showCorrectAnswer": true, "gaps": [{"allowFractions": false, "maxValue": "{price}+5", "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "minValue": "{price}-5", "mustBeReducedPC": 0, "showCorrectAnswer": true, "mustBeReduced": false, "marks": 1, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "type": "numberentry", "showFeedbackIcon": true, "correctAnswerFraction": false}], "customMarkingAlgorithm": "", "scripts": {}, "sortAnswers": false, "variableReplacements": [], "unitTests": [], "marks": 0, "extendBaseMarkingAlgorithm": true, "prompt": "

Calculate the price paid by investor A for the bond.

\n


Price paid: £[[0]]

", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showFeedbackIcon": true}, {"showCorrectAnswer": true, "gaps": [{"allowFractions": false, "maxValue": "{price1}+5", "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "minValue": "{price1}-5", "mustBeReducedPC": 0, "showCorrectAnswer": true, "mustBeReduced": false, "marks": 1, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "type": "numberentry", "showFeedbackIcon": true, "correctAnswerFraction": false}], "customMarkingAlgorithm": "", "scripts": {}, "sortAnswers": false, "variableReplacements": [], "unitTests": [], "marks": 0, "extendBaseMarkingAlgorithm": true, "prompt": "

After exactly {year} years, immediately after the payment of the coupon then due, investor A sells this bond to investor B who pays income tax at a rate of {tax1}% and capital gains tax at a rate of {tax2}%. The bond is purchased by investor B to provide a net return of {int1}% per annum effective. Calculate the price paid by investor B. 

\n

\n

Price paid: £[[0]]

", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showFeedbackIcon": true}], "type": "question"}, {"name": "2015-5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "variables": {"t": {"templateType": "anything", "group": "Ungrouped variables", "definition": "({year}+5{v}^3)/(1+2.5{v}^3)", "name": "t", "description": ""}, "payment1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "{payment}2.5", "name": "payment1", "description": ""}, "payment": {"templateType": "anything", "group": "Ungrouped variables", "definition": "(7107.77{year})/(({v}^{t})*({t}+7.5{v}^3+2.5{t}*{v}^3))", "name": "payment", "description": ""}, "year": {"templateType": "randrange", "group": "Ungrouped variables", "definition": "random(5..8#3)", "name": "year", "description": ""}, "t1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "{t}+3", "name": "t1", "description": ""}, "int": {"templateType": "randrange", "group": "Ungrouped variables", "definition": "random(8..8#1)", "name": "int", "description": ""}, "v": {"templateType": "anything", "group": "Ungrouped variables", "definition": "1/(1+{int}/100)", "name": "v", "description": ""}, "avt": {"templateType": "anything", "group": "Ungrouped variables", "definition": "7107.77/(1+2.5{v}^3)", "name": "avt", "description": ""}}, "ungrouped_variables": ["year", "int", "v", "avt", "t", "payment", "t1", "payment1"], "functions": {}, "advice": "", "statement": "

A fund has a liability to make two payments in the future, the \ufb01rst one due at the end of t years from now and the second one 3 years after the \ufb01rst. Further, the second payment is 2.5 times the \ufb01rst payment.

", "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"licence": "None specified", "description": ""}, "variable_groups": [], "preamble": {"js": "", "css": ""}, "tags": [], "rulesets": {}, "parts": [{"showCorrectAnswer": true, "gaps": [{"showCorrectAnswer": true, "displayType": "checkbox", "minMarks": 0, "distractors": ["", "", "", "", "", "", "", "", ""], "customMarkingAlgorithm": "", "scripts": {}, "marks": 0, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "type": "m_n_2", "warningType": "none", "showCellAnswerState": true, "maxMarks": 0, "choices": ["PV= PVL", "PV< PVL", "PVa > PVL", "D= DL", "Da < DL", "D> DL", "K= KL", "K< KL", "K> KL"], "displayColumns": 0, "unitTests": [], "minAnswers": 0, "shuffleChoices": false, "matrix": ["1", 0, 0, "1", 0, 0, "0", 0, "1"], "showFeedbackIcon": true, "maxAnswers": 0}], "customMarkingAlgorithm": "", "scripts": {}, "sortAnswers": false, "variableReplacements": [], "unitTests": [], "marks": 0, "extendBaseMarkingAlgorithm": true, "prompt": "

State the Redington’s conditions for immunisation of a portfolio of assets and liabilities against small changes in interest rates. 

\n

[[0]]

", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showFeedbackIcon": true}, {"showCorrectAnswer": true, "gaps": [{"allowFractions": false, "maxValue": "{payment}+20", "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "minValue": "{payment}-20", "mustBeReducedPC": 0, "showCorrectAnswer": true, "mustBeReduced": false, "marks": 1, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "type": "numberentry", "showFeedbackIcon": true, "correctAnswerFraction": false}, {"allowFractions": false, "maxValue": "{payment1}+5", "notationStyles": ["plain", "en", "si-en"], "customMarkingAlgorithm": "", "minValue": "{payment1}-5", "mustBeReducedPC": 0, "showCorrectAnswer": true, "mustBeReduced": false, "marks": 1, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "correctAnswerStyle": "plain", "type": "numberentry", "showFeedbackIcon": true, "correctAnswerFraction": false}, {"allowFractions": false, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReducedPC": 0, "maxValue": "{t}", "variableReplacements": [], "showPrecisionHint": true, "marks": 1, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "type": "numberentry", "strictPrecision": true, "scripts": {}, "precisionPartialCredit": 0, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "unitTests": [], "minValue": "{t}", "precision": 0, "precisionMessage": "You have not given your answer to the correct precision.", "precisionType": "dp", "showFeedbackIcon": true}, {"allowFractions": false, "showCorrectAnswer": true, "customMarkingAlgorithm": "", "mustBeReducedPC": 0, "maxValue": "{t1}", "variableReplacements": [], "showPrecisionHint": true, "marks": 1, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "variableReplacementStrategy": "originalfirst", "correctAnswerFraction": false, "type": "numberentry", "strictPrecision": true, "scripts": {}, "precisionPartialCredit": 0, "mustBeReduced": false, "notationStyles": ["plain", "en", "si-en"], "unitTests": [], "minValue": "{t1}", "precision": 0, "precisionMessage": "You have not given your answer to the correct precision.", "precisionType": "dp", "showFeedbackIcon": true}], "customMarkingAlgorithm": "", "scripts": {}, "sortAnswers": false, "variableReplacements": [], "unitTests": [], "marks": 0, "extendBaseMarkingAlgorithm": true, "prompt": "

If the present value of these payments and discounted mean term of the liabilities at {int}% per annum effective are £7,107.77 and {year} years respectively. Determine the timing (in complete years) and the amount of both payments. 

\n

First payment: £[[0]] in [[2]] years

\n

Second payment: £[[1]] in [[3]] years

", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showFeedbackIcon": true}, {"showCorrectAnswer": true, "gaps": [{"showCorrectAnswer": true, "displayType": "radiogroup", "minMarks": 0, "distractors": ["", ""], "customMarkingAlgorithm": "", "choices": ["Yes, it is Satisfied", "No, it is not Satisfied"], "scripts": {}, "displayColumns": 0, "marks": 0, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "shuffleChoices": false, "variableReplacementStrategy": "originalfirst", "maxMarks": 0, "type": "1_n_2", "showCellAnswerState": true, "showFeedbackIcon": true, "matrix": ["1", 0]}, {"showCorrectAnswer": true, "displayType": "radiogroup", "minMarks": 0, "distractors": ["", ""], "customMarkingAlgorithm": "", "choices": ["Yes, it is Satisfied", "No, it is not Satisfied"], "scripts": {}, "displayColumns": 0, "marks": 0, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "shuffleChoices": false, "variableReplacementStrategy": "originalfirst", "maxMarks": 0, "type": "1_n_2", "showCellAnswerState": true, "showFeedbackIcon": true, "matrix": ["1", 0]}, {"showCorrectAnswer": true, "displayType": "radiogroup", "minMarks": 0, "distractors": ["", ""], "customMarkingAlgorithm": "", "choices": ["Yes, it is Satisfied", "No, it is not Satisfied"], "scripts": {}, "displayColumns": 0, "marks": 0, "unitTests": [], "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "shuffleChoices": false, "variableReplacementStrategy": "originalfirst", "maxMarks": 0, "type": "1_n_2", "showCellAnswerState": true, "showFeedbackIcon": true, "matrix": ["0", "1"]}], "customMarkingAlgorithm": "", "scripts": {}, "sortAnswers": false, "variableReplacements": [], "unitTests": [], "marks": 0, "extendBaseMarkingAlgorithm": true, "prompt": "

The asset backing this instrument is to be invested in a zero coupon bond maturing after 5 years giving maturity value of £10,443.65. Investigate whether the fund satis\ufb01es the necessary conditions to be immunised against small interest changes in the rate of interest. 

\n

Present Value: [[0]]

\n

Duration: [[1]]

\n

Convexity: [[2]]

", "variableReplacementStrategy": "originalfirst", "type": "gapfill", "showFeedbackIcon": true}], "type": "question"}, {"name": "2015-6a", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "variable_groups": [], "parts": [{"gaps": [{"correctAnswerFraction": false, "allowFractions": false, "showCorrectAnswer": true, "showFeedbackIcon": true, "unitTests": [], "marks": 1, "type": "numberentry", "variableReplacements": [], "correctAnswerStyle": "plain", "mustBeReduced": false, "minValue": "{price}-0.5", "scripts": {}, "variableReplacementStrategy": "originalfirst", "maxValue": "{price}+0.5", "mustBeReducedPC": 0, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "notationStyles": ["plain", "en", "si-en"]}], "showCorrectAnswer": true, "showFeedbackIcon": true, "unitTests": [], "marks": 0, "type": "gapfill", "variableReplacements": [], "prompt": "

Assuming no arbitrage and that the share will not pay any income, calculate the forward price for the share, for settlement in exactly one quarter of a year. 

\n

Forward price: £[[0]]

", "scripts": {}, "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true}], "preamble": {"css": "", "js": ""}, "advice": "", "variables": {"pence": {"templateType": "randrange", "description": "", "name": "pence", "group": "Ungrouped variables", "definition": "random(0.6..0.8#0.1)"}, "int": {"templateType": "randrange", "description": "", "name": "int", "group": "Ungrouped variables", "definition": "random(4..7#1)"}, "price": {"templateType": "anything", "description": "", "name": "price", "group": "Ungrouped variables", "definition": "100*{pence}*(1+{int}/100)^(1/4)"}}, "statement": "

 The price of a given share is {pence}p. The risk-free rate of interest is {int}% per annum convertible quarterly.

", "ungrouped_variables": ["price", "pence", "int"], "rulesets": {}, "tags": [], "functions": {}, "variablesTest": {"maxRuns": 100, "condition": ""}, "metadata": {"licence": "None specified", "description": ""}, "type": "question"}, {"name": "2015-6b", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "rulesets": {}, "tags": [], "variable_groups": [], "metadata": {"description": "", "licence": "None specified"}, "advice": "", "parts": [{"scripts": {}, "gaps": [{"scripts": {}, "type": "numberentry", "extendBaseMarkingAlgorithm": true, "marks": 1, "variableReplacementStrategy": "originalfirst", "unitTests": [], "mustBeReducedPC": 0, "showCorrectAnswer": true, "showFeedbackIcon": true, "allowFractions": false, "correctAnswerStyle": "plain", "correctAnswerFraction": false, "customMarkingAlgorithm": "", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "maxValue": "{price}+5", "mustBeReduced": false, "minValue": "{price}-5"}], "type": "gapfill", "extendBaseMarkingAlgorithm": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "unitTests": [], "showFeedbackIcon": true, "sortAnswers": false, "customMarkingAlgorithm": "", "variableReplacements": [], "prompt": "

 Calculate the forward price at issue, assuming no arbitrage.

\n

Forward price: £[[0]]

"}], "variables": {"int": {"definition": "random(4..6#1)", "group": "Ungrouped variables", "templateType": "randrange", "description": "", "name": "int"}, "price": {"definition": "(550-60((1+{int}/100)^(-1/2))-60((1+{int1}/100)^(-1)))/((1+{int1}/100)^(-1))", "group": "Ungrouped variables", "templateType": "anything", "description": "", "name": "price"}, "int1": {"definition": "random(4.5..6.5#0.5)", "group": "Ungrouped variables", "templateType": "randrange", "description": "", "name": "int1"}}, "ungrouped_variables": ["int", "int1", "price"], "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

A one-year forward contract is issued on 1 January 2015 on a share with price of £550 on that date. Dividends of £60 are expected on 30 June 2015 and 31 December 2015. The risk-free spot rates for 6-month and 12-month are {int}% and {int1}% per annum effective respectively on 1 January 2015.

", "preamble": {"js": "", "css": ""}, "type": "question"}, {"name": "2015-7b", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "preamble": {"js": "", "css": ""}, "statement": "

 An investor holds a short position in a forward contract on gold for delivery in 90 days at £{spot} an ounce. The current spot price of gold is £{spot1} an ounce. The insurance and storage cost for gold are {cost}% per annum of the spot price, paid on delivery. 90 days simple interest rates are {interest}% per annum.

", "ungrouped_variables": ["spot", "spot1", "cost", "interest", "price", "k"], "variables": {"spot1": {"description": "", "group": "Ungrouped variables", "definition": "{spot}-30", "name": "spot1", "templateType": "anything"}, "k": {"description": "", "group": "Ungrouped variables", "definition": "420(1+(90/365)*({interest}/100)+({cost}/100)*(90/365))", "name": "k", "templateType": "anything"}, "price": {"description": "", "group": "Ungrouped variables", "definition": "{spot}-{k}", "name": "price", "templateType": "anything"}, "spot": {"description": "", "group": "Ungrouped variables", "definition": "random(450..500#25)", "name": "spot", "templateType": "randrange"}, "interest": {"description": "", "group": "Ungrouped variables", "definition": "random(9..10#0.25)", "name": "interest", "templateType": "randrange"}, "cost": {"description": "", "group": "Ungrouped variables", "definition": "random(2..3#0.5)", "name": "cost", "templateType": "randrange"}}, "variable_groups": [], "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "", "rulesets": {}, "parts": [{"type": "gapfill", "variableReplacementStrategy": "originalfirst", "customMarkingAlgorithm": "", "gaps": [{"type": "numberentry", "variableReplacementStrategy": "originalfirst", "allowFractions": false, "extendBaseMarkingAlgorithm": true, "correctAnswerStyle": "plain", "customMarkingAlgorithm": "", "unitTests": [], "minValue": "{price}-2.5", "variableReplacements": [], "marks": 1, "notationStyles": ["plain", "en", "si-en"], "mustBeReducedPC": 0, "mustBeReduced": false, "maxValue": "{price}+2.5", "scripts": {}, "showCorrectAnswer": true, "showFeedbackIcon": true, "correctAnswerFraction": false}], "unitTests": [], "showCorrectAnswer": true, "variableReplacements": [], "marks": 0, "extendBaseMarkingAlgorithm": true, "prompt": "

What is the value of this forward contract?

\n

Value: £[[0]]

", "sortAnswers": false, "scripts": {}, "showFeedbackIcon": true}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "type": "question"}, {"name": "2015-8", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}], "rulesets": {}, "variables": {}, "variable_groups": [], "metadata": {"description": "", "licence": "None specified"}, "advice": "", "parts": [{"scripts": {}, "gaps": [{"scripts": {}, "type": "numberentry", "extendBaseMarkingAlgorithm": true, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "mustBeReducedPC": 0, "unitTests": [], "showFeedbackIcon": true, "allowFractions": false, "correctAnswerStyle": "plain", "correctAnswerFraction": false, "customMarkingAlgorithm": "", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "maxValue": "3258.185", "mustBeReduced": false, "minValue": "3257.395"}], "type": "gapfill", "extendBaseMarkingAlgorithm": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "unitTests": [], "showFeedbackIcon": true, "sortAnswers": false, "customMarkingAlgorithm": "", "variableReplacements": [], "prompt": "

Calculate the expected value of an investment of £2,000 after 10 years.

\n

£[[0]]

"}, {"scripts": {}, "gaps": [{"scripts": {}, "type": "numberentry", "extendBaseMarkingAlgorithm": true, "marks": 1, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "mustBeReducedPC": 0, "unitTests": [], "showFeedbackIcon": true, "allowFractions": false, "correctAnswerStyle": "plain", "correctAnswerFraction": false, "customMarkingAlgorithm": "", "variableReplacements": [], "notationStyles": ["plain", "en", "si-en"], "maxValue": "43", "mustBeReduced": false, "minValue": "41"}], "type": "gapfill", "extendBaseMarkingAlgorithm": true, "marks": 0, "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "unitTests": [], "showFeedbackIcon": true, "sortAnswers": false, "customMarkingAlgorithm": "", "variableReplacements": [], "prompt": "

 Calculate the probability that the accumulated of the investment after 10 years will be less than 90% of the expected value from (a). 

\n

[[0]]%

"}], "tags": [], "ungrouped_variables": [], "functions": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "statement": "

The rate of interest earned on a particular investment in different years are independently and identically distributed. Each year the distribution of (1 + it) is log-normal, where it is the return in year t. The annual rates have mean of 5% and standard deviation of 10%.

", "preamble": {"js": "", "css": ""}, "type": "question"}]}], "percentPass": "40", "type": "exam", "contributors": [{"name": "Swa Lup", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2902/"}, {"name": "Junlei Hu", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/3534/"}], "extensions": [], "custom_part_types": [], "resources": []}