You are on page 1of 6

MUFFAKHAM JAH COLLEGE OF ENGINEERING AND TECHNOLOGY

INFROMATION TECHNOLOGY DEPARTMENT


INTERNAL EXAMINATION-I
Month March Year 2015-16 Time 1 hour Max Marks 25 Marks
Class B.E. ITD 2/4 II SEM (A,B) SUBJECT Web Technologies- BIT253

Q.NO QUESTION
Identify the differences between WWW and Internet
The World Wide Web, or simply Web, is a way of accessing information over the medium of the Internet.
It is an information-sharing model that is built on top of the Internet. The Web uses the HTTP protocol,
only one of the languages spoken over the Internet, to transmit data. Web services, which use HTTP to
allow applications to communicate in order to exchange business logic, use the Web to share
information. The Web also utilizes browsers, such as Internet Explorer or Firefox, to access Web
1
documents called Web pages that are linked to each other via hyperlinks. Web documents also contain
graphics, sounds, text and video.

The Internet is a massive network of networks, a networking infrastructure. It connects millions of


computers together globally, forming a network in which any computer can communicate with any other
computer as long as they are both connected to the Internet. Information that travels over the Internet
does so via a variety of languages known as protocols.

Enumerate differentiate between Web-based and REST style services?

No. SOAP REST


1) SOAP is a protocol. REST is an architectural style.
SOAP stands for Simple Object
2) REST stands for REpresentational State Transfer.
Access Protocol.
SOAP can't use REST because it is a REST can use SOAP web services because it is a
3)
protocol. concept and can use any protocol like HTTP, SOAP.
SOAP uses services interfaces to
4) REST uses URI to expose business logic.
expose the business logic.
2 JAX-WS is the java API for SOAP
5) JAX-RS is the java API for RESTful web services.
web services.
SOAP defines standards to be
6) REST does not define too much standards like SOAP.
strictly followed.
SOAP requires more bandwidth and REST requires less bandwidth and resources than
7)
resources than REST. SOAP.
RESTful web services inherits security measures from
8) SOAP defines its own security.
the underlying transport protocols.
SOAP permits XML data format REST permits different data format such as Plain text,
9)
only. HTML, XML, JSON etc.
10) SOAP is less preferred than REST. REST more preferred than SOAP.
Explain Why XML schema preferred over DTD is.

No. DTD XSD


DTD stands for Document Type
1) XSD stands for XML Schema Definition.
Definition.
DTDs are derived from SGML
2) XSDs are written in XML.
syntax.
3) DTD doesn't support datatypes. XSD supports datatypes for elements and attributes.
4) DTD doesn't support namespace. XSD supports namespace.
3
DTD doesn't define order for child
5) XSD defines order for child elements.
elements.
6) DTD is not extensible. XSD is extensible.
XSD is simple to learn because you don't need to
7) DTD is not simple to learn..
learn new language.
DTD provides less control on XML
8) XSD provides more control on XML structure.
structure.

Q.NO QUESTION
4A
Explain the different categories of HTML tags with examples. List the new tags introduced in
HTML5.

1 Basic HTML
2 Formatting (<bdi> <mark> <meter> <progress> <ruby> <rp> <rt><time> <wbr>)
3 Forms and Input(<datalist> <keygen> <output>)
4 Frames
5 Images(<canvas> <figcaption> <figure>)
6 Audio / Video(<audio> <source> <track> <video>)
7 Links (<nav>)
8
Lists (<menuitem>)
9 Tables
10 Styles and Semantics(<header> <hgroup> <footer> <main> <section> <article> <aside>
<details> <dialog> <summary>)
11 Meta Info
12 Programming(<embed>)
Explain CSS Box model and Write about different CSS selectors.

4B A CSS selector is the part of a CSS rule set that actually selects the content you want to style.

a) Universal Selector

b) Element Type Selector

c) ID Selector

d) Class Selector

e) Attribute Selector/ Inline Selector

Illustrate HTML form validation using java script


function validateForm() {
var x = document.forms["myForm"]["fname"].value;
if (x == null || x == "") {
alert("Name must be filled out");
return false;
}
}
5A

<form name="myForm" action="demo_form.asp" onsubmit="return validateForm()"


method="post">
Name: <input type="text" name="fname">
<input type="submit" value="Submit">
</form>
5B Write an XML document for students details and prepare a DOM Tree for it.

<?xml version="1.0"?>
<!DOCTYPE STUDENTS SYSTEM "E:\XML1\STUDENT.dtd">
<STUDENTS>
<STUDENT>
<NAME> ABCD </NAME>
<ID> 2007IT51 </ID>
<AGE> 9</AGE>
<ADDRESS> 12S</ADDRESS>
</STUDENT>
<STUDENT>
<NAME> ABCDE </NAME>
<ID> 2007IT52 </ID>
<AGE> 11 </AGE>
<ADDRESS> 11B </ADDRESS>
</STUDENT>
</STUDENTS>

STUDENTS

STUDENT STUDENT

NAME ID AGE ADDRESS NAME ID AGE ADDRESS

Summarize XML processors, XQuery and XPath.

XPath is used to navigate through elements and attributes in an XML document.


6A
 XPath is a syntax for defining parts of an XML document
 XPath uses path expressions to navigate in XML documents
 XPath contains a library of standard functions
 XPath is a major element in XSLT
 XPath is a W3C recommendation

XQuery is designed to query XML data - not just XML files, but anything that can appear as
XML, including databases.

 XQuery is the language for querying XML data


 XQuery for XML is like SQL for databases
 XQuery is built on XPath expressions
 XQuery is supported by all major databases
 XQuery is a W3C Recommendation

Sl.No. DOM SAX


1 DOM parser is a tree-based API SAX parser is an event-based API.
2 Stores the entire XML document into Doesn’t store the XML in memory
memory before processing
3 Occupies more memory Occupies less memory
4 Traverse in any direction Top to bottom traversing
5 Good for reading data/configuration files Good for very large documents
Explain the terms SOAP, WSDL and UDDI.

SOAP

SOAP is an XML-based protocol for exchanging information between computers.

 SOAP is a communication protocol.


 SOAP is for communication between applications.
 SOAP is a format for sending messages.
 SOAP is designed to communicate via Internet.
 SOAP is platform independent.
 SOAP is language independent.
 SOAP is simple and extensible.
6B  SOAP allows you to get around firewalls.
 SOAP will be developed as a W3C standard.

WSDL

WSDL is an XML-based language for describing web services and how to access them.

 WSDL stands for Web Services Description Language.


 WSDL was developed jointly by Microsoft and IBM.
 WSDL is an XML based protocol for information exchange in decentralized and distributed
environments.
 WSDL is the standard format for describing a web service.
 WSDL definition describes how to access a web service and what operations it will perform.
 WSDL is a language for describing how to interface with XML-based services.
 WSDL is an integral part of UDDI, an XML-based worldwide business registry.
 WSDL is the language that UDDI uses.
 WSDL is pronounced as 'wiz-dull' and spelled out as 'W-S-D-L'.

UDDI

UDDI is an XML-based standard for describing, publishing, and finding web services.

 UDDI stands for Universal Description, Discovery, and Integration.


 UDDI is a specification for a distributed registry of web services.
 UDDI is platform independent, open framework.
 UDDI can communicate via SOAP, CORBA, and Java RMI Protocol.
 UDDI uses WSDL to describe interfaces to web services.
 UDDI is seen with SOAP and WSDL as one of the three foundation standards of web
services.
 UDDI is an open industry initiative enabling businesses to discover each other and define
how they interact over the Internet.

You might also like