This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Mock Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Mock Question" Watch "Mock Question" New topic

Mock Question

winston lim

Joined: Feb 18, 2003
Posts: 26
I am trying to make some mock question while reading. Happy trying.
Best Regards,

1. Listing 1.1 shown an XML declaration. Which two are true? (Choose two)
A.An XML declaration is mandatory for a SOAP message.
B.If an xml declaration is used, the version of XML must be 1.0 and the encoding must be either UTF-8 or UTF-16.
C.If encoding is absent, the assumption is that the SOAP message is based on UTF-8.
D.Web services will generate fault when accepting message without XML declaration according to BP-conformance rule.

2.Which three are correct about element in a SOAP message? (Choose three)
A.All SOAP message must have an Envelope element.
B.A SOAP message may carry both application-specific data and a fault at the same time.
C.The Envelope element cannot contain any other child other than Header element and exactly one Body element.
D.A Header element is optional.
E.An XML namespaces can be declared in the header element but not in its header block.

3.Given the following.

To make the above XML document to become a SOAP document,

IThe wrapping of the XML inside of a SOAP body
IIThe wrapping of the SOAP body within a SOAP envelope
IIIThe optional inclusion of a SOAP header block
IVNamespace declarations
VEncoding style directives for the serialization of data
VIThe binding of the whole thing to a protocol
Choose the all correct answer.
A.I, II and IV.
B.I, II, III, IV and VI.
C.II, IV, V and VI.
D.II, IV and VI.
E.I, II, III, IV and V.
F.All the above.

4.Find the correct matching pairs for SOAP fault elements.
1.A human-readable description of the fault. It must be present in a fault element.
2.A code that indicates the type of the fault.
3.An application-specific field that contains the detail information about the fault.
4.An optional field that indicates the URI of the source of the fault.

Answers :
1. B, C.
2.A, C and D.
3. F.
a, 2 and IV.
b, 1 and I.
c, 4 and II.
d, 3 and III.
Richard Monson-Haefel
Ranch Hand

Joined: Oct 31, 2003
Posts: 92
Hey, those are pretty good moch questions.
One thing, there are no "All of the above" options on the test. Also, the question will always indicate how many right answers there are (e.g. like you did in a couple questions (Choose n)) unless there is just one right answer than it will say that be saying something like "Which is true.". Which means which *one* of the answers is true. If there is more than one correct answer, we'll tell you to choose exact number (e.g. Choose two). Make sense?

-- <br />Richard Monson-Haefel<br /><a href="" target="_blank" rel="nofollow"></a>
Shoaib Khanzada
Ranch Hand

Joined: Jan 24, 2004
Posts: 34
Well done good work, carry on waiting for some other good questions,
Michael Zhao
Ranch Hand

Joined: Sep 19, 2000
Posts: 77
good one

Thang Tran Vinh

Joined: Jan 24, 2003
Posts: 6
The question number 4 should appear in DnD style, I had to read it two times to understand the question .
Andy Smith
Ranch Hand

Joined: Sep 28, 2003
Posts: 239
Wow, thats nothing less then Ultimate.

Share Knowledge to gain it.
SCJP 2, SCWCD 2, SCDJWS, IBM 141 (In Progress), IBM 486 (Next)
peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 317
for your MOCK questions. Make sure you ask what is in, or removed from the various SOAP versions. My beta exam had a bunch This soap header will generate a soap fault/exception (sorry I am now only learning web services)
in soap 1.0 or soap 1.1

CIAO Peter M. Cooke
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Mock Question
It's not a secret anymore!