0% found this document useful (0 votes)
74 views9 pages

cs311 Sample Paper by ???? ???? ??'? CH

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views9 pages

cs311 Sample Paper by ???? ???? ??'? CH

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Sample file by

☛𝓐𝓲𝓵𝓪 𝓝𝓸𝓸𝓻 𝓘𝓽'𝓼 Ch✍︎❥

FINALTERM EXAMINATION (Sample Paper)

CS311–Introduction to Web Services Development

Question No: 1 (Marks: 1)

Which of the following implements the Streaming API for XML (StAX) standard?
A. XSLT
B. JAXP
C. SAX
D. JAAS

Question No: 2 (Marks: 1)

The pluggability layer allows you to plug in an ________ processor, letting you control how
your XML data is displayed.
A. TXSL
B. XSLT
C. DOM
D. StAX

Question No: 3

In the context of web development JAXP stands for.Same


A. Java application extension Performance.
B. Java application extension processing.
C. Java API for XML Processing.
D. Java application extensible plugging.

Question No: 4 (Marks: 1)

Which method does SAX use for processing XML documents?Sleeping


A. Document Handler
B. Document
C. Event Based
D. Tree Based

Question No: 5 (Marks: 1)


In JAXB, If a client application wants to convert a JAXB-derived java object into XML data , It will use
the_____________ for this purpose.

A. Marshal function
B. Unmarshal function
C. JAXBContext
D. None of these
Question No: 6 (Marks: 1)

In JAXB, if a client application wants to convert an XML data file into a JAXB-derived java object, It
will use the_____________ for this purpose.
A. Marshal function
B. Unmarshal function
C. JAXBContext
D. None of these

Question No: 7 (Marks: 1)

In JAXB, A client application is the one which can access the_______________ of the Services-
Provided- Program.
A. functionality
B. code
C. Functionality with code
D. None of these

Question No: 8 (Marks: 1)

In JAXB, we can unmarshal XML data from sources such as_____________________.


A. Files
B. DOM nodes
C. SAX Sources
D. Mode note
Question No: 9 (Marks: 1)

In JAXB, the validation process could be done during _____________________.


A. Marshalling
B. Unmarshalling
C. Marshalling &Unmarshalling
D. None of these

Question No: 10 (Marks: 1)

In JAXB, if a client application wants to access the XML data represented by Java content tree, it can
access this data _________________.
A. through certain interfaces
B. directly
C. Indirectly
D. Softly
Question No: 11 (Marks: 1)

“An XML schema is used as input to the JAXB binding compiler to generate JAXB classes based on that
schema” . This process is called __________.
A. Processing content
B. Compiling classes
C. Generating classes
D. High Classes
Question No: 12 (Marks: 1)

In JAXB, Binding runtime framework provides _________operations for accessing, manipulating and
validating XML contents.
A. Marshalling
B. Unmarshalling
C. Marshalling &Unmarshalling
D. None of these

Question No: 13 (Marks: 1)

In JAXB, the client application through interfaces generated by the binding compiler _____ modify the
XML data.
A. Can
B. cannot
C. can and cannot
D. None of these

Question No: 14 (Marks: 1)

Basic benefit(s) of servlet is/are________.


A. Better performance
B. Secure
C. Portability
D. All of Above

Question No: 15 (Marks: 1)

In JAXB, which of the following function(s) belong(s) to properties object?


A. storeToXML()
B. loadFromXML()
C. readFromXML()
D. Both a & b

Question No: 16 (Marks: 1)

In JAXB, If we want to change the value of a key in a XML property file, which of the following function
will be used for this purpose?
A. setProperty()
B. get Property()
C. writeProperty()
D. wet Property()

Question No: 17 (Marks: 1)

In JAXB, if we want to read the value of a key from a XML property file, which of the following function
will be used for this purpose?
A. setProperty()
B. get Property()
C. writeProperty()
D. wet Property()

Question No: 18 (Marks: 1)

In JAXB, If we want to convert a property file into a XML file, which of the following library contains
the required functions?
A. Java.io.FileoutputStream
B. Java.io.ouputStream
C. Java.io.util.Properties
D. Java.io.until.Properties

Question No: 19 (Marks: 1)

In JAXB, Following is a chunk of code of a java file.


A. Java.xml.bind. JAXBException
B. Java.xml.bind.Unmarshaller
C. Java.xml.bind. JAXBBException
D. Java.xml.bind. String

Question No: 20 (Marks: 1)

In JAXB, the client application through interfaces generated by the binding compiler _____ modify the
XML data.
A. Can
B. Cannot
C. Must
D. Mustnot

Question No: 21 (Marks: 1)

Which one is/are the valid JAXB annotation(s)?


A. @XMLElement
B. #XMLRootelement
C. XMLAttribute
D. Expressions
Question No: 22 (Marks: 1)

If we want to use JAXB, some of the technologies required is____________.


A. JDM 1.1
B. JDK 1.6 or above
C. Hardware
D. XML
Question No: 23 (Marks: 1)

JAXB stands for_______.


A. JAVA Architecture for XML Binding
B. JAVA Annotation for XML Binding
C. JAVA Architecture for XML Browser
D. JAVA Architecture for TML Browser

Question No: 24 (Marks: 1)

In JAXB, Verifying the contents of an XML document that it contains contents according to the schema
constraints, is called the process of ________.
A. Marshaling
B. Unmarshalling
C. Validation
D. None of these

Question No: 25 (Marks: 1)

In JAXB, If a client application wants to convert a JAXB-derived java object into XML data , It will use
the_____________ for this purpose.<mytag : hello/>
A. Marshal function
B. Unmarshal function
C. JAXBContext
D. None of these

Question No: 26 (Marks: 1)

Which of the following is/are correct about UDDI?.


A. UDDI is a specification for a distributed registry of web services
B. UDDI is an XML-based standard for describing, publishing, and finding web servicespage
C. UDDI is platform independent, open framework
D. All of the given options

Question No: 27 (Marks: 1)

In JAXB, Binding runtime framework provides _________operations for accessing, manipulating and
validating XML contents.
A. Unmarshalling
B. marshalling
C. Both a & b
D. External

Question No: 28 (Marks: 1)

Which of the following is/are part(s) of JAXB implementation?


A. Schema compiler
B. Schema generator
C. JDOM
D. Schema compiler and Schema generator

Question No: 29 (Marks: 1)

In JAXB, UNMARSHALLING means:A programming language


A. Reading an XML instance document into Java content tree
B. Writing an XML instance document into Java content tree
C. Reading a Java content tree into an XML document
D. Writing a Java content tree into an XML document

Question No: 30 (Marks: 1)

JDOM XML parser can_____________ an element in a XML file.


A. Add
B. Delete
C. Both a & b
D. None of these

Question No: 31 (Marks: 1)

In JDOM, getChild("subelementName"); will return_______________ child/children.

A. First
B. Second
C. Third
D. Fourth

Question No: 32 (Marks: 1)

In JDOM, to create a DocumentBuilder object OBJ, we will write______.


A. DOMBuilder OBJ = new DOMBuilder();
B. SAXBuilder OBJ = new SAXBuilder();
C. JDOMBuilder OBJ = new JDOMBuilder();
D. JDOMBuilder OBJ = create JDOMBuilder();

Question No: 33 (Marks: 1)

Text classes in JDOM represents the ______of XML tag.


A. Text
B. Element
C. Attribute
D. Margin

Question No: 34 (Marks: 1)

Which methods is aHttpServletResponse method?


A. getMethod()
B. getProtocol()
C. setAttribute(String, Object)
D. setContentType()

Question No: 35 (Marks: 1)

In the context of Session Tracking, storing state on the server side makes __________ really
complicated as states need to be stored for each client.
A. server
B. client
C. session
D. servlet

Question No: 36 (Marks: 1)

Codes indicates the server side error is____________.


A. 401
B. 402
C. 403
D. 503

Question No: 37 (Marks: 1)

JDOM works with___________ and combines the better of the two.


A. DOM APIs
B. Sax APIs
C. Both a & b
D. None of these

Question No: 38 (Marks: 1)

In an XML document, which of the following JDOM parser components represents comments?
A. Comment
B. Element
C. Attribute
D. text
Question No: 39 (Marks: 1)
Which component of JDOM represents DOM tree?
A. Document
B. Element
C. Attribute
D. text

Question No: 40 (Marks: 1)

Which of the following statements about JDOM Parser is correct?


A. DOM is typically SAX parser API
B. JDOM is typically DOM parser API
C. JDOM is typically java developer friendly API
D. JDOM is typically C# developer friendly API

Question No: 41 (Marks: 3)

Write down the difference between persistent and non-persistent cookie?

Question No: 42 (Marks: 3)

Write the names of two cookies that are supported by the Java servlet?

Question No: 43 (Marks: 3)

Write down the names of methods that are used to execute SELECT and DELETE queries?
Question No: 44 (Marks: 3)

Thin driver is one of the JDBC drivers. You are required to write its advantages and disadvantages that
you have learned in this course.

Question No: 45 (Marks: 3)

When connecting to a database from Java code, it is recommended to put connection code into the try-
catch block. Give the reason for putting that code in a try-catch block.

Question No: 46 (Marks: 3)

Write down any two different ways to view the web service architecture?

Question No: 47 (Marks: 5)

There are five well known HTTP methods that are commonly used in REST based architecture. You are
required to write their names and description.

Question No: 48 (Marks: 5)


How many major roles exist within the web service architecture? Write the names of these major roles
and explain them.

Question No: 49 (Marks: 5)

Web Service Protocol Stack consists of four main layers. You are required to write their names.

Question No: 50 (Marks: 5)

You are required to write commonly used four methods of DriverManager class.

You might also like