CS6501 IP Question Bank

Download as pdf or txt
Download as pdf or txt
You are on page 1of 32

JEPPIAAR ENGINEERING COLLEGE

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

CS6501
INTERNET PROGRAMMING

Question Bank

III YEAR A & B / BATCH : 2016 -20


Vision of Institution
To build Jeppiaar Engineering College as an Institution of Academic Excellence in Technical
education and Management education and to become a World Class University.
Mission of Institution

M1 To excel in teaching and learning, research and innovation by promoting the


principles of scientific analysis and creative thinking

To participate in the production, development and dissemination of knowledge and


M2
interact with national and international communities

To equip students with values, ethics and life skills needed to enrich their lives and
M3
enable them to meaningfully contribute to the progress of society

M4 To prepare students for higher studies and lifelong learning, enrich them with the
practical and entrepreneurial skills necessary to excel as future professionals and
contribute to Nation’s economy

Program Outcomes (POs)


Engineering knowledge: Apply the knowledge of mathematics, science, engineering
PO1 fundamentals, and an engineering specialization to the solution of complex engineering
problems.
Problem analysis: Identify, formulate, review research literature, and analyze complex
PO2 engineering problems reaching substantiated conclusions using first principles of
mathematics, natural sciences, and engineering sciences.
Design/development of solutions: Design solutions for complex engineering problems
and design system components or processes that meet the specified needs with
PO3 appropriate consideration for the public health and safety, and the cultural, societal, and
environmental considerations
Conduct investigations of complex problems: Use research-based knowledge and
PO4 research methods including design of experiments, analysis and interpretation of data,
and synthesis of the information to provide valid conclusions.
Modern tool usage: Create, select, and apply appropriate techniques, resources, and
PO5 modern engineering and IT tools including prediction and modeling to complex
engineering activities with an understanding of the limitations.
The engineer and society: Apply reasoning informed by the contextual knowledge to
PO6 assess societal, health, safety, legal and cultural issues and the consequent responsibilities
relevant to the professional engineering practice.
Environment and sustainability: Understand the impact of the professional engineering
PO7 solutions in societal and environmental contexts, and demonstrate the knowledge of, and
need for sustainable development.
Ethics: Apply ethical principles and commit to professional ethics and responsibilities
PO8 and norms of the engineering practice.
Individual and team work: Function effectively as an individual, and as a member or
PO9 leader in diverse teams, and in multidisciplinary settings.
Communication: Communicate effectively on complex engineering activities with the
engineering community and with society at large, such as, being able to comprehend and
PO10 write effective reports and design documentation, make effective presentations, and give
and receive clear instructions.
Project management and finance: Demonstrate knowledge and understanding of the
PO11 engineering and management principles and apply these to one’s own work, as a member
and leader in a team, to manage projects and in multidisciplinary environments.
Life-long learning: Recognize the need for, and have the preparation and ability to
PO12 engage in independent and life-long learning in the broadest context of technological
change.

Vision of Department
To emerge as a globally prominent department, developing ethical computer professionals,
innovators and entrepreneurs with academic excellence through quality education and research.
Mission of Department

To create computer professionals with an ability to identify and formulate the


M1
engineering problems and also to provide innovative solutions through effective
teaching learning process.

M2 To strengthen the core-competence in computer science and engineering and to create


an ability to interact effectively with industries.

M3 To produce engineers with good professional skills, ethical values and life skills for the
betterment of the society.

M4 To encourage students towards continuous and higher level learning on technological


advancements and provide a platform for employment and self-employment.

Program Educational Objectives (PEOs)


PEO1 To address the real time complex engineering problems using innovative approach
with strong core computing skills.

PEO2 To apply core-analytical knowledge and appropriate techniques and provide


solutions to real time challenges of national and global society

PEO3 Apply ethical knowledge for professional excellence and leadership for the
betterment of the society.

PEO4 Develop life-long learning skills needed for better employment and
entrepreneurship
Program Specific Outcomes (PSOs)
Students will be able to

An ability to understand the core concepts of computer science and engineering and to
PSO1 enrich problem solving skills to analyze, design and implement software and hardware
based systems of varying complexity.

To interpret real-time problems with analytical skills and to arrive at cost effective and
PSO2 optimal solution using advanced tools and techniques.

An understanding of social awareness and professional ethics with practical proficiency in


the broad area of programming concepts by lifelong learning to inculcate employment and
PSO3
entrepreneurship skills.

BLOOM TAXANOMY LEVELS(BTL)

BTL6: Creating.,
BTL 5: Evaluating.,
BTL 4: Analyzing.,
BTL 3: Applying.,
BTL 2: Understanding.,
BTL 1: Remembering
SYLLABUS

UNIT I- JAVA Programming

An overview of Java – Data Types – Variables and Arrays – Operators – Control Statements –Classes –
Objects – Methods – Inheritance - Packages – Abstract classes – Interfaces and Inner classes – Exception
handling - Introduction to Threads – Multithreading – String handling – Streams and I/O – Applets.

UNIT-II - WEBSITES BASICS, HTML 5, CSS 3, WEB 2.0 8

Web 2.0: Basics-RIA Rich Internet Applications - Collaborations tools - Understanding websites and web
servers: Understanding Internet – Difference between websites and web server- Internet technologies
Overview –Understanding the difference between internet and intranet; HTML and CSS: HTML 5.0 ,
XHTML, CSS 3.

UNIT III - CLIENT SIDE AND SERVER SIDE PROGRAMMING

Java Script: An introduction to JavaScript–JavaScript DOM Model-Date and Objects,-Regular


Expressions- Exception Handling-Validation-Built-in objects-Event Handling- DHTML with JavaScript.
Servlets: Java Servlet Architecture- Servlet Life Cycle- Form GET and POST actions- Session Handling-
Understanding Cookies- Installing and Configuring Apache Tomcat Web Server;- DATABASE
CONNECTIVITY: JDBC perspectives, JDBC program example - JSP: Understanding Java Server Pages-
JSP Standard Tag Library(JSTL)-Creating HTML forms by embedding JSP code.

UNIT IV - PHP and XML


An introduction to PHP: PHP- Using PHP- Variables- Program control- Built-in functions-Connecting to
Database – Using Cookies-Regular Expressions; XML: Basic XML- Document Type Definition XML
Schema DOM and Presenting XML, XML Parsers and Validation, XSL and XSLT Transformation, News
Feed (RSS and ATOM).

UNIT V - INTRODUCTION TO AJAX and WEB SERVICES

AJAX: Ajax Client Server Architecture-XML Http Request Object-Call Back Methods; Web Services:
Introduction- Java web services Basics – Creating, Publishing, Testing and Describing a Web services
(WSDL)-Consuming a web service, Database Driven web service from an application – SOAP.

L: 45, T: 15, Total = 60 Periods


Books Referred:

TEXT BOOKS:

1. Deitel and Deitel and Nieto, “Internet and World Wide Web - How to Program”, Prentice Hall, 5th
Edition, 2011.
2. Herbert Schildt, “Java-The Complete Reference”, Eighth Edition, Mc Graw Hill Professional, 2011
REFERENCES:

R1. Stephen Wynkoop and John Burke “Running a Perfect Website”,QUE, 2ndEdition,1999.
R2. Chris Bates, Web Programming – Building Intranet Applications, 3rd Edition, Wiley
Publications, 2009.
R3. Jeffrey C and Jackson, “Web Technologies A Computer Science Perspective”, Pearson
Education, 2011.
R4. Gopalan N.P. and Akilandeswari J., “Web Technology”, Prentice Hall of India, 2011.
R5. Paul Dietel and Harvey Deitel, “Java How to Program”, , 8th Edition Prentice Hall of India.
R6. Mahesh P. Matha, “Core Java A Comprehensive Study”, Prentice Hall of India, 2011.
R7. Uttam K.Roy, “Web Technologies”, Oxford University Press, 2011.

Course Outcomes (COs)

C502.1 Understand java concepts

C502.2 Develop basic website using HTML and cascading style sheets

Make use of Java scripting for Client side programming and Compare and contrast with server side
C502.3
programming

C502.4 Demonstrate simple web page in PHP, and to present data in XML format

C502.5 Interpret java specific web services architecture


INDEX

Unit # Ref. Book Page Numbers


Deitel and Deitel and Nieto, “Internet and World
Wide Web - How to Program”, Prentice Hall, 5th
Unit 1 Edition, 2011.
Paul Dietel and Harvey Deitel, “Java How to Page 1 -5
Program”, 8th Edition Prentice Hall of India.

R1. Stephen Wynkoop and John Burke “Running

Unit 2 a Perfect Website”,QUE, 2ndEdition,1999.


R2. Chris Bates, Web Programming – Building Page 6 - 9
Intranet Applications, 3rd Edition, Wiley
Publications, 2009.
R2. Chris Bates, Web Programming – Building

Unit 3 Intranet Applications, 3rd Edition, Wiley Page 10 -14


Publications, 2009.
R3. Jeffrey C and Jackson, “Web Technologies A
Computer Science Perspective”, Pearson
Education, 2011.
R2. Chris Bates, Web Programming – Building

Unit 4 Intranet Applications, 3rd Edition, Wiley Page 15 -18


Publications, 2009.
R3. Jeffrey C and Jackson, “Web Technologies A
Computer Science Perspective”, Pearson
Education, 2011.
R2. Chris Bates, Web Programming – Building

Unit 5 Intranet Applications, 3rd Edition, Wiley


Publications, 2009. Page 19 -23
R3. Jeffrey C and Jackson, “Web Technologies A
Computer Science Perspective”, Pearson
Education, 2011.
UNIT – 1
UNIT I- JAVA Programming

An overview of Java – Data Types – Variables and Arrays – Operators – Control Statements –Classes –
Objects – Methods – Inheritance - Packages – Abstract classes – Interfaces and Inner classes – Exception
handling - Introduction to Threads – Multithreading – String handling – Streams and I/O – Applets.

S. Question Course Outcome Blooms


No. Taxanomy
Level
What is meant by Object Oriented Programming?
OOP is a method of programming in which programs
1 are organized as cooperative C502.1 BTL 1
collections of objects. Each object is an instance of a
class and each class belong to a
hierarchy.
2 What is a Class?
Class is a template for a set of objects that share a
common structure and a common C502.1 BTL 1
behavior.
What is an Object?
3 Object is an instance of a class. It has state,
behaviour and identity. It is also called as an C502.1 BTL 1
instance of a class.
What is an Instance?
An instance has state, behaviour and identity. The
4 C502.1 BTL 1
structure and behaviour of similar classes are defined
in their common class. An instance is also called as
an object.
What are the core OOP’s concepts?
5
Abstraction, Encapsulation, Inheritance and
Polymorphism are the core OOP’s concepts. C502.1 BTL 1
What is meant by abstraction?
6 Abstraction defines the essential characteristics of an
object that distinguish it from all other C502.1 BTL 1
kinds of objects.
What is meant by Encapsulation?
Encapsulation is the process of compartmentalising
7 the elements of an abstraction that defines the C502.1 BTL 1
structure and behavior. Encapsulation helps to
separate the contractual interface
of an abstraction and implementation.
What are different types of access modifiers
8
(Access specifiers)?
Access specifiers are keywords that determine the C502.1 BTL 1
type of access to the member of a
class. These keywords are for allowing
privileges to parts of a program such as functions and
variables. These are:
public: Any thing declared as public can be accessed
from anywhere.
Private: Any thing declared as private can’t be seen
outside of its class.
Protected: Any thing declared as protected can be
accessed by classes in the same
package and subclasses in the other packages.
Default modifier: Can be accessed only to classes in
the same package.
Explain the usage of Java packages. [ APR / MAY
2017]
This is a way to organize files when a project C502.1 BTL 1
9 consists of multiple modules. It also helps
resolve naming conflicts when different packages
have classes with the same names.
Packages access level also allows protecting data
from being used by the non-authorized
classes.
What is method overloading and method
overriding? [MAY/JUN 2016] [ NOV/DEC 2015]
10 Method overloading: When a method in a class C502.1 BTL 1
having the same method name with different
arguments is said to be method overloading. Method
overriding: When a method in a class
having the same method name with same arguments
is said to be method overriding.
What gives java it’s “write once and run
anywhere” nature? [ NOV/DEC 2015]
11 All Java programs are compiled into class files that C502.1 BTL 1
contain bytecodes. These byte codes can
be run in any platform and hence java is said to be
platform independent.
What is a constructor? What is a destructor?
[NOV / DEC 2016]
Constructor is an operation that creates an object C502.1 BTL 1
12 and/or initializes its state. Destructor is
an operation that frees the state of an object and/or
destroys the object itself. In Java, there
is no concept of destructors. Its taken care by the
JVM.
What is finalize () method?
13 Finalize () method is used just before an object is
destroyed and can be called just prior to C502.1 BTL 1
garbage collection.
What is the difference between String and String
Buffer?
String objects are constants and immutable whereas C502.1 BTL 1
14
String Buffer objects are not. String class
supports constant strings whereas String Buffer class
supports growable and modifiable
strings.
What is a package?
15 A package is a collection of classes and interfaces
that provides a high-level layer of access C502.1 BTL 1
protection and name space management.
Explain working of Java Virtual Machine (JVM)?
JVM is an abstract computing machine like any other
16 real computing machine which first C502.1 BTL 1
converts .java file into .class file by using Compiler
(.class is nothing but byte code file.) and
Interpreter reads byte codes.
What is meant by Binding, Static binding,
Dynamic binding?
Binding: Binding denotes association of a name with C502.1 BTL 1
a class.
Static binding: Static binding is a binding in which
17
the class association is made during
compile time. This is also called as Early binding.
Dynamic binding: Dynamic binding is a binding in
which the class association is not made until
the object is created at execution time. It is also called
as Late binding.
Differentiate between a Class and an Object?
The Object class is the highest-level class in the Java
class hierarchy. The Class is used to C502.1 BTL 1
represent the classes and interfaces that are loaded by
a Java program. The Class class is
18 used to obtain information about an object's design.
A Class is only a definition or
prototype of real life object. Whereas an object is an
instance or living representation of
real life object. Every object belongs to a class and
every class contains one or more
related objects.
What is meant by Polymorphism?
Polymorphism literally means taking more than one
19 form. Polymorphism is a characteristic C502.1 BTL 1
of being able to assign a different behavior or value
in a subclass, to something that was
declared in a parent class.
20 Define Dynamic Binding?
Binding refers to the linking of a procedure call to
the code to be executed in response to the C502.1 BTL 1
call. Dynamic binding (also known as late binding)
means that the code associated with a
given procedure call is not known until the time of
the call at run-time. It is associated with
polymorphism and inheritance.
What is an Abstract Class? [ NOV/DEC 2017] [
NOV/DEC 2015]
Abstract class is a class that has no instances. An C502.1 BTL 1
21
abstract class is written with the expectation
that its concrete subclasses will add to its structure
and behaviour, typically by implementing
its abstract operations.
What is an Interface?
22 Interface is an outside view of a class or object which
emphasizes its abstraction while hiding C502.1 BTL 1
its structure and secrets of its behavior.
What is an exception?
23 An exception is an event, which occurs during the
execution of a program that disrupts the C502.1 BTL 1
normal flow of the program's instructions.
What is garbage collection? What is the process
that is responsible for doing
24 that in java? C502.1 BTL 1
Reclaiming the unused memory by the invalid
objects. Garbage collector is
responsible for this process
What is the difference between process and
thread? [ NOV/DEC 2016]
25 C502.1 BTL 1
Process is a program in execution whereas thread is a
separate path of execution in a
program.
A Thread is runnable, how does that work? [NOV
/ DEC 2016]
The Thread class' run method normally invokes the C502.1 BTL 1
26
run method of the Runnable
type it is passed in its constructor. However, it is
possible to override the thread's run
method with the own.
List the two methods to search a string.
27
1. indexOf()
2. lastIndexOf() C502.1 BTL 1
What is the use of getBytes() Method?
This method has following two forms:
28 getBytes(String charsetName): Encodes this String C502.1 BTL 1
into a sequence of bytes using
the named charset, storing the result into a new byte
array.
getBytes(): Encodes this String into a sequence of
bytes using the platform's default
charset, storing the result into a new byte array.
What is a thread group?
A thread group is a data structure that controls the
29 C502.1 BTL 1
state of collection of thread as
a whole managed by the particular runtime
environment.
What is serialization?
Serialization is the process of writing complete state
30 C502.1 BTL 1
of java object into output
stream, that stream can be file or byte array or stream
associated with TCP/IP socket.
Give the different types of typecasting in Java
with example. [NOV / DEC 2016]
If the data types are compatible, then Java will C502.1 BTL 1
31 perform the conversionautomatically known as
Automatic Type Conversion and if not then they
need to be casted or converted explicitly.
For example, assigning an int value to a long
variable.
Give an example for a chained exception in Java.
[MAY/JUN 2016]
consider a situation in which a method throws an C502.1 BTL 1
32 ArithmeticException because of an attempt to divide
by zero but the actual cause of exception was an I/O
error which caused the divisor to be zero. The
method will throw only ArithmeticException to the
caller.
PART B
1 Explain in detail about Multi-threading? [ NOV/DEC C502.1 BTL 1
2015]
2 How to Handle the Exception in Java? [NOV / DEC C502.1 BTL 1
2016] [ NOV/DEC 2015]
3 How interface is declared and how to create thread? C502.1 BTL 1
[ NOV/DEC 2017]
4 Explain detail about Java Streams and I/O? C502.1 BTL 1
5 Discuss the types of inheritance in java. [NOV / DEC C502.1 BTL 1
2016]
6 Dicuss the concepts of Applets in detail. [ NOV/DEC C502.1 BTL 1
2017]
7 Eplain the types of constructor with examples. [NOV / C502.1 BTL 1
DEC 2016]
8 Explain the use of BufferedREader object to read C502.1 BTL 1
characters from the console using a program. [NOV /
DEC 2016]
UNIT – 2

UNIT-II - WEBSITES BASICS, HTML 5, CSS 3, WEB 2.0 8

Web 2.0: Basics-RIA Rich Internet Applications - Collaborations tools - Understanding websites and web
servers: Understanding Internet – Difference between websites and web server- Internet technologies
Overview –Understanding the difference between internet and intranet; HTML and CSS: HTML 5.0 ,
XHTML, CSS 3.

S. Question Course Outcome Blooms


No. Taxanomy
Level
What is the difference between node and host?
A node is any addressable device connected to a
1 network whereas the host is a more C502.2 BTL 1
specific descriptor that refers to a networked general-
purpose computer rather than a single
purpose device (such as a printer).
2 What is the purpose of routers? C502.2 BTL 1
Router operates like electronic postal workers that
evaluate and forward packets between networks.
Define protocol. C502.2 BTL 1
3
A protocol is a formal set of rules that must be
followed in order to communicate.
Why are the protocols layered? C502.2 BTL 1
Layering protocols simplifies the task of
4
communicating over the network and it allows
for reuse of layers that are not specific to a particular
application.
Define encapsulation.
5
Placing the data inside a package of headers is known
as encapsulation. C502.2 BTL 1
Define port.
A port is a logical channel to an application running
6 C502.2 BTL 1
on a host. ie., The applications
running on the host machines are uniquely identified
by port numbers.
What is meant by Name Resolution?
Name Resolution is the process of mapping a
hostname to its corresponding IP Address. C502.2 BTL 1
One way to translate a hostname to an IP address is
7
to look it up in a simple text file.
The second way is the domain name service, which is
a distributed database containing
all registered hostnames on the Internet and their IP
addresses.
Define protocol tunneling.
8 Protocol tunneling is the process of encapsulating
one protocol within another protocol that C502.2 BTL 1
operates on the same layer.
9 Define URI.
1. URI (Uniform Resource Identifier): It identifies an
object on the Internet. C502.2 BTL 1

10 What are the components of HTTP URL?


The components are host, an optional port, path,
filename, section and query string. C502.2 BTL 1

Define URL encoding.


URL encoding involves replacing all unsafe and
11 C502.2 BTL 1
nonprintable characters with a percent sign
(%) followed by two hexadecimal digits
corresponding to the character's ASCII value.
Define HTML.
12
It is a simple page description language, which
enables document creation for the web. C502.2 BTL 1
What is meant by loop back address?
13 A zone that enables the server to direct traffic to
itself. The host number is almost C502.2 BTL 1
always 127.0.0.1.
Define CGI -Common Gateway Interface.
A specification for transferring information between
a World Wide Web server and a CGI C502.2 BTL 1
14 program. ACGI program is any program designed to
accept and return data that conforms to
the CGI specification. The program could be written
in. any programming language,
including C, Perl, Java, or Visual Basic.
Write a note on Internet Information Server (IIS).
Microsoft's Web server that runs on Windows NT
15 platforms, In fact, IIS comes bundled C502.2 BTL 1
with Windows NT 4.0. Because IIS is tightly
integrated with the operating system, it is
relatively easy to administer.
What are ISAPI (Internet Server API) and NSAPI
(Netscape Server API)
ISAPI (Internet Server API): An API for Microsoft's C502.2 BTL 1
IIS (Internet Information Server) Web
server. ISAPI enables programmers to develop Web-
16
based applications that run much faster
than conventional CGI programs because they're
more tightly integrated with the Web
server. In addition to IIS, several Web servers from
companies other than Microsoft support
ISAPI.
NSAPI -Netscape Server API: An API for Netscape's
Web servers. NSAPI enables
programmers to create Web-based applications that
are more sophisticated and run
much faster than applications based on CGI scripts.
What is API -Application Program Interface?
A set of routines, protocols, and tools for building
17 software applications. A good API C502.2 BTL 1
makes it easier to develop a program by providing all
the building blocks. A programmer
puts the blocks together.
What are Style Sheets?
Style sheets are collections of style information that
are applied to plain text. Style C502.2 BTL 1
information includes font attributes such as type size,
18
special effects (bold,italic,underline), color and
alignment. Style sheets also provide broader
formatting instructions by specifying valuesfor
quantities such as line spacing and left and right
margins.
Give the elements to write a script?`
<script type=”text/javascript”> write script here
</script> C502.2 BTL 1
3. List down the ways of including style information
in a document?
1.Linked Styles-Style information is read from a
separate file that is specified in
19
the <LINK> tag
2.Embedded Styles-Style information is defined in
the document head using
the <STYLE> and </STYLE> tags.
3.Inline Styles-Style information is placed inside an
HTML tag and
app lies to allcontent between that tag and it
companion closing tag.
Define cascading?
Cascading refers to a certain set of rules that
browsers use to determine how to use the style C502.2 BTL 1
20
information. Such a set of rules is useful in the event
of conflicting style information because the rules
would give the browser a way to determine which
style is given precedence.
What are the style precedence rules when using
multiple approaches?
21 Inline styles override both linked style sheets and C502.2 BTL 1
style information stored in
the document head with <STYLE> tag
Styles defined in the document head override linked
style sheets. Linked style sheets override browser
defaults
List down font characteristics permitted in Style
Sheets.
1.font-family C502.2 BTL 1
22
2.font-size
3.fontweight
4.font-style
5.fontvariant
Give some methods of Date Object? [NOV / DEC
23 2016]
getDate(), gatDay(), getHours(), g C502.2 BTL 1
etMonth(), getMinutes(), getSeconds(), hetFullYear()
Define Scriptlets
Scriptlets enable you to create small, reusable web
applications that can be used in any C502.2 BTL 1
24
web page. Scriptlets are created using HTML,
scripting and Dynamic HTML. To
include them in an HTML document use the
<OBJECT> tag.
Define URL URL (Uniform Resource Locator): It is C502.2 BTL 1
a specification for identifying an object such as
25
a file, newsgroup, CGI program or e-mail address by
indicating the exact location on the internet.

Define URN.
26 URN (Uniform Resource Name): It is a method for
referencing an object without declaring the full path C502.2 BTL 1
to the object.
State the difference between internet and intranet.
[NOV / DEC 2016]
There's one major distinction between an intranetand C502.2 BTL 1
27 the Internet: The Internet is an open, public space,
while an intranet is designed to be a private space.
An intranet may be accessible from theInternet, but
as a rule it's protected by a password and accessible
only to employees or other authorized users.
Define Rich Internet Applications. [MAY/JUN
2016] [NOV / DEC 2016] [ APR / MAY 2017]
A rich Internet application (RIA) is a Web C502.2 BTL 1
application designed to deliver the same features and
28 functions normally associated with deskop
applications. RIAs generally split the processing
across the Internet/network divide by locating the
user interface and related activity and capability on
the client side, and the data manipulation and
operation on the application server side.
Why we use XHTML? [ NOV/DEC 2017]
"XHTML 1.0 is a reformulation of HTML 4.01 in
XML, and combines the strength of HTML 4 with C502.2 BTL 1
29
the power of XML." This means that, byusing
XHTML, you are adding the potential of the power
of XML to your Web pages. ... Basically, XHTML is
strict HTML.
Write appropriate inline CSS to show a section of
the HTML document with a font size of 20.
[MAY/JUN 2016] C502.2 BTL 1
30 <!DOCTYPE html> <html> <head> <title>Playing with
Inline Styles</title> </head> <body> <p
style="color:blue;font-size:46px;"> I'm a big, blue,
<strong>strong</strong> paragraph </p> </body>
</html>

PART B
1 Explain in detail about RIA Rich Internet Applications? C502.2 BTL 1
[NOV / DEC 2016]
2 Discuss the HTML and XHTML Tags. [NOV / DEC C502.2 BTL 1
2016] [MAY/JUN 2016] [ NOV/DEC 2017] [
NOV/DEC 2015]
3 Explain in detail about CSS? [NOV / DEC 2016] [ C502.2 BTL 1
NOV/DEC 2017] [ NOV/DEC 2015]
4 Explain in detail about Web Servers in Internet? [ C502.2 BTL 1
NOV/DEC 2015] [ APR / MAY 2017]

5 Explain about internet technologies in detail. [NOV / C502.2 BTL 1


DEC 2016]

UNIT – 3

UNIT III - CLIENT SIDE AND SERVER SIDE PROGRAMMING

Java Script: An introduction to JavaScript–JavaScript DOM Model-Date and Objects,-Regular


Expressions- Exception Handling-Validation-Built-in objects-Event Handling- DHTML with JavaScript.
Servlets: Java Servlet Architecture- Servlet Life Cycle- Form GET and POST actions- Session Handling-
Understanding Cookies- Installing and Configuring Apache Tomcat Web Server;- DATABASE
CONNECTIVITY: JDBC perspectives, JDBC program example - JSP: Understanding Java Server Pages-
JSP Standard Tag Library(JSTL)-Creating HTML forms by embedding JSP code.

S. Question Course Outcome Blooms


No. Taxanomy
Level
What is a DOM? [ NOV/DEC 2017]
1 A Document Object Model is an application
programming interface that defines how javascript C502.3 BTL 1
programs can access and manipulate the HTML
document currently displayed by a browser.
What is an Event? [ NOV/DEC 2015]
2 An event in a browser is an occurrence of potential
interest. Example events are the mouse C502.3 BTL 1
moving over an element. a mouse button being
clicked, or a key being pressed. Each
type of event has an abbreviated name associated
with it.
Define Intrinsic Event handling.
Browser-based java script programs are event-
3 driven.ie, the java script functions are called C502.3 BTL 1
in response to various user actions, such as clicking a
button, or moving the mouse over a
certain element.
What is Event listener in DOM?
An event listener is a function that takes a single
4 argument that is an instance of Event. A C502.3 BTL 1
call to the addEventListener () method on a node
object associates an event listener with a
type of event occurring on that node.
Differentiate Dynamic document with Static
document?
5 An HTML document that contains scripting is called C502.3 BTL 1
a dynamic document whereas a simple HTML
document without scripting is known as a static
document.
What are the stages in a Servlet life cycle?
6 1.init()
2.service() C502.3 BTL 1
3.destroy()
What are Servlets? [NOV / DEC 2016] [ NOV/DEC
2017]
A small program that runs on a server, the term usually C502.3 BTL 1
refers to a Java applet that runs within a Web server
7
environment. This is analogous to a Java applet that
runs within a Web browser environment. Java servlets
are becoming increasingly popular as an alternative to
CGI programs. The biggest difference between the two
is that a Java applet is persistent.
What is a Session?
A collection of HTTP requests all associated with a
8 C502.3 BTL 1
single session ID is known as a session. Each HTTP
request is examined by the server to see if it contains
a special identifier known as a session ID.
9 What are Cookies? [ NOV/DEC 2015]
A cookie is a Name-value pair that a web server
sends to a client machine as part of an HTTP C502.3 BTL 1
response, specifically through the Set-Cookie header
field. Browsers will store the cookie pairs found in
the response in a file on the client machine.
What are the actions involved in a
doGet()method?
10 1.Set the HTTP Content-Type header of the response. C502.3 BTL 1
2.Obtain a PrintWriter object from the
HttpServletResponse parameter
object. 3.Output a valid HTML document to the
PrintWriter object.
4.Close the PrintWriter object.
Illustrate the general steps to run a servlet.
1.Compile the servlet using an appropriate compiler
version. C502.3 BTL 1
11 2.Copy the resulting .class file to the appropriate
directory for our javaservlet
capable server.
3.Start the server
4.Navigate to the URL corresponding to the servlet.
Define a parameter name or value?
A parameter name or value can be composed of any
sequence of 8-bit characters, including control C502.3 BTL 1
12
characters and other nonprinting characters. if a name
or value contains any nonalphanumeric characters
then the name or value will undergo a transformation
known as url encoding.
How to terminate a Session?
The Http Session interface defines a
setMaxInactiveInterval(int interval)method that takes C502.3 BTL 1
an integer argument interval representing a number
13
of seconds. if more than interval seconds elapse
between any two HTTP requests to the servlet from
the user represented by this Http Session object, then
the users session will expire before the second of
these two requests can be processed.
Define Java Server Pages?
It can be defined as one instantiation of a class of
related technologies that facilitate C502.3 BTL 1
14
separate development of a website’s presentation and
logic. The key contribution of
these technologies is to embed program code related
to presentation within a document.
What is a Scriplet?
15
A Scriplet is a fragment of java code that is
embedded within the JSP document. C502.3 BTL 1
What are the drawbacks of two-step approach in
16 JSP over direct interpretation?
1.Debugging C502.3 BTL 1
2.Delay during the first time a JSP document is
requested.
Define a Web Application?
To implement larger tasks, a large collection of
resources such as Servlets,JSP C502.3 BTL 1
documents, Utility and Support Java Classes, Static
17 HTML documents, Style Sheets, JavaScript files,
Images are needed that work together in order to
provide what appears to an end user to be a single
software application.. Such a collection of resources
is known as aweb application.
Write the steps for installing a Web Application?
18 1.Create a directory under the webapps
subdirectory. 2.Place the JSP document in the new C502.3 BTL 1
subdirectory. 3.Deploy the application to the sever.
Name the three types of information available in a
valid JSP document?
19 C502.3 BTL 1
1.JSP markup
2.Expression Language(EL)expressions
3.Template data
What are the two contexts by which an EL
20 expression can be invoked?
1.Within template data C502.3 BTL 1
2.Within certain attribute values in JSP markup
What are the Literals that can be used in a EL?
21 1.The Booleans-True and False
2.Decimal,Integer and Floating point C502.3 BTL 1
3.Reserved word-Null
Name the reserved words in EL?
22 1.and 2.div 3.empty
4.eq 5.false 6.ge C502.3 BTL 1
7.gt 8.not 9.null
What is the function of EL implicit objects
pageScope and requestScope?
23 pageScope-Values accessible via calls to C502.3 BTL 1
page.getAttribute()
requestScope- Values accessible via calls to
requestpage.getAttribute()
Name the two types of directives available for use
in a JSP document?
1.Page-The page directive(directive. page element) C502.3 BTL 1
has a variety of attributes
24
that may be set.
2.Include-The include directive(directive. include
element) imports text from
another file into the JSP document at the point at
which the directive appears.
25 What is known as a Translation Unit?
A top-level JSP document plus all of the segments it
includes either directly or indirectly C502.3 BTL 1
through include directives in segments is known as a
translation unit, because the translator
effectively assembles all of the text from these files
into a single JSP document which is then
translated.
What are the three categories of JSP element
types?
26 C502.3 BTL 1
1.Scripting
2.Directive
3.Action
Explain the JSP action element?
It is an element that is translated into javaservlet code
that performs some action. These C502.3 BTL 1
elements provide standard actions ie, the actions that
27
are required by the JSP specification to
be provided by any JSP-compliant container. The
JSP tag library mechanism allows
additional action elements to be used within a JSP
document, which provide custom actions.
Give some JSTL Core actions and their functions.
set-Assign a value to a scoped variable
28 C502.3 BTL 1
remove-Destroy a Scoped variable url-
Create a URL with query string forEach-
Iterate over a collection of items
Define a Scoped variable.
It is a non implicit EL variable, that is an attribute of
29 one of the page ,request ,session,or C502.3 BTL 1
application objects. The object containing the
attribute is called the scope of the variable and
hence the name scoped variable
What are Servlets?
A small program that runs on a server, the term
30 usually refers to a Java applet that runs within a Web C502.3 BTL 1
server environment. This is analogous to a Java
applet that runs within a
Web browser environment.
Explain the servlet interface and its methods.
[NOV / DEC 2016]
Servlet interface provides commonbehaviorto all C502.3 BTL 1
31
theservlets.Servlet interface defines methods that
all servlets must implement.Servlet interface needs to
be implemented for creating any servlet (either
directly or indirectly).
Write appropriate JS code to remove an element
32
from a DOM. [MAY/JUN 2016]
C502.3 BTL 1
Write the code segment to store current server
time in session using Java Servlet API.
[MAY/JUN 2016] C502.3 BTL 1
The Session Tracking API, as we call the portion of
the Servlet API devoted to session tracking, should
33
be supported in any web server that supports servlets.
The level of support, however, depends on the server.
The minimal implementation provided by the servlet
classes in JSDK 2.0 manages sessions through the
use of persistent cookies. A server can build on this
base to provide additional features and capabilities.
PART B
1 Explain in detail about DOM Model? [ NOV/DEC C502.3 BTL 1
2015]
2 Discuss the concept of Handling in DOM. [ APR / C502.3 BTL 1
MAY 2017]
3 Explain in detail about Java Servlet Life Cycle? C502.3 BTL 1
4 Discuss the Java Database Connectivity. [MAY/JUN C502.3 BTL 1
2016] [ NOV/DEC 2017] [ NOV/DEC 2015]
5 Explain in detail about Java Serve Pages scripting C502.3 BTL 1
components with examples? [NOV / DEC 2016] [
NOV/DEC 2017]
6 Write a DHTML program to handle the user click event. C502.3 BTL 1
[NOV / DEC 2016]
7 Explain the use of cookies for tracking requests with a C502.3 BTL 1
program. [ NOV/DEC 2017]

UNIT – 4

UNIT IV - PHP and XML


An introduction to PHP: PHP- Using PHP- Variables- Program control- Built-in functions-Connecting to
Database – Using Cookies-Regular Expressions; XML: Basic XML- Document Type Definition XML
Schema DOM and Presenting XML, XML Parsers and Validation, XSL and XSLT Transformation, News
Feed (RSS and ATOM).

S. Question Course Outcome Blooms


No. Taxanomy
Level
What is PHP? [NOV / DEC 2016] [ NOV/DEC
2017] [ NOV/DEC 2015]
Hypertext Preprocessor is open source server-side C502.4 BTL 1
scripting language that is
1
widely used for web development. PHP scripts are
executed on the server. PHP allows
writing dynamically generated web pages efficiently
and quickly. The syntax is mostly
borrowed from C, Java and perl. PHP is free to
download and use.
What is PEAR in php?
2 PEAR(PHP Extension and Application Repository) is
a framework and repository for reusable PHP C502.4 BTL 1
components. PEAR is a code repository containing
all kinds of php code snippets and libraries. PEAR
also offers a command-line interface that can be
used to automatically install "packages".
Explain how to submit form without a submit
button.
3 We can achieve the above task by using JavaScript C502.4 BTL 1
code linked to an event trigger of
any form field and call the document.form.submit()
function in JavaScript code.
Difference between Echo vs. print statement.
echo() and print() are language constructs in PHP,
both are used to output strings. C502.4 BTL 1
The speed of both statements is almost the same.
4
echo() can take multiple expressions whereas print
cannot take multiple expressions.
Print return true or false based on success or failure
whereas echo doesn't return true
or false.
Difference between $message vs. $$message in
PHP.
5 $message is a variable with a fixed name. $$message C502.4 BTL 1
is a variable whose name is stored in $message.
If $message contains "var", $$message is the same as
$var.
Explain the different types of errors in PHP.
Notices, Warnings and Fatal errors are the types of
errors in PHP C502.4 BTL 1
Notices:
Notices represents non-critical errors, i.e. accessing a
variable that has not yet been
defined. By default, such errors are not displayed to
the user at all but whenever
required, you can change this default behavior.
6
Warnings:
Warnings are more serious errors but they do not result
in script termination. i.e calling
include() a file which does not exist. By default, these
errors are displayed to the user.
Fatal errors:
Fatal errors are critical errors i.e. calling a non-
existent function or class. These
errors cause the immediate termination of the script.
Explain the importance of the function htmlentities.
The htmlentities() function converts characters to
HTML entities.
What is MIME?
MIME - Multi-purpose Internet Mail Extensions.
MIME types represents a standard way of classifying C502.4 BTL 1
file types over Internet.
Web servers and browsers have a list of MIME types,
which facilitates files transfer of
7
the same type in the same way, irrespective of
operating system they are working in.
A MIME type has two parts: a type and a subtype.
They are separated by a slash
(/). MIME type for Microsoft Word files is
application and the subtype is msword,
i.e. application/msword.
What is the difference between PHP and
JavaScript?
The difference lies with the execution of the C502.4 BTL 1
8 languages. PHP is server side scripting
language, which means that it can’t interact directly
with the user. Whereas, JavaScript is
client side scripting language, that is used to interact
directly with the user..
What does ODBC do in context with PHP?
PHP supports many databases like dBase, Microsft
SQL Server, Oracle, etc. But, it also C502.4 BTL 1
9 supports databases like filePro, FrontBase and
InterBase with ODBC connectivity. ODBC
stands for Open Database connectivity, which is a
standard that allows user to
communicate with other databases like Access and
IBM DB2.
10 What are XML Parsers? [ NOV/DEC 2017] [
NOV/DEC 2015]
XML Parsers are used to check whether the C502.4 BTL 1
document is well formed and valid.
How is XML parsing done with SAX?
A SAX parser is a mechanism for transforming an
11 C502.4 BTL 1
XML text document into stream of events
corresponding to the markup and character data
contained in the original document.
Explain Event-oriented parsing.
In this parsing, Parser interacts with an application as
12
its reads an XML document when certain events occur C502.4 BTL 1
and this approach is used by SAX (Simple API for
XML) based parsers.
13 What are the types of XML Parsers?
There are two types
• Validating Parsers C502.4 BTL 1
• Non-Validating Parsers
What is well-formed document?
14 An HTML or XML document is said to be well
formed when it contains elements with proper C502.4 BTL 1
tagging and no syntactic errors.
What is DTD?
A Document Type Declaration enables an XML
15 C502.4 BTL 1
parser to verify whether an XML document is valid,
i.e. its elements contain the proper attributes in
the proper sequence.
What is XML Namespace? [NOV / DEC 2016]
An XML namespace is a collection of element and
16 attribute names. Each namespace has a unique name C502.4 BTL 1
that provides a means for document authors to
unambiguously refer to elements with the same name
in order to prevent collisions.
What is the use of XML declaration?
XML declaration is a special tag used to specify the
version of XML used to write the C502.4 BTL 1
17 document and optionally some additional meta-
information about the document such as the
character set/encoding used. For e.g the syntax of
XML declaration is
<? XML VERSION=”1.0”?>
What is the purpose of XSLT? [MAY/JUN 2016]
• The XSLT stands for XSL Transformations and
18 XSL stands for extensible Style C502.4 BTL 1
sheet Language.
• The XSLT is used for defining the XML document
transformation and presentations.
What are XML Schemas?
XML Schemas are part of the XML vocabulary and
19 its addresses the standard for XML document C502.4 BTL 1
validation by including a definition of a collection
of standard data types which are used to describe data
structures.
What are built-in data types for XML Schema?
The data types defined by the XML Schema
20 specification itself are called C502.4 BTL 1
its built-in data types.
For e.g : xsd:integer, xsd:decimal, xsd:string,
xsd:boolean, xsd:float etc..,
What Do You Mean by DTD IN XML?
• DTD means Document Type Definition.
21
• DTD file is similar to CSS file, because DTD also C502.4 BTL 1
contains only styles.
• DTD contains various styles which are to be applied
in XML
document.
• Like .CSS file .DTD file also should be linked with
XML program.
• Styles in XML program should be save with .xsl
(Xml Style Sheet Language) extension.
Define XML.
XML is a meta- markup language that provides a
22 format for describing structured data. This facilitates C502.4 BTL 1
more structured declarations of content and
more meaningful search results across multiple
platforms.
Define DTD.
A DTD is a set of rules that specifies how to use
23 XML markup. It contains specifications for each C502.4 BTL 1
element, including what the element’s attributes are,
what values the attributes can take on and what
elements can be contained in others.
When should the super global arrays in PHP be
used? Which super global array in PHP would
contain a HTML form’s POST data? [MAY/JUN C502.4 BTL 1
2016]
24
$GLOBALS is a PHP super global variable which is
used to access global variables from anywhere in the
PHP script (also from within functions or methods).
PHP stores all global variables in an array called
$GLOBALS[index]. The index holds the name of the
variable.
PART B
1 Explain in detail about how to connect database with C502.4 BTL 1
PHP? [NOV / DEC 2016]
2 Discuss the PHP variables and program control. C502.4 BTL 1
[MAY/JUN 2016] [ NOV/DEC 2015]
3 Explain in detail about Document Type Definition? C502.4 BTL 1
4 Discuss the concepts of XML Schema, built in and user C502.4 BTL 1
defined data types in detail. [NOV / DEC 2016]
[MAY/JUN 2016] [ NOV/DEC 2017] [ NOV/DEC
2015]
5 Discuss the XSL and XSLT Transformation. [ C502.4 BTL 1
NOV/DEC 2017]
6 Explain the string comparison capability of PHP using C502.4 BTL 1
regular expressions with an example. [NOV / DEC 2016]
[ NOV/DEC 2017]
UNIT – 5

UNIT V - INTRODUCTION TO AJAX and WEB SERVICES

AJAX: Ajax Client Server Architecture-XML Http Request Object-Call Back Methods; Web Services:
Introduction- Java web services Basics – Creating, Publishing, Testing and Describing a Web services
(WSDL)-Consuming a web service, Database Driven web service from an application – SOAP.

S. Question Course Outcome Blooms


No. Taxanomy
Level
Define a Web Service. [ NOV/DEC 2017] [
NOV/DEC 2015]
A web service is a server application that uses HTTP C502.5 BTL 1
1
to accept and return SOAP documents, where the
content of the documents is specified by a WSDL
document that uses embedded XML Schema markup
to define data types.
Describe the implementation of Web Service.
2 A web service servlet accepts HTTP requests from
clients and provides an HTTP response for each C502.5 BTL 1
request received. It expects that each HTTP request it
receives will contain a SOAP XML document in the
body of the request. This SOAP document specifies
an operation to be performed by the web service and
supplies input data for that operation.
Define a WSDL. [NOV / DEC 2016]
A Web service definition language document for a
3 C502.5 BTL 1
web service identifies the operations provided by the
web service, what the input data to each operation is,
and what output data is produced by the operation.
What is known as the Service Endpoint Interface?
[NOV / DEC 2016]
The starting point for writing a web service using the C502.5 BTL 1
4 JWSDP 1.3 tools is writing a Java interface that
specifies the operations that will be provided by the
service(essentially an API for the service).This is
known as the service endpoint interface.
Write the basic rules for service endpoint interface.
1.the interface must extend the java.rmi.Remote
interface C502.5 BTL 1
2.Every method in the interface must throw
5
java.rmi.RemoteException
3.Every method parameter and every return value
must conform to certain restrictions
on the allowed data types
4.The interface must not contain any public static final
declarations.
Define XML Schema.
XML schema defines the structure of XML
documents. A key contribution of XML C502.5 BTL 1
schema is its definition of a collection of standard data
6
types. Each data type definition
includes a specification of the range of values that can
be represented by the data type
and details on how to represent those values as
strings.
What is a deployment descriptor?
7
Deployment descriptor specifies various configuration
parameters. C502.5 BTL 1
Define Simple Object Access Protocol.(SOAP).
[MAY/JUN 2016]
SOAP is an XML vocabulary that can be used to C502.5 BTL 1
8
communicate data and was originally
designed for communicating structured data that
might be found in object-oriented
programs.
What is RPC Representation?
RPC is the generic term for the type of
9 communication used for web service operations.The C502.5 BTL 1
client makes a call to a method or procedure that
resides on another machine.This concept
has been implemented in many ways by many
programming languages and operating
systems
Define a Struct?
10 A struct can be thought of as an instance of a class that
consists entirely of public instance C502.5 BTL 1
variables. It is simply a container in which data can be
stored in named variables.
What is literal-encoding?
An encoding conforming with the XML schema
11 contained in the we service’s WSDL over SOAP 1.1 C502.5 BTL 1
encoding of data.A literal encoding is indicated within
a WSDL by specifyingliteral for the use attribute of a
soap:body element.
Name the two operations defined by WSDL 1.1.
12
1.RPC
2.Document C502.5 BTL 1
Define Serialization?
The flexibility in converting from an internal form of
13 data to a SOAP representation is C502.5 BTL 1
known as serialization and it comes at the price of
forcing the software that deserializes
a SOAP representation to be prepared to accept SOAP
documents in a variety of forms.
Describe the Java support for SOAP?
Java provides support for creating and manipulating
14
SOAP documents through SAAJ, the C502.5 BTL 1
SOAP with Attachments API for Java technology. This
API is included with JWSDP1.3.
What are Serializable objects?
When an object is serialized, the data contained within
15 the object is transformed into a stream of bytes C502.5 BTL 1
representing the data. This object data stream can then
be stored in a file, transmitted over a communications
network, or treated like any other stream of data.
Name the methods of HttpServletRequest
interface?
16 C502.5 BTL 1
String getParameter(string name), string[]
getParameterValues(String name), cookie[]
getCookies(), HttpSession getSession(boolen, create)
What are directives?
Directives are messages to the jsp container that
17 enables the programmer to specify page C502.5 BTL 1
settings, to include content from other resources and
to specify custom-tag libraries for use
in JSP.
Name the Header Child Element Attributes in
SOAP?
18 1.must understand C502.5 BTL 1
2.encoding style
3.role
4.relay
What is the use of JSP?
JSP enable web application programmers to create
19 C502.5 BTL 1
dynamic content by reusing predefined components
and by interacting with components using server side
scripting.
Differentiate a Simple type with a Complex type
20 A simple type is a data type whose values are
represented in XML documents by character data, C502.5 BTL 1
while a complex type is represented using markup.
Define CDATA?
Character data(CDATA) is a text in a document that
21 should not be parsed by the XML parser. Any entities C502.5 BTL 1
included in the CDATA block will not be replaced by
their value andmarkup (such as HTML tags) will not
be treated as markup.
Describe the structure of SOAP element?
22 [MAY/JUN 2016]
It consists of the following: C502.5 BTL 1
1.The SOAP envelope element
2.The SOAP header element
3.The SOAP body element
4.The SOAP fault element
Define JAX-RPC?
JAX-RPC (Java API for XML-Based RPC) is an
application program interface (API) in the C502.5 BTL 1
Java Web Services Developer Pack (WSDP) that
23 enables Java developers to include remote
procedure calls (RPCs) with Web services or other
Web-based applications. JAXRPC is
aimed at making it easier for applications or Web
services to call other applications or Web
services.
What is SOAP Envelope element?
The required SOAP Envelope element is the root
element of a SOAP message. C502.5 BTL 1
This element defines the XML document as a SOAP
message.
24 Example
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soapenvelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-
encoding">
Message information goes here </soap:Envelope>
What are Serializable objects?
When an object is serialized, the data contained within
25 the object is transformed into a stream of bytes C502.5 BTL 1
representing the data. This object data stream can then
be stored in a file, transmitted over a communications
network, or treated like any other stream of data.
Name the methods of HttpServletRequest
interface?
26 C502.5 BTL 1
String getParameter(string name), string[]
getParameterValues(String name), cookie[]
getCookies(), HttpSession getSession(boolen, create)
What is RPC Representation?
RPC is the generic term for the type of
communication used for web service operations.The C502.5 BTL 1
27 client makes a call to a method or procedure that
resides on another machine.This concept
has been implemented in many ways by many
programming languages and operating
systems
Define a Struct?
A struct can be thought of as an instance of a class that
28
consists entirely of public instance C502.5 BTL 1
variables. It is simply a container in which data can be
stored in named variables.
Differentiate a Simple type with a Complex type
29 A simple type is a data type whose values are
represented in XML documents by character data, C502.5 BTL 1
while a complex type is represented using markup.
Define CDATA?
Character data(CDATA) is a text in a document that
30 should not be parsed by the XML parser. Any entities C502.5 BTL 1
included in the CDATA block will not be replaced by
their value andmarkup (such as HTML tags) will not
be treated as markup.
State the advantages of AJAX. [NOV / DEC 2015]
Advantages of AJAX. Reduce the traffic travels
31 between the client and the server. Response time is C502.5 BTL 1
faster so increases performance and speed. You can
use JSON (JavaScript Object Notation) which is
alternative to XML.
What is the role of a callback function in
performing a partial page update in an AJAX
application? [MAY/JUN 2016] C502.5 BTL 1
Async callback goes by a number of different names
in the .NET community such as XMLHttpRequest,
AJAX, asynchronous client script callback, to name a
few. However the basic building block for callback is
theXMLHttpRequest object. It is an API available in
JavaScript which is used to send HTTP requests
directly from the client to the server and loads the
server response back to the browser. The most
32
obvious question which comes to my mind is then
what is the difference between callback and postback.
Both hit the server and gets data back to the client.
Callbacks differ from postback in which the former
only sends relevant information back to the server and
preserves the Viewstate and the form data. All the
ASP.NET server page cycles occur along with client
side events. This helps in loading the page faster
because in the rendering phase only
the relevantcontentis sent to the browser. For
example in AJAX, only the contents
ofthe UpdatePanel are rendered in the browser.
PART B
1 Explain the Ajax Client Server Architecture in detail? C502.5 BTL 1
[NOV / DEC 2016] [MAY/JUN 2016] [ NOV/DEC
2017] [ NOV/DEC 2015]
2 Discuss the XML Http Request Object-Call Back Methods. C502.5 BTL 1
[NOV / DEC 2016] [ NOV/DEC 2017]
3 Explain in detail about Java web services ? [NOV / DEC C502.5 BTL 1
2016]
4 Discuss about Database Driven web service. C502.5 BTL 1
5 Explain in detail about SOAP? [NOV / DEC 2016] [ C502.5 BTL 1
NOV/DEC 2017]
6 Describe the structure of WSDL document, its elements C502.5 BTL 1
and their purposes with appropriate examples.
[MAY/JUN 2016] [ NOV/DEC 2015]

You might also like