File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes examulator question error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "examulator question error" Watch "examulator question error" New topic
Author

examulator question error

Sreeraj G Harilal
Ranch Hand

Joined: Apr 19, 2006
Posts: 310
There is question in examulator quizzes

Which of the following are implicit variables available by default within EL expressions?

a. session
b. out
c. param
d. cookies
e. pageConfig

i select only param.But the site displays param and cookies.

But i am sure cookies is not a EL implicit object, its cookie.


SCJP 5.0<br />SCWCD 1.4<br />Preparing for <b>SCEA</b>.<br /><b>"I prefer an interesting vice to a virtue that bores."</b>
Sreeraj G Harilal
Ranch Hand

Joined: Apr 19, 2006
Posts: 310
another question in the same quizzes about EL

Which of the following statements are true?

a. A function for use with an EL must have a public static signature
b. A function for use with an EL cannot take any parameters
c. A function for use with an EL must be declared within the deployment descriptor
d. A function for use with an EL must be declared with a void return type

I select only option a.But site displays option a and c are correct.

I think c is not correct because functions for use with an EL must be declared within any TLD file not in DD
Sreeraj G Harilal
Ranch Hand

Joined: Apr 19, 2006
Posts: 310
Another wrong answer.

"The beanName attribute of useBean is only used with serialized beans"
a)True
b)False

I select option b. But the site says its option a.

I am sure we can use beanName attribute of useBean with non-serialzed beans also.

See this


Employee.java

anyfile.jsp


its working fine. See the Employee class, its not implementing Serializable interface.
Sreeraj G Harilal
Ranch Hand

Joined: Apr 19, 2006
Posts: 310
Another question

Which of the following statements are true of custom tags that are created by extending the SimpleTagSupport class.

a. Such tags may contain JSTL expressions within the body
b. Such tags cannot manipulate the content of the body
c. Such tags cannot contain EL expressions within the body
d. Such tags cannot have a bodycontent type of JSP
e. Such tags do not need to be defined with a TLD file

options in radio buttons not in check boxs
answer : a

i select option d. but i didn't get any mark.

I think option a and d are correct. Am i right?
Sreeraj G Harilal
Ranch Hand

Joined: Apr 19, 2006
Posts: 310
Marcus Green, please reply me about the points i mentioned.
Am i right or not?
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
Sreeraj, I'll reply to each of your questions very soon (I have just got up and read these messages before going to work). Many thanks for your feedback,


SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
"But i am sure cookies is not a EL implicit object, its cookie."

You are right of course, its slightly odd as you might expect a map to
use the plural. I have it as cookie in the text of my material and the JSP Spec
explains in section
1.2.3

"cookie - a Map that maps cookie names to a single Cookie object.... "

I have updated that question now.
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
"I think c is not correct because functions for use with an EL must be declared within any TLD file not in DD"

You are correct I have updated the question. I will also be adding two more references to this topic, the section in the JSP spec (JSP 2.6) and a page by Oracle at

http://www.oracle.com/technology/pub/articles/cioroianu_jspapi.html
Sreeraj G Harilal
Ranch Hand

Joined: Apr 19, 2006
Posts: 310
Thank you Marcus for your reply.
But i am curiously waiting for your reply about the question below :-

"The beanName attribute of useBean is only used with serialized beans"
a)True
b)False
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: examulator question error