Web Programming Question Bank
Web Programming Question Bank
RAMAPURAM CAMPUS
Table properties:
i)Exemplify the command used for providing a
border for a table?
a)<TABLE border="1">
b)<T border="1">
c)<TABLE border=1>
d)<TABLE border:"1">
Ans: a)
ii)Express the command used for providing
Caption for a table?
a) <CAPTION>A test table with merged
31 cells<\CAPTION> IO-1 162 Understand
b) <CAP>A test table with merged cells</CAP>
c) <CAPTION>A test table with merged
cells</caption>
d) <CAPTION>A test table with merged
cells</CAPTION>
Ans: d)
2.font-size
a)font-size: xxx-large;
b)font-size: smaller;
c)font-size: 0.8em;
d)All the above
Ans: d)
3. font-weight
a)font-weight: normal; /* Keyword values */ IO_
34 174 Remember
b)font-weight: lighter; /* Keyword values relative to 1
the parent */
c)font-weight: 100; /* Numeric keyword values */
d)All the above
Ans:d)
4.font-style
a)font-style: normal;
b)font-style: italic;
c)font-style: oblique 10deg;
d)all the above
Ans:d)
5.font-varrient
a)font-variant: small-caps;
b)font-variant: common-ligatures small-caps;
c)font-variant: inherit;
d)All the above
Ans:d)
i)Locate command to start Numerals starts with 4.
a) <ol type="1" start="4">
b) <ol type="I" start="4">
c) <ol type="i" start="4">
d)<ol type="a" start="4">
Ans: a)
d) Character String
b) II alone is true
b) Date
c) Time
d) String
a) charAt(index)
6 b) stringAt(index) A 410 L1
c) char(index)
d) string(index)
a) tolower()
7 D 411 L1
b) toLower()
c) tolowercase()
d) toLowerCase()
a) split()
8 b) divide() A 411 L1
c) cut()
d) break()
I - The collection links contains all the links in a document with specified
name or id attributes.
II -You can change an element’s style class dynamically with the style
property.
True or False ?
12 D 486 L2
a) True , True
b) True , False
c) False , True
d) False , False
a) DOM
13 A 485 L2
b) AJAX
c) JSON
d) PARSER
a) Behaviors , Attributes
c) Attributes , Functions
d) Functions , Behaviors
15 a) Always 0 A 451 L1
b) Always 1
c) Depends on the User Input
d) Null character
I- Comments cause the computer to print the text after the // on the screen
when the program is executed
b) True , False
c) False , True
d) False , False
c). /.*[A-Z][0-9].*/.test(password)
a). 223.123
c). 223.12
d). 2.2
19 a) text==pattern D Web L2
b) text.equals(pattern)
c) text.test(pattern)
d) pattern.test(text)
b) Server
d) User side
4 MARKS
23 i) Which statement matches exactly for the concept : Information Hiding A 406 L1
a)Objects know how to communicate but implementation details are hidden
a) 3
b) 81 A 407 L3
c) 4.5
d) error
a) 12.7 , -2.3
c) 12 , -2
d) 13 , -13
a) 2.3 , -2.3
b) 2 , -2 C 408 L3
c) 2.3 , -12.7
d) 2.3 , -2.3
a) The indices starts with 1 and goes upto value of the length
26 a) The indices starts with 1 and goes upto (but no include)value of the length D 446 L1
a) The indices starts with 0 and goes upto value of the length
a) The indices starts with 0 and goes upto (but no include)value of the length
a) Concatnation
b) Splitting D 447 L1
c) Divident
d) Tokenization
a) Cookie.value = value
c) identifier = value
a) createNode()
28 b) createDOMNode() C 483 L1
c) createTextNode()
d) createDom()
ii) The insertBefore method will insert a new child node to parent node as:
i)Which property refers to the text inside an element, including XHTML tags
a) innerHTML
29 b) innerITEM A 485 L1
c) innerTAG
d) innerATTRIBUTE
a) Script
b) Style B 486 L1
c) JavaScript
d) StyleSheet
b) II alone is true
ii) The elements of an array are related by the fact that they normally have
the same _____
a) index
B 397 L1
b) type
c) length
d) size
12 MARKS
c) <script : type-javascript/>
c) I and II is true
c) 9.0 , 9.0
d) 9 . -10
a) 9.2 , 9.8
c) 9.0 , -9.0
d) 9.0 . -10.0
a) 10 , 9
c) 9.0 , 9.0
d) 10 , 10
iii) To Return the DOM node representing the XHTML element whose
id attribute matches id
a) getelementbyid( id )
D 426 L1
b) getElementbyId( id )
c) getElementId( id )
d) getElementById( id )
iv) Choose the correct functions for Displaying the dialog box , put window
in the foreground , put window in background
a) prompt() , focus() , blur()
a) Current Date
b) Current Time
d) Display a dialog box with the text and text box to enter a name
b) A random number
d) 0
b) True , False
c) False , True
d) False , False
II-You can change an element’s style class dynamically with the style
property
c) False , True
d) False , False
I-The createElement method creates a new node and inserts it into the
document.
c) False , True
d) False , False
II-The most recently started interval is stopped when the clearInterval D 485 L2
method is called.
a) True , True
b) True , False
c) False , True
d) False , False
a) true
b) false
c) undefined
d) l
a) true
b) false A Web L3
c) undefined
d) l
a) true
b) false A Web L3
c) undefined
d) 9
a) true
b) false B Web L3
c) undefined
d) l
UNIT 3
9 JSTL out tag is used to evaluate an expression and write the IO-3 L2
result to JspWriter.
a. TRUE
b. FALSE
10 What line of code below might be combined in the same IO-3 L1
JSP page with a validation guard (for example, <%
bean.validationGuard( ); %> ), in order to create an alternate
flow of control for scenarios in which exceptions arise. The
validationGaurd method might throw an exception, which
should cause the flow of control to continue in another user-
defined page (assume JSP 1.0).
a. <%@ page language=”java” errorPage=”errorPage.jsp”
buffer=”4k” %>
b. <%@ page language=”java” buffer=”8k” %>
c. <%@ page language=”java” buffer=”4k” %>
d. <%@ page language=”java”
errorPage=”errorPage.jsp” buffer=”8k” %>
11 Which Error Handling in Java handles runtime errors with IO-3 L1
exceptions, If an exception is not caught in your JSP or
Servlet, Resin will use a special error page to send results
back to the browser, Resin uses a default error page unless
you explicitly provide an error page yourself?
a. Client Request Time Processing Errors
b. Compilation Time Processing Errors
c. JSP Translation Time Processing Errors
d. None of the above
12 Using mail API we cannot send mail from a servlet. IO-3 L2
a. True
b. False
13 The sendError method defined in the HttpServlet class is IO-3 L2
equivalent to invoking the setStatus method with the
following parameter.
a. SC_OK
b. SC_MOVED_TEMPORARILY
c. SC_NOT_FOUND
d. SC_INTERNAL_SERVER_ERROR
e. ESC_BAD_REQUEST
L2
a. True
b. False
26 How do we call one servlet from another servlet? IO-3 L2
a. RequestDispatcher forward() method and
RequestDispatcher include() method is used to
forward the processing of a request to another
servlet and include the another servlet output to the
response
b. RequestDispatcher forward() method and is used to
forward the processing of a request to another servlet
c. RequestDispatcher include() method is used to include
the another servlet output to the response
d. RequestDispatcher forward() method is used include the
another servlet output to the response
and RequestDispatcher include() method is used to forward the
processing of a request to another servlet
ii) RequestDispatcher is used to invoke servlet from another
application because it’s specific for the application.
a. True
b. False
27 i) Which of the following is used for session migration? IO-3 L1
a.Persisting the session in database
b.URL rewriting
c.Create new database connection
d.Kill session from multiple sessions
ii) Find the code to the servlet container calls the service()
method to handle requests coming from the client and to
write the formatted response back to the client.
a. public void service(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException { }
b. public void service(ServletRequest request,
ServletResponse response)
throws ServletException, IOException { }
c. public void service(HttpServletRequest request,
ServletResponse response)
throws ServletException, IOException { }
d. public void service(ServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
}
36 JSP: IO-3
i)What alternatives exist to embedding Java code directly
within the HTML markup of your JSP page?
a. Moving the code into your session manager.
b. Moving the code into scriptlets.
c. Moving the code into JavaBeans and servlets.
d. Moving the code into a transaction manager.
15IT304J/WEB PROGRAMMING
UNIT 4- QUESTION BANK
1 MARKS
Multiple choice Question
1.PHP Stands for? (LL1-Remembering)
7.Which one of the following functions can be used to concatenate array elements to form a
single delimited string? (LL2-Understanding)
A. explode()
B. implode()
C. concat()
D. concatenate()
Ans: B
8. PHP has long supported two regular expression implementations known as ___ and ___.
(LL1-Remembering)
(i) Perl
(ii) PEAR
(iii) Pearl
(iv) POSIX
A. (i) and (ii)
B. (ii) and (iv)
C. (i) and (iv)
D. (ii) and (iii)
Ans: C
10.Which one of the following functions is used to determine whether a class exists?
(LL4-Analyzing)
A. exist()
B. exist_class()
C. class_exist()
D. __exist()
A. 0
B. Nothing
C. True
D. Error
Ans :B
12. Select from the following which version of PHP was added with Exception handling?
(LL5-Evalutaing)
A. PHP 4
B. PHP 5
C. PHP 5.3
D. PHP 6
Ans :B
13. How many methods are available for the exception class? (LL1-Remembering)
A. 5
B. 6
C. 7
D. 8
Ans:C
Ans :C
15.Which function initializes the constants necessary for using the openlog(), clodelog(),
and syslog() functions? (LL5-Evaluating)
A. define_variable()
B. define_log_variable()
C. log_variable()
D. define_syslog_variable()
Ans :D
16. Which function is responsible for sending a custom message to the system log?
(LL5-Evaluating)
A. systemlog()
B. syslog()
C. log_system()
D. sys_log()
Ans :B
Ans :B
18.Which one of the following functions will convert a string to all uppercase?
(LL1-Remembering)
A. strtoupper()
B. uppercase()
C. str_uppercase()
D. struppercase()
Ans:A
19.Which one of the following functions can be used to concatenate array elements to form
a single delimited string? (LL5-Evaluating)
A. explode()
B. implode()
C. concat()
D. concatenate()
Ans :B
<?php
$username = "jasoN";
if (ereg("([^a-z])",$username))
echo "Username must be all lowercase!";
else
echo "Username is all lowercase!";
?>
i) What will be the output of the code?
a) Error
b) Username must be all lowercase!
c) Username is all lowercase!
d) No Output is returned
Answer b)
ii) Instead of echo keyword what can we use to get the output?
a) return
b) cout
c) print
d) display
Answer c)
1. Observe the following code snippet and answer the questions :
<?php
$str1 = "Hello";
$str2 = "Hello World";
echo strcmp($str1, $str2);
?>
i) What will be the output of the code?
a) Error
b) Number less than 0
c) Number greater than 0
d) No Output is returned
Answer b)
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
i) What could be the possible output of above code snippet?
a) Connected successfully
b) Connection failed
c) Error
d) All of the above
Answer d)
ii) What could be the possible code to close the connection in Mysqli object oriented?
a) $conn->close();
b) mysqli_close($conn);
c) $conn = null;
d) close();
Answer a)
4. Recollect and fill the following code snippet and answer the questions :
<?php
// Setting a cookie
__________ ("username", "John Carter", time()+30*24*60*60);
?>
i) Fill in the above code using one of the function?
a) set_cookie()
b) setting-cookie();
c) setcookie();
d) setcookie[];
Answer c)
ii) Select the super global variable with proper syntax to access cookies ?
a) $_COOKIE()
b) $_COOKIE{}
c) $_COOKIE
d) $_COOKIE["username"]
Answer d)
<?php
{ print $x;
?>
ii) What could have been the reason for the output of the above PHP code?
<?php
$x;
print ++$x;
?>
a) -3-4-5
b) -3-4
c) infinite loop
d) no output
Answer d)
ii) What could have been the reason for the output of the above PHP code?
<?php
for ($i++; $i == 1; $i = 2)
?>
a) In for loop
b) After for loop
c) In for loopAfter for loop
d) Infinite loop
Answer c)
ii) What could have been the reason for the output of the above PHP code?
(12marks-Mcq type)
11. Observe the following PHP code and answer the questions?
<?php
return $sum;
?>
iii) What will be the output of the above PHP code if we replace ‘+’ by ‘-’?
iv) What will be the output of the above PHP code if we replace ‘+’ by ‘%’?
v) What will be the output of the above PHP code if we replace ‘+’ by ‘/’?
i) What will be the output of the above PHP code after Pre-increment value of $a?
a) Output =11
b) Output:20
c) Output:29
d) Output:40
Answer a)
ii) What will be the output of the above PHP code after Post-increment value of $a?
a) Output =11
b) Output:20
c) Output:29
d) Output:40
Answer b)
iii) What will be the output of the above PHP code after Pre-decrement value of $a?
a) Output =11
b) Output:20
c) Output:29
d) Output:40
Answer c)
iv) What will be the output of the above PHP code after Post-decrement value of $a?
a) Output =11
b) Output:20
c) Output:29
d) Output:40
Answer d)
13. Observe the following PHP code and answer the questions?
<?php
function multi($num)
{
if ($num == 3)
echo "I Wonder";
if ($num == 7)
echo "Which One";
if ($num == 8)
echo "Is The";
if ($num == 19)
echo "Correct Answer";
}
$can = stripos("I love php, I love php too!","PHP");
multi($can);
?>
ii) What could have been the reason for the output of the above PHP code?
a) The stripos() function finds the position of the last occurrence of a string inside another string.
In this case it returns 7.
b) The stripos() function finds the position of the first occurrence of a string inside another
string. In this case it returns 7.
c) The stripos() function finds the position of the second occurrence of a string inside another
string. In this case it returns 7.
d) The stripos() function finds the position of the third occurrence of a string inside another
string. In this case it returns 7.
Answer b)
14. Which of the following statement is false if we consider above XML document?
<?xml version="1.0" encoding="ISO-8859-1"?>
<book>
<bname>XML Tutorials</bname>
<pages>100</pages>
<price>$300.00</price>
</book>
a)It is a document that refers a single book
b)Document Syntax is Self Explanatory
c)XML document forms a tree structure
d)XML document can have more than one book
i) Give Explanation.
Answer: Statement is partially true. We can have multiple book nodes in xml document but we
need to modify syntax like this below code:
15IT304J/WEB PROGRAMMING
UNIT 5- QUESTION BANK
1 MARKS
ANSWER: A
ANSWER: B
ANSWER: D
A. Debugging is difficult
B. Increases size of the requests
C. Slow and unreliable network connection.
D. All of the mentioned above
ANSWER: D
5. Which of the following made us AJAX popular.? (IO-5) (L1)
A. IBM
B. Microsoft
C. Sun Micro system
D. Google
ANSWER: D
6. Which of the following component of Web service describes interfaces to web services? (IO-
5) (L1)
A. UDDI
B. WSDL
C. SOAP
D. RDF
ANSWER: D
7. What is syntax for creating an XMLHttpRequest object? (IO-5) (L1)
A. variable = new XMLHttpRequest();
B. variable=new XMLrequest;
C. variable= XML Http request
D. var= newXMLhttpRequest
ANSWER: A
8. Which function is a function passed as a parameter to another function.? (IO-5) (L1)
A. showback
B. callback
C. callreturn
D. callservice
ANSWER: B
9. Which application can be used for Web services can be discovered?(IO-5) (L1)
A. UDDI
B. RDF
C. SOAP
D. WSDL
ANSWER: A
ANSWER: A
13. Which Web services can be used to code and to decode data?(IO-5) (L1)
A. html
B. javascript
C. php
D. xml
ANSWER: D
ANSWER: B
15. Which of the following role of web service architecture utilizes an existing web service by
opening a network connection and sending an XML request? (IO-5) (L1)
E. A. Service Requestor
F. B. service provider
G. C. Service acceptor
H. D. Service response
ANSWER: A
16. The basic Web Services platform is combination of _____ and _______. (IO-5) (L1)
A. HTML+HTTP
B. XML+HTML
C. XML + HTTP
D. HTTP+XHTML
E.
ANSWER: C
17. Which one is used to convert your application into Web-Application? (IO-5) (L1)
A. webservices
B. http services
C. java services
D. ajax service
ANSWER: A
18. Which protocol is used to Web services communication? (IO-5) (L1)
A. closed protocol
B. web protocol
C. open protocols
D. communication protocol
ANSWER: C
19. Which function is used for a web page to communicate with a web server while a user type
characters in an input field? (IO-5) (L1)
A. showHint()
B. showBack()
C. showCall()
D. callback
ANSWER: A
ANSWER: C
4 MARKS
1. Consider the following figure and find out the answer for questions below .(IO-5)
A. showback
B. callreturn
C. callservice
D. callback
2. Consider the above Ajax architecture and answer the following. (IO-5)
i) Which language is/are used for Server interact with the database? (L1)
3. Consider the layers of web services and answer the following 2 questions. (IO-5)
i) Which one of the following is right about Service Description layer in Web Service
Protocol Stack? (L1)
A. This layer is responsible for describing the public interface to a specific web
service
B. Currently, service description is handled via the Web Service Description
Language (WSDL)
C. Both of the above
D. None of the above
ii) Which of the following layer in Web Service Protocol Stack is responsible for
centralizing services into a common registry and providing easy publish/find
functionality? (L1)
A. Service Transport
B. XML Messaging
C. Service Description
D. Service Discovery
4. Find out the correct answers for the following web services. (IO-5)
i) Which of the following is a components of a Web Service architecture? (L1)
A. SOAP
B. UDDI
C. WSDL
D. All of the above.
ii) Which of the following is correct about SOAP? (L1)
A. SOAP allows you to get around firewalls.
B. SOAP will be developed as a W3C standard.
C. Both of the above.
D. None of the above.
iii) Does web Services is not tied to any one operating system or programming language?.
(L1)
A. false
B. true
iv) Whether web services takes the help of XML to tag the data, format the data?. (L1)
A . true
B false
5. Consider the following java web services related questions and choose the right
options.(IO-5)
i) What are the programming languages used for accessing java web service application? (L1)
A. .Net and PHP
B. C++
C. Python
D. All the above
ii) Which servlet does the struts framework use? (L1)
A. EntryServlet
B. StrutsServlet
C. ActionServlet
D. BasicServlet
iii) What protocol can be used for SOAP web services? (L1)
A. HTML based protocol
B. XML based protocol
C. PHP based protocol
D. All the above
iv) Whether SOAP web services can be written in any programming language and executed
in any platform? (L1)
A. TRUE
B. FALSE
6. Consider the following fragment, Find out the answers for i to iv questions .(IO-5)
<definitions
name="W3SCHOOLS"
targetNamespace=http://example.org/math/
xmlns=http://schemas.xmlsoap.org/wsdl/>
<!-- abstract definitions -->
<types> ...
<message> ...
<portType> ...
<!-- concrete definitions -->
<binding> ...
<service> ...
</definition>
i) Which tag is used to define all the complex data types, which will be used in the message
exchanged between the client application and the web service? (L2)
A. <datatypes>
B. <types>
C. <message>
D. <Portype>
ii) What is the use of <portType> tag in this above program? (L2)
A. Encapsulate every input and output message into one logical operation.
B. Encapsulate every input and output message into more logical operation.
C. To define the message which is exchanged between the client application and the web
server.
D. None of the above
iii) Does WSDL document actually tells a client application about the types of SOAP mssages
which are sent and accepted by the Web service? (L1)
A. True
B. False
iv) Whether <service> tag is a name given to the web service itself or not? (L1)
A. False
B. True
ii)Which POST method can be used to send the request to the server ? (L2)
A. send()
B. send(string)
C. none of above
8. Consider the following fragment. (IO-5)
<script>
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML =
this.getAllResponseHeaders();
}};
xhttp.open("GET", "ajax_info.txt", true);
xhttp.send();
i) Which function for the above example returns all header information from the server resource?
(L2)
A. getResponseHeader()
B. getAllResponseHeaders()
C. both A & B
D. None
ii) What is the syntax used for synchronous request for open() method? (L2)
A. xhttp.open("GET", "ajax_info.txt", false)
B. xhttp.open("GET", "ajax_info.txt", true)
C. xhttp.open("POST", "ajax_info.txt", false)
D. Both A & B
A. Protocol
B. Language
C. Carrier
D. Markup
ii)Which attribute is used to define the data types used in SOAP?
A. encodingStyle
B. Datatypes
C. Types
D. None
12MARKS
1. Consider the following fragment, Find out the answers for below. (IO-5)
<script>
var xhttp=new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML = this.getResponseHeader("Last-
Modified");
}
};
xhttp.open("GET", "ajax_info.txt", true);
xhttp.send();
</script>
ii) Relating to the XMLHttpRequest Object, does the order in which one calls the "open" method
and assign a function to the "onreadystatechange" event handler matter? (L1)
A. Yes
B. No
iii) Assume that "xmlhttp" is a user-defined variable that carrys the Ajax requesting object,
xmlhttp.status can carry a value of 0 after a successful request. (L1)
A. True
B. False
v) Analyze and replace the XMLhttp object into old version of Internet browser supporting object.
(L2)
vi) Regarding the XMLHttpRequest Object, does the order in which one calls the "open"
method and assign a function to the "onreadystatechange" event handler matter? (L1)
A. True
B. False
Ans: B
i. Assuming that "xmlhttp" is a user-defined variable that carrys the Ajax requesting object,
xmlhttp.status can carry a value of 4 after a successful request. (L1)
A. True
B. False
ii. The XMLHttpRequest object can be disabled via browser settings. (L1)
A. True
B. False
iii. Which is the appropriate code to begin a HTTP GET request? (L2)
A. request.open(“GET”,”data”);
B. request.open(GET,”data.csv”);
C. request.open(“GET”,”data.csv”);
D. request.open(“GET”);
iv. What is the meaning of readyState value =4 in this above code? (L2)
v. What is the meaning of status number 200 in this above code? (L2)
A. OK
B. Forbidden
C. Not Found
D. Submit
vi. What is the value of status of the XMLHttpRequest if request not initialized? (L2)
A. 1
B. 3
C. 4
D. 0
ii) Which annotation is used as starting point for developing a JAX-WS web service? (L1)
A. javax.jws.WebMethod
B. javax.jws.WebService
C. javax.jws.soap.SOAPBinding
D. javax.xml.ws.Endpoint
iii) Which HTTP method is associate with SOAP Web service? (L1)
A. Put
B. Post
C. Get
D. Delete
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2001/12/soap-envelope" SOAP
-ENV:encodingStyle=" http://www.w3.org/2001/12/soap-encoding">
<soap:Body>
<Guru99WebService xmlns="http://tempuri.org/">
<TutorialID>int</TutorialID>
</Guru99WebService>
</soap:Body>
</SOAP-ENV:Envelope>
i)What are the basic elements present in SOAP web service? (L1)
ii)Which element is used to encapsulate all the details in the SOAP message? (L1)
A. Header
B. encodingstyle
C. Envelope
D. None of the above
iii) Does header element can contain information such as authentication credentials which can be
used by the calling application? (L1)
A. True
B. False
iv) Which element is contains the actual data which needs to be sent between the web service
and the calling application? (L1)
A. Header
B. Body
C. Envelope
D. None of the above
A.getEmployeeDetails
B. getEmployeeDetailsOperation
C. getEmployeeDetailsMethod
D. getEmployeeDetailsWebMethod
ii) What is the correct web.xml-snippet to declare a session time-out of 3 minutes in web.xml?
(L1)
A. <session-config> <session-timeout>3</session-timeout> </session-config>
B. <session-config> <session-timeout>180</session-timeout> </session-config>
C. <session-timeout> <session-time>3</session-time> </session-timeout>
D. <session-timeout> <session-time>180</session-time> </session-timeout>
iii) Which two statements are true about the Web services? (any 2) (L1)
A. SOAP messages are compressed during transport to reduce size of payload.
B. You have to implement session tracking via HTTP cookies.
C. The WSDL defines services as collections of network endpoints.
D. All data shared between Java and non-Java components must be in XML format.
E. Data interchange is doen via in XML.
vi) We have created one web service which is deployed in web container, now we need to
support WS client session in our service. However we have to expire a session in case user
session is inactive for 10 mins. Which file we need to modify for this requirement. (L1)
A. security.xml
B. sun-web.xml
C. web.xml
D. webservices.xml
i) What is the correct WSDL generated from this Web Service declaration?(L2)
A. <definitions> . . .
<portType name=""TaxiWebService""> . . .</portType>
<binding name=""TaxiPortBinding"" type=""...""> . . . </binding>
<service name=""TaxiServiceImplService"">
<port name=""TaxiPort"" binding=""tns:TaxiPortBinding""> . . . </port>
</service>
</definitions>
B. <definitions> . . .
<portType name=""TaxiService""> . . .</portType>
<binding name=""TaxiPortPortBinding"" type=""...""> . . . </binding>
<service name=""TaxiWebService"">
<port name=""TaxiPortPort"" binding=""tns:TaxiPortPortBinding""> . . . </port>
</service>
</definitions>
C. <definitions>
...
<portType name=""TaxiService""> . . .</portType>
<binding name=""TaxiServiceImplPortBinding"" type=""...""> . . . </binding>
<service name=""TaxiServiceImplService"">
<port name=""TaxiServicePort"" binding=""tns:TaxiServiceImplPortBinding""> . . . </port>
</service>
</definitions>
D. <definitions>
...
<portType name=""TaxiService""> . . .</portType>
<binding name=""TaxiPortBinding"" type=""...""> . . . </binding>
<service name=""TaxiWebService"">
<port name=""TaxiPort"" binding=""tns:TaxiPortBinding""> . . . </port>
</service>
</definitions>
ii) What is the correct definition of WSDL's port element? (L1)
A. Contains data type definitions using type system.
B. Description of an action supported by the service.
C. Set of operations supported by one or more Endpoints.
D. A single endpoint defined as a combination of a binding and a network address.