cs311 Sample Paper by ???? ???? ??'? CH
cs311 Sample Paper by ???? ???? ??'? CH
Which of the following implements the Streaming API for XML (StAX) standard?
A. XSLT
B. JAXP
C. SAX
D. JAAS
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
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
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
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
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
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()
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()
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
In JAXB, the client application through interfaces generated by the binding compiler _____ modify the
XML data.
A. Can
B. Cannot
C. Must
D. Mustnot
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
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
In JAXB, Binding runtime framework provides _________operations for accessing, manipulating and
validating XML contents.
A. Unmarshalling
B. marshalling
C. Both a & b
D. External
A. First
B. Second
C. Third
D. Fourth
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
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
Write the names of two cookies that are supported by the Java servlet?
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.
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.
Write down any two different ways to view the web service architecture?
There are five well known HTTP methods that are commonly used in REST based architecture. You are
required to write their names and description.
Web Service Protocol Stack consists of four main layers. You are required to write their names.
You are required to write commonly used four methods of DriverManager class.