Assume a JavaBean&ens

题目

Assume a JavaBean com.example.GradedTestBean exists and has two attributes. The attribute name is oftype java.lang.String and the attribute score is of type java.lang.Integer. An array of com.example. GradedTestBean objects is exposed to the page in a request- scoped attribute called results. Additionally,an empty java.util.HashMap called resultMap is placed in the page scope. A JSP page needs to add the firstentry in results to resultMap, storing the name attribute of the bean as the key and the score attribute of thebean as the value. Which code snippet of JSTL code satisfies this requirement?()

  • A、${resultMap[results[0].name] = results[0].score}
  • B、<c:set var="${resultMap}" key="${results[0].name}" value="${results[0].score}" />
  • C、<c:set var="resultMap" property="${results[0].name}"> ${results[0].value}</c:set>
  • D、<c:set var="resultMap" property="${results[0].name}" value="${results[0].score}" />
  • E、<c:set target="${resultMap}" property="${results[0].name}" value="${results[0].score}" />
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

15 If a project manager communicates a verbal message to a subordinate, and the subordinate leaves without saying a word, the project manager should assume:

A. the message was understood

B the message was not understood

C. the subordinate discarded the information

D. the information was not appropriate

E. None of the above


正确答案:E

第2题:

4 Standard "Shewhart" control charts assume that the distribution of sample means is:

A. uniform.

B. normal

C. discrete

D. symmetrical

E. B and D only


正确答案:E

第3题:

Standard "Shewhart" control charts assume that the distribution of sample means is:

A . uniform

B . normal

C . discrete

D . symmetrical

E . B and D only


正确答案:E

第4题:

(c) Assuming that she will survive until July 2009, advise on the lifetime inheritance tax (IHT) planning

measures that could be undertaken by Debbie, quantifying the savings that can be made. (7 marks)

For this question you should assume that the rates and allowances for 2004/05 apply throughout.


正确答案:
(c) Debbie survives until July 2009
Debbie should consider giving away some of her assets to her children, while ensuring that she still has enough to live on.
Such gifts would be categorised as PETs. Although Debbie will not survive seven years (at which point the gifts would fall out
of Debbie’s estate for IHT purposes), taper relief will reduce the amount chargeable to IHT. If gifts were made prior to July
2005, 40% taper relief would be available.
It is important to remember that Debbie’s annual exemptions will reduce the value of any PET when assets are gifted. Debbie
has not used her annual exemption for the last two years, and so she can gift £6,000 (2 x £3,000) in the current tax year
as well as £3,000 per year in future tax years. Debbie could therefore give away £18,000, saving tax of £7,200 (£18,000
x 40%). Debbie can also make small exempt gifts of up to £250 per donee per year.
Debbie should consider making gifts to Allison’s children instead of Allison (using, for example, an accumulation &
maintenance trust). This would ensure that the gifts were excluded from Allison’s estate.
It does not make sense for Debbie to gift shares in Dee Limited, as these qualify for full business property relief and therefore
are not subject to IHT.
As Andrew is shortly to be married, Debbie could give up to £5,000 in consideration of his marriage. This would save £2,000
in IHT.
Expenditure out of normal income is also exempt from IHT. This is where the transferor is left with sufficient income to
maintain his/her usual standard of living. Broadly, you need to demonstrate evidence of a prior commitment, or a settled
pattern of expenditure.
If substantial gifts are made, the donees would be advised to consider taking out insurance policies on Debbie’s life to cover
the potential tax liabilities that may arise on PETs in the event of her early death.

第5题:

(d) Calculate the ex dividend share price predicted by the dividend growth model and discuss the company’s

view that share price growth of at least 8% per year would result from expanding into the retail camera

market. Assume a cost of equity capital of 11% per year. (6 marks)


正确答案:
(d) The dividend growth model calculates the ex div share price from knowledge of the cost of equity capital, the expected growth
rate in dividends and the current dividend per share (or next year’s dividend per share). Using the formula given in the
formulae sheet, the dividend growth rate expected by the company of 8% per year and the decreased dividend of 7·5p per
share:
Share price = (7·5 x 1·08)/(0·11 – 0·08) = 270p or £2·70
This is the same as the share price prior to the announcement (£2·70) and so if dividend growth of 8% per year is achieved,
the dividend growth model forecasts zero share price growth. The share price growth claim made by the company regarding
expansion into the retail camera market cannot therefore be substantiated.
In fact, a lower future share price of £2·49 was predicted by applying the current price-earnings ratio to the earnings per
share resulting from the proposed expansion. If this estimate is correct, a fall in share price of 7% can be expected.
The share price predicted by the dividend growth model of £2·70 would require an after-tax return on the proposed expansion
of 11·66%, which is more than the 9% predicted by the Board. The current return on shareholders’ funds is 7·5% (4·5/60),
but in 2005 it was 12·8% (7·3/57), so 11·66% may be achievable, but looks unlikely.
Since the market price fell from £2·70 to £2·45 following the announcement, it appears that the market does not believe
that the forecast dividend growth can be achieved.

第6题:

97 If a project manager communicates a verbal message to a subordinate, and the subordinate leaves without saying a word, the project manager should assume:

A. the message was understood

B. the message was not understood

C. the subordinate discarded the information

D. the information was not appropriate

E. None of the above.


正确答案:E

第7题:

There are4 words marked A), B), C) and D ) in each group. Choose the one which underlined part has a different pronunciation from the other three ________.

A.butter

B.mute

C.mule

D.assume


参考答案:A

第8题:

If a project manager communicates a verbal message to a subordinate, and the subordinate leaves without saying a word, the project manager should assume:

A the message was understood

B the message was not understood

C the subordinate discarded the information

D the information was not appropriate

E None of the above.


正确答案:E

第9题:

(b) Calculate the percentage of maximum capacity at which the zoo will break even during the year ending

30 November 2007. You should assume that 50% of the revenue from sales of ticket type ZC is attributable

to the zoo. (7 marks)


正确答案:

第10题:

(b) Calculate the taxable benefit in 2005/06 if Jan were to use the accommodation offered by his employer. You

may assume that the rules for calculating benefits are the same as in 2004/05. (3 marks)


正确答案:
(b) Benefit – accommodation
If Jan accepts the offer, he will occupy the building for a period of eight months in the tax year 2005/06 (from 6 August 2005
– 5 April 2006). The benefit will last for six months.
The taxable benefit is the higher of:
(i) The rent borne by the company                                                      = 600 x 6 = 3,600
(ii) The annual (rateable) value                                                            = 6,000 x 6/12 = 3,000
i.e. £3,600.
In addition, as the property costs in excess of £75,000, an additional benefit arises. The excess is subject to the official rate
of interest, and is calculated as follows:
(155,000 – 75,000) x 5% = 4,000 x 6/12                                         = 2,000
Total taxable benefit is £3,600 + £2,000 = £5,600.
Tutorial note: strictly speaking the additional charge does not apply if the expensive property is rented rather than owned –
therefore the above answer, whilst the most commonly given is not technically correct. One mark was awarded if the
additional benefit calculation was performed as shown above and an alternative one mark was awarded if the additional
benefit was not calculated for the correct technical reason.

更多相关问题