About Question enthuware.jwpv6.2.1022 :

Moderator: admin

Post Reply
filipeferraz
Posts: 1
Joined: Sun Apr 07, 2013 12:58 pm
Contact:

About Question enthuware.jwpv6.2.1022 :

Post by filipeferraz »

I don't undestand why the answer in this question:
You have created an EL function int getTaxBracket(int income) and assigned it to the name bracket in namespace taxes. Which of the following evaluates to true given that it returns 4 if the income is 100,000?

is ${taxes:bracket(10000)<5}
The correct answer cannot be ${taxes:taxBracket(10000)<5}?

Online
admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.1022 :

Post by admin »

I am not sure I understand your question. It is given that taxes:bracket(100000) returns 4, which is less than 5. So
${taxes:bracket(100000)<5} is true.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Vitor Benedito
Posts: 1
Joined: Mon May 13, 2013 12:33 pm
Contact:

Re: About Question enthuware.jwpv6.2.1022 :

Post by Vitor Benedito »

Yes is correct ${taxes:bracket(100000)<5} because in the question exists the information:

"assigned it to the name bracket in namespace taxes"

So this function must be invoked by the name "bracket ".

tanzwud
Posts: 19
Joined: Mon Sep 01, 2014 9:45 pm
Contact:

Re: About Question enthuware.jwpv6.2.1022 :

Post by tanzwud »

Have some concerns about this question
Using books HFSJSP 2nd edition and Charles Lyons 3d edition if there is no wording states that everything is ok with function and tld file the correct answer is something like "A valid invocation CANNOT be determined.The necessary mapping information from the TLD is NOT known." is possible as well.
However agree option 2 is correct if everything else with the EL function is correct.

Online
admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.1022 :

Post by admin »

Yes, this question also makes it clear because none of the options depend on the fact that there could be something wrong with the mapping info.
If you like our products and services, please help us by posting your review here.

tanzwud
Posts: 19
Joined: Mon Sep 01, 2014 9:45 pm
Contact:

Re: About Question enthuware.jwpv6.2.1022 :

Post by tanzwud »

Ok Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests