• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mock Answers

 
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can any one give correct answers for these mock questions.

http://docs.google.com/View?docid=dd76pqbz_48hns8rng8
 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please give answer also for this SOAP question

http://docs.google.com/Doc?id=dd76pqbz_50dbx85bgb
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I've tried to answer your mock questions available at your first link, in a short time. So following are my shots:

1) a
2) d
3) c
4) a
5) a&b
6) a
7) b
8) b
9) a
10) c
11) Question Not Clear
12) a&b
13) c
14) a&b
15) d
16) a&b
17) a
18) b
19) 1&3
20) d
21) c
22) c
23) a
24) b
25) a
26) a&b
27) a
28) a
29) b
30) b
31) a
32) 2
33) b
34) a&b&d
35) b
36) b

Regards,
Mohsin
 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi thanks for reply.

I have problem with your answers for questions 19 20 23 26 33 and 36.

For 19 you said 1 & 3
why not 4.

- can be used in mid of element. It can't be used in stating character. Am i wrong?

For 20.

20) Select valid XML fragments

a) <xmlElement>

<home/>

</xmlElement>

b) <element>

<home/>

</element>

c) <test.element>

<home/>

</test.lement>



d) None above




a is not valid due to it starts with string xml. But why b and c also not valid?
 
Ranch Hand
Posts: 577
Tomcat Server Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Chaps,

I've attempted the first set of questions. But, have some answers in conflict.

6) WSDL and SOAP are specific only for J2EE webservices.

a) True b) false

Answer should be (b) because they can be used by .NET. Pearl. C++ or any other web services.

19) Which one of the following XML fragement vaild

1) <_myAddress>

<street/>

<house/>

</_myAddress>



2) <-myAddress>

<street/>

<house/>

</-myAddress>



3) <MyAddress>

<street/>

<house/>

</MyAddress>



4) <My-Address>

<street/>

<house/>

</My-Address>

Answer should be (1), (3) & (4), check the well-formedness in any browser.

20) Select valid XML fragments

a) <xmlElement>

<home/>

</xmlElement>

b) <element>

<home/>

</element>

c) <test.element>

<home/>

</test.lement>



d) None above

Answer should be (a) & (b). check the well-formedness in any browser.



26) XML Namespace provide a qualified name for

a) xml element

b) element attribute

c) schema element

d) a text node

e) all above
I think answer is (e), if not somebody please correct me with valid explanation.

I hope every SCDJWS aspirant would watch this post closely.

Thanks and Regards,
Naren
 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Naren,

I agree with 6 and 19. Your answers are correct.

In 20)
Regarding to RMH book . also allowed in tagname, i.e any unicode character. So c also a correct one.

In 26) a, b c are correct. But i dont think its possible to have a text node as namespace aware.

If its possible please give some sample.


Thanks for answers.
 
Naren Chivukula
Ranch Hand
Posts: 577
Tomcat Server Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sundar,
Can you please point me in RMH or any other source for the answers to 20) and 26)?
Thanks and Regards,
Naren
 
Ranch Hand
Posts: 246
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sundar,

Thanks for your time. Do you have the answers for the 2nd link ie from questions 36 to 70?

Thanks,

Naveen
 
author
Posts: 9050
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

It's fine to discuss mocks like this but it's also VERY VERY important to cite the source of the questions. It shows respect to the author of the questions to indicate where they came from.

Thank you!

Bert
 
Ranch Hand
Posts: 65
Hibernate Firefox Browser Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
These are my responses for the disputed questions

Q6. Option b. SOAP & WSDL are not confined to J2EE

Q19. Options 1, 3 & 4. Hyphens cannot start an element's name, but could be part of the element name. Eg Most of Deployment Descriptor elements have them, <web-app> ... </web-app>

Q20. Options a & b are correct. Option c in its current form is wrong. The close element of option c reads '</test.lement>' it shud have been '</test.element>'. Perhaps it could have been a typo error. Otherwise, I feel its fine

Q26. Options a, b & c. Text nodes do not have names that can be qualified.
 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by nav katoch:
Hi Sundar,

Thanks for your time. Do you have the answers for the 2nd link ie from questions 36 to 70?

Thanks,

Naveen




I have updated the document, so in same link in last page you can find answers.

Bert, These questions are prepared myself. Not copy from any other...
 
nav katoch
Ranch Hand
Posts: 246
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sundar,

I really appreciate your update. These are really good questions which contain knowledgeable information from certification point of view particularly.

Thanks and regards,

Naveen Katoch
 
Bert Bates
author
Posts: 9050
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's really great Sundar!

Thank you for creating these mock questions, I know how much time it can take to create good questions.
 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


20) Select valid XML fragments

a) <xmlElement>

<home/>

</xmlElement>

b) <element>

<home/>

</element>

c) <test.element>

<home/>

</test.lement>



d) None above



Some have suggested a is the correct answer. But i read in RMH that an element name must never start with string xml, as this is reserved for XML 1.0 specs. But in the browser it displays fine. Can someone explain please. Thanks.
 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sridhar,

Your correct. c is the correct answer.
 
sridhar row
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the reply sundar. I think option c is correct if the typo is corrected in the end tag.I think b is also correct. Btw what exactly do you mean by valid XML fragment? well formed or valid based on schema? or both?
 
reply
    Bookmark Topic Watch Topic
  • New Topic