You are on page 1of 8

B.E./B.TECH EXAMINATION, DEPT OF CSE, NOV/DEC 2011 IT2353- WEB TECHNOLOGY PART-A 1.

How will you create a password field in a HTML form? <form> Password: <input type=passwordname=pwd/> </form> 2.List any 4 common browsers. Internet Explorer,FireFox,Netscape,Mozilla, Opera,Google Chrome,Apple safari. 3.Give the syntax of a CSS rule. SelectorString{ propertyname1:value1; Propertyname:value2;} 4.What is Javascript statement?Give an example. Java Script has three types of statements.First, there is a expression statement,that is ,a statement that consists entirely of an expression.Typically expression statements include assignment statements,such as i=5; j++; The second type is the block statement,which is simply a set of statements enclosed in braces { and }. Finally,there are statement that begin with keywords such as var and if,which are called keyword statements. 5.Write a code to return the full URL of a document. <html> <body> The full URL of this document is: <script type=text/javascript> Document.write(document.URL); </script> </body> </html> 6.How is session tracking achieved by URL rewriting? You can append some extra data on the each URL that identifies the session, and the server can associate that session identifier with data it has stored about that session.This is also an excellent solution,and even has the advantage that it works with browsers that dont support cookies or where the user has disabled cookies. 7.How is XML parsing done with SAX? A parser which implements SAX(ie,a SAX Parser)functions as a sream parser,with an event driven API. The user defines a number of callback methods that wil be called when events occur during parsing. The SAX event includes: >XML Text nodes >XML Element nodes >XML Processing instructions >XML Comments

-1-

B.E./B.TECH EXAMINATION, DEPT OF CSE, NOV/DEC 2011 IT2353- WEB TECHNOLOGY Events are fired when each of these XML features are encountered,and again when the end of them is encountered.XML attributes are provided as part of the data passed to element events. 8.What is the purpose of XSLT? XSLT is used to transform an XML document into another XML document , or another type of document that is recognized by a browser,like HTML and XHTML. 9.List the JAX-RPC technology. (i).Java APIs for XML-based Remote Procedure Call(JAX-RPC)help with Web service interoperability and accessibility by defining Java APIs that Java applications use to develop and access Wb services. (ii).JAX-RPC fully embraces the heterogeneous nature of Web services (iii).It allows a JAX-RPC client talk to another Web services deployed on a different platform and coded in a different language. (iv).similarly,it also allows clients on other platforms and coded in different languages to talk to a JAX-RPC service. (v).JAX-RPC also defines the mapping between WSDL service descriptions and Java interfaces. 10.What is UDDI? UDDI is a directory service where companies can register and search for Webservices. (i).UDDI stands for Universal Description,Discovery and integration. (ii).UDDI is a directory for storing information about web services. (iii).UDDI is a directory of web services interfaces described by WSDL. (iv).UDDI communicates via SOAP. (v).UDDI is built into the Microsoft .NET platform.

PART-B 11a i) Explain in detail about TCP/IP. TCP / IP are two different protocol but treated as a single protocol in internet services such as e-mail, web browsing , file downloads, accessing remote database. A key element of IP is IP Address -32 bit number Funtion of IP : to transfer data from one computer to another The IP software running on the source creates a packet, which is a sequence of bit representing the data to be transferred along with source and destination IP address and some other header information. The sequence of computer that a packet travels through from source to destination is known as it route A separate protocol BGP is used to pass network connectivity information IP based communication is unreliable .

-2-

B.E./B.TECH EXAMINATION, DEPT OF CSE, NOV/DEC 2011 IT2353- WEB TECHNOLOGY TCP is a higher level protocol that extends IP to provide additional functionality ,including reliable communication based on the concept of communication It provide a full duplex connection It provide reliable data transmission by demanding acknowledgement for each packet Another feature of TCP:Port The Port allows TCP to be used to communicate with many different application on a machine

11 a ii) Explain the purpose and way of creating list in HTML documents The three types of list available in HTML. They are Unordered list Ordered list Definition list Unordered list: A Bullet list Tag used : <ul> <li> Bulleted list item </li> <li> Bulleted list item </li> </ul> Give example to this list Ordered list: A Numbered list Tag used:<ol> <li> Numbered list item </li> <li> Numbered list item </li> </ol> Give example: Definition list : A List of terms and definition for each Tag used:<dl> <dt>Term 1</dt> <dd>definition of term 1 </dd> <dt> Term 2 </dt> <dd>definition of term 2 </dd> </dl> Give example: 11 b i) List any 2 difference between HTML and XHTML with respect to element. Also explain about the XHTML DTD XHTML: XHTML elements must be properly nested,always closed and should be in lower case The values in attribute should be coated The empty element should be terminated by itself (/) HTML: HTML may or may not be in uppercase The value can be listed as it is
-3-

B.E./B.TECH EXAMINATION, DEPT OF CSE, NOV/DEC 2011 IT2353- WEB TECHNOLOGY The empty element need not to be terminated DOCTYPE declaration: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> XHTML DTD: The abstract syntax for each XHTML is defined by a set of text file known as an XML document type definition(DTD) It consists of Element type declaration Attribute type declaration XML entity declaration 11 b ii) Discuss on any 4 HTTP request methods. Request methods : HEAD,GET,POST,PUT,DELETE,TRACE,OPTION,CONNECT,PATCH HEAD: return the same HTTP header field that would be returned if a GET method were used,but not return message body that would be returned to a GET GET : return the resource specified by the Request-URI as the body of a response message POST: pass the body of this request message on as data to be processed by the resource specified by the Request-URI. OPTION: return a list of HTTP method that may be used to access the resource specified by the Request-URI. 12 a i) Explain any 8 CSS text properties. Text-decoration : none(initial value ), underline, overline, line-through, or spaceseparated list of values other than none Letter-spacing : normal (initial value ) or a length representing additional space to be included between adjacent letter in words . negative value indicated space to be removed.
Color : The color property is used to set the color of the text With CSS, a color is most often specified by:

a HEX value - like "#ff0000" an RGB value - like "rgb(255,0,0)" a color name - like "red"

Text transform : The text-transform property is used to specify uppercase and lowercase letters in a text.It can be used to turn everything into uppercase or lowercase letters, or capitalize the first letter of each word. Text Indentation:The text-indentation property is used to specify the indentation of the first line of a text.

Text Alignment:The text-align property is used to set the horizontal alignment of a text.Text can be centered, or aligned to the left or right, or justified.When text-align is set to
-4-

B.E./B.TECH EXAMINATION, DEPT OF CSE, NOV/DEC 2011 IT2353- WEB TECHNOLOGY "justify", each line is stretched so that every line has equal width, and the left and right margins are straight White space: The white-space property specifies how white-space inside an element is handled. 12 a ii) Discuss in detail about javascript Array object. Array Object : To construct object that have special array characteristics and that inherit a number of array-oriented object . Creating an array: With no arguments : var ary1=new Array(); Alternatively , with initial values var ary2=new Array(4, true, OK); Another way , by using array initialiser var ary3=[4, true, OK]; It can be used to create a multidimensional array Dynamically changing array length >ary2.length=2; Array methods : toString() , sort(Object ) , shift(), push( any type ), pop() Example of array object. 12 b ii) Discuss about javascript debugging Firebug Firebug is a powerful extension for Firefox that has many development and debugging tools including JavaScript debugger and profiler. Venkman JavaScript Debugger Venkman JavaScript Debugger (for Mozilla based browsers such as Netscape 7.x, Firefox/Phoenix/Firebird and Mozilla Suite 1.x) Introduction to Venkman Using Breakpoints in Venkman Internet Explorer debugging Microsoft Script Debugger (for Internet Explorer) The script debugger is from the Windows 98 and NT era. It has been succeeded by the Developer Toolbar Internet Explorer Developer Toolbar
-5-

B.E./B.TECH EXAMINATION, DEPT OF CSE, NOV/DEC 2011 IT2353- WEB TECHNOLOGY Microsofts Visual Web Developer Express is Microsofts free version of the Visual Studio IDE. It comes with a JS debugger. For a quick summary of its capabilities see [1] Internet Explorer 8 has a firebug-like web development tool by default (no add-on) which can be accessed by pressing F12. The web development tool also provides the ability to switch between the IE8 and IE7 rendering engines. TF: Javascript Unit Testing Farm 12 b ii) Explain in detail about CSS border and CSS outline. Border - A border that goes around the padding and content. The border is affected by the background color of the box Border Color-You can set the color of a border independently with the bordercolor property. border-color: value; Border Style-You can set the style of a border independently with the borderstyle property.
border-style: value; CSS Outline An outline is a line that is drawn around elements (outside the borders) to make the element "stand out".The outline shorthand property sets all the outline properties in one declaration.The properties that can be set, are (in order): outline-color, outline-style, outline-width.If one of the values above are missing, e.g. "outline:solid #ff0000;" outline-color Specifies the color of the outline
outline-style outline-width

Specifies the style of the outline Specifies the width of outline

13 a ) Explain in detail about DOM event handling . also explain with an example of creating a context menu. One of the keys to creating dynamic web pages is the use of event handlers. These allow you to execute specific script code in response to user or system initiated actions. Most events relate to the browser GUI, such as mouse movements, button or key clicks and updates to form inputs. These are usually tied to a specific page element. Others relate to browser actions such as when a document or image completes loading.Some objects have default actions defined for certain events, such as clicking on a hypertext link. The browser's normal action in that event is to load the URL associated with the link. In any case, all events follow the same model. The DOM provides methods for capturing events so you can perform your own actions in response to them.
-6-

B.E./B.TECH EXAMINATION, DEPT OF CSE, NOV/DEC 2011 IT2353- WEB TECHNOLOGY It also provides an Event object which contains information specific to a given event that can be used by your event processing code. 13.b.What is a session?Explain how client state is maintained using session and also explain about session tracking and session management using an example. Session-web based applications are responsible for maintaining the state of the user called session. Contains a special identifier called session ID. Collection of HTTP request associated with single session ID called session. Creating a session: Associating with Httpsession object-maintained by server. Calls the getsession() method-HttpServletRequestarameter. Storing and Retrieving Attributes: Visits the Greeting servlet. Session attribute-name value pair-stored in Httpsession object. Two methods of Httpsession object used-setAttribute(String name,Object obj) Doget method() and dopost() method. Session Termination: Will only be good until session expires or invalidated. Server calls the invalidate(). If setMaxInactiveInterval() is not called-server determine default expiration. An Example. 14.a. Example in detail about XPATH nodes. Root of XPath-document root. Root of elementary hierarchy-document element. Location Path: Ex: <xsl:template match=/> XPath expression r[epresents one or more nodes location path. <xsl:value-of select=child::message/> 2 parts: Axis name followed by (::). Node test. A node test portion has two types: 1.child::message is a name test. 2.node-type test: Ex: Descendant::text() -Relationship of nodes-parents,children,siblings,ancestor. Location path has two types: Relative path Absolute path 14.b.What is javaBeans component? How will you use the JSP language elements for accessing beans in your JSP pages? JavaBeans Specification[SUN-JAVABEANS-10.1]. Class TestBean defines requirements. getwelcome() method class contained in named package-my
-7-

B.E./B.TECH EXAMINATION, DEPT OF CSE, NOV/DEC 2011 IT2353- WEB TECHNOLOGY simple property design patterns getter simple property design patterns. Bean property named welcome witheach instances of TestBean. Ex: <c:out value=${testbean.welcome}/> For Boolean property: Public Boolean is Even(){} Instantiating Bean Objects: Instantiating by servlets rather by JSP doc. Ex: Import my.TestBean; .. Httpsession session=request.getsession TestBean testBean=new TestBean(); Setting JavaBean component properties through jspgetproperty,explanation and source of the property value and property type. Retrieving JavaBean component properties through jsp:getproperty, expression and scriplets. 15.a.Explain in detail about WSDL. Content of the document-spaecified by WSDL doc-uses embedded XML schema. WSDL 1.1 version. targetNamespace attribute. Config.xml file input to wscompile. WSDL ports:Elements repeated number of times:<message>,<portType>,<binding> and <services>. WSDL documents-content of the document-1 inout,1 output. SOAP over HTTP communication. WSDL URL: http://localhost:8080/converter/currency?WSDL. WSDL Bindings-defines message format and protocol using soap:binding elements (attributes style and transport)and soap operation element. An example. 15.b.Discuss in detail about SOAP. Soap is an simple XML-based protocols to let application exchange information over Http. .SOAP elements:Document root-Envelope-has optional header-body elment-contains optionl fault element. Header element and body element. Implement a sytle of communication called Remote Procedure protocol. SOAP Body element-actual SOAP message,explanation on SOAP request and SOAP response. SOAP fault elements-holds errors and status information, explain on Fault sub elements,fault code,faultstring, faultactorand details.
SOAP HTTP binding-http request/response. SOAP request can be http POST or http get request HTTP headers-content-TYPE and content length.

-8-

You might also like