Sunteți pe pagina 1din 4

Scheme of Evaluation

DRIVE
PROGRAM
SEMESTER
SUBJECT CODE & NAME
BK ID
CREDITS
MARKS

SUMMER 2016
MCA(REVISED FALL 2012)
5
MCA5010-WEB TECHNOLOGIES
B1547
4
60

Note: Answer all questions. Kindly note that answers for 10 marks questions should be
approximately of 400 words.

Q.No

Question and Scheme of Evaluation

Unit/
Page No.

Marks

Total
Marks

Differentiate between TCP and UDP.


The TCP corresponds to the transport layer of OSI reference
model, The TCP is known as a connection-oriented protocol,
which means that a connection is established and maintained
until such time as the message or messages to be exchanged
by the application programs at each end have been exchanged.
TCP makes sure data gets to the destination without errors.
UDP is connection-less transport layer protocol. The UDP port
identifies various applications running on a device. UDP adds no
reliability, flow control or error recovery. Each datagram is
independent of others, and they may be lost by the networks or
arrive out of order. A receiving system remains unaware of the
sending of a datagram unless it arrives.
Describe the features of XML. What are the important rules to keep
in mind about the XML declaration?
XML is popular for many features and few of them are listed
here:
1. Easy Data Exchange: In XML, data and markup are stored
as text that we can configure.
2. Customizing markup language: We can create customized
markup languages using XML, and that represents its
extraordinary power.
3. Self-describing data: The data in XML document is selfdescribing.
4. Structured and integrated data: In XML document we can
specify not only data but the structure of that data can also
be specified.
5. Well-formed XML documents: XML document must follow
the syntax rules set up properly.
6. Valid XML document: An XML document is valid if there is a
document type definition (DTD) associated with it and if the

U1/4

10

10
10

2
A

U4/70,
71

5+5
5

Page 1 of 4

10

document complies with that DTD.


There are few other important rules to keep in mind about the
XML declaration:
o The XML declaration is case sensitive: it may not begin
with <?XML or any other variant.
o If the XML declaration appears at all, it must be the very
first thing in the XML document: not even whitespace or
comments may appear before it; and
o It is legal for a transfer protocol like HTTP to override the
encoding value that you put in the XML declaration, so
you cannot guarantee that the document will actually use
the encoding provided in the XML declaration.
o Elements may not overlap: an end tag must always have
the same name as the most recent unmatched start tag.
o An XML document has exactly one root element.
List and explain the Components of XML processor.

4
A

a) Parser
Every XML processor has a parser. An XML parser converts an
XML document into an XML DOM object - which can then be
manipulated with a JavaScript. The parser's job is to translate
XML markup and data into a stream of bite-sized nuggets, called
tokens, to be used for processing.
b) Event switcher
The event switcher receives a stream of tokens from the parser
and sorts them according to function, like a switchboard
telephone operator of old. Some tokens signal that a change in
behaviour is necessary. These are called events. One event
may be that a processing instruction with a target keyword
significant to the XML processor has been found.
c) Tree representation
The tree representation can take many forms, but there are two
main types.
o The first is a simple structure consisting of a hierarchy of
node lists. This is the kind of structure you would find in a
non-object- oriented approach.
o The other kind is called an object model, where every
node is represented as an object.
d) Tree processor
The tree processor is the part of the program that operates on
the tree model. It can be anything from a validity checker to a
full-blown transformation engine.
Describe the procedure of fetching data from XML to HTML. Give an
example.
The process of fetching data from an XML files to be filled in an
HTML table, using DSO (Data Source Object) and JavaScript.
DSO is an object that operates like a database on the client
side. It will accept information that is organized in a certain way

U7/132

4*2.5

10

2.5
Marks
each
4*2.5
= 10
Marks

U10/198

6+4

6
Page 2 of 4

10

and will manipulate it with its own database engine


For example
<table width="80%" id=nbbeq datasrc="#equipdet" border="1">
<caption>
<span class="style1">example</span>
</caption>
<thead>
<tr>
......
</tr>
</thead>
<tbody>
<tr>
....
</tr>
</tbody>
</table>
Describe five different categories of PHP Operators.

There are many operators used in PHP, few of them are :

Assignment Operators: are used to set a variable equal to a


value or set a variable to another variable's value. Such an
assignment of value is done with the "=", or equal character.

Arithmetic Operators: are used to perform mathematical


operations like addition, subtraction, multiplication, division and
Modulus.

Comparison Operators: Comparisons are used to check the


relationship between variables and/or values. Comparison
operators are used inside conditional statements and evaluate to
either true or false.

String Operators: is used to add two strings together, or more


technically, the period is the concatenation operator for strings.

The Concatenation Operator: The concatenation operator (.) is


used to put two string values together.

Describe about ASP.

U11/221

5*2

10

2
Marks
each
5*2=1
0
Marks

U13/ 257

10

Active Server Pages (ASPs) are Web pages that contain serverside scripts in addition to the usual mixture of text and HTML
Page 3 of 4

10

(Hypertext Markup Language) tags. Server-side scripts are


special code that is put in Web Pages and that code is
processed before it is sent to the Web browser of someone
who's visiting your Web site. When we type a URL in the
Addressbox or click a link on a Web page it means we are
asking a Web server to send a file to the Web browser on our
computer..
Following are some steps that will help us to know about ASP
working:
o The user brings up a Web site where the default page
has the extension .asp.
o The browser requests the ASP file from the Web server.
o The server-side script begins to run with ASP.
o ASP processes the requested file sequentially (topdown), executes any script commands contained in the
file, and produces an HTML Web page.
o The Web page is sent to the browser.
Because our script runs on the server, the Web server does all
of the processing and standard HTML pages can be generated
and sent to the browser.

10

Page 4 of 4

S-ar putea să vă placă și