Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

4 questions on SCEA Study Guide

 
Alex sinna
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,all
I spent much time on studing the Sun Certified Enterprise Architect for J2EE Study Guide. When I exercised the mock exam questions on each chapter,I encountered some doubts on following question.I hope someone can give me some instructions on that. Thanks in advance.
1. Which of the following elements are parts of the Gang of Four (GoF) Design Pattern format?
A. Problem
B. Solution
C. Consequences
D. Intent
Answer is C and D. Its explanation is Consequences and Intent are valid elements in the (GoF) Design Pattern format._ A and B are not valid elements in the (GoF) Design Pattern format.
But I think during introduce to every Design Pattern,there are three aspects(Problem, Solution and Consequence) to describe that.So I think the correct answer should be A,B,C
2. The Decorator design pattern appears frequently in what Java package?
A. java.io
B. java.awt
C. java.lang
D. java.util
Answer is B. Its explanation is the Decorator design pattern appears frequently in the java.awt package.
But I think the Decorator design pattern appears frequently in the java.io package.So the correct answer should be A.
3. Which of the following properties cannot be read by an applet?
A. os.name
B. file.separator
C. java.home
D. java.version
Answer is C. Its explanation is a java applet cannot read the java.home system property.
_ A, B, and D are incorrect. os.name, file.separator,andjava.version can be read by an applet.
But I think all above properties are system properties, why these properties can be read by an applet,by the way ,what does file.separator mean?
4. Which of the following is not a valid authentication method (auth-method)?
A. FORM
B. HTTP
C. DIGEST
D. CLIENT-CERT
Answer is B. Its explanation is HTTP is not a valid authentication method.
_ A, C, and D are incorrect. FORM, DIGEST, and CLIENT-CERT are valid.
But I think Basic HTTP is also behave the valid authentication as the web server authenticates a principal with user name & password from Web client.
Why B is not a correct answer.In addition,I don't think C. DIGEST is a valid authentication ,for message digest is just a value computed from a
message,itself has no function to authenticate client,except for using digital signature.
 
Daryl Fong
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with question 2 that java.io uses the Decorator pattern a lot. Not sure about AWT as I don't use it a lot.
 
sopal Pal
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Yes, java.io uses Decorator pattern a lot.
java.awt also uses the Decorator pattern - if u consider the BorderClasses which are used to decorate panels and frame.
The Border classes are considered as Decorator classes.
I thinkt he question definitely should have 2 choices.
Sumit
 
E. Messing
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would generally avoid the questions in the study guide chapter, and focus on mock exams - as they better predict the kind of questions youl get on the tests. The Study Guide questions are more of a "lets go over what the topic explained" questions...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic