Você está na página 1de 5

Web Technologies (April/May-2012, Set-4) JNTU-Hyderabad

Code No: 09A60505/R09


B.Tech III Year II Semester Examinations

April/May - 2012

S.21

Set-4
Solutions

WEB TECHNOLOGIES
( Common to CSE, IT )

Time: 3 Hours

Max. Marks: 75
Answer any FIVE Questions
All Questions carry equal marks
---

1.

Write HTML code to create a frame with a table contents on the left side of the window, and have each entry in the
table of contents. Use internal linking to scroll down the document frame to the appropriate subsection. [15]

(Unit-I, Topic No. 1.5)


2.

(a)

Explain the need for scripting languages in web programming. (Unit-II, Topic No. 2.1)

(b)

Explain the features of Java Script. [15] (Unit-II, Topic No. 2.1)

3.

What is an XML schema? With an example explain the working of XML schema. [15] (Unit-III, Topic No. 3.2)

4.

(a)

How are EJBs related to simple java beans? What are the difference between them? (Unit-IV, Topic No. 4.10)

(b)

Describe BDK Introspection. [15] (Unit-IV, Topic No. 4.3)

(a)

Explain how Http POST request is processed using servlets. (Unit-V, Topic No. 5.9)

(b)

How cookies are used for session tracking? [15] (Unit-V, Topic No. 5.10)

(a)

What are the problems with servlet? (Unit-VI, Topic No. 6.1)

(b)

Explain testing of tomcat. [15] (Unit-VI, Topic No. 6.6)

5.

6.

7.

Discuss about implicit objects in JSP. [15] (Unit-VII, Topic No. 7.2)

8.

Write short notes on,


(a)

Accessing a database from a JSP page (Unit-VIII, Topic No. 8.3)

(b)

Struts framework. [15] (Unit-VIII, Topic No. 8.6)

B.Tech. III-Year II-Sem.

( JNTU-Hyderabad )

Spectrum ALL-IN-ONE Journal for Engineering Students, 2013

S.22

SOLUTIONS TO APRIL/MAY-2012, SET-4, QP


Q1.

Write HTML code to create a frame with a table contents on the left side of the window, and have
each entry in the table of contents. Use internal linking to scroll down the document frame to the
appropriate subsection.
April/May-12, Set-4, Q1 M[15]

Answer :
main.html
<html>
<head></head>
<frameset rows = 20%,*>
<frame src = states.html/>
<frameset cols = 20%,*>
<frame src = table content.html/>
<frame src = description.html name = frm1/>
</frameset>
</frameset>
</html>
table content.html
<html>
<head></head>
<body>
<ul>
<li><a href = description.html#l1 target = frm1>Uttar
Pradesh</a><li>
<li><a href = description.html#l2
target = frm1>Maharashtra</a></li>
<li><a href = description.html#l3
target = frm1>Bihar</a></li>
<li><a href = description.html#l4 target = frm1>West
Bengal</a></li>
<li><a href = description.html#l5 target = frm1>Andhra
Pradesh</a><li>
<li><a href = description.html#l6 target = frm1>Medhya
Pradesh</a><li>
<li><a href = description.html#l7 target = frm1>Tamil Nadu</a></li>
</ul>
</body>
</html>

B.Tech. III-Year II-Sem.

( JNTU-Hyderabad )

Web Technologies (April/May-2012, Set-4) JNTU-Hyderabad

S.23

Output

Q2. (a) Explain the need for scripting languages in web programming.
Answer :
April/May-12, Set-4, Q2(a)
A scripting language is a form of programming language which is usually interpreted rather than compiled. It is
defined as a language with several characteristics such as dynamic runtime type checking, high level data structures, open
source implementations, high level data types, administration of server machines and enhanced features for the delivery of
web pages.
Perl, PHP, Python and TCL are some of the examples of scripting languages.
The need for scripting languages arises when there is a necessity to perform complex tasks. Since, scripting languages
equip greater flexibility, better control and more features.
Advantages of Scripting Languages
(i)

Scripting languages are quicker and easy to implement.

(ii)

Whatever the operations we do with computers such as communication with web based services, creation of GUI,
accessing databases etc., can be done by the scripting languages.
(iii)
Scripting languages are more capable in building complex data structures which can take part in complex algorithms.
(b) Explain the features of JavaScript.
Answer :
April/May-12, Set-4, Q2(b)
Salient Features of JavaScript
(i) JavaScript is an object-based language that is confined to run within the web browsers only.

B.Tech. III-Year II-Sem.

( JNTU-Hyderabad )

Spectrum ALL-IN-ONE Journal for Engineering Students, 2013

S.24
(ii)

JavaScript is an interpreted language and requires no compilation steps.

(iii) JavaScript can directly be embedded in HTML files. The HTML files with embedded JavaScript commands
interpreted by any browser that is JavaScript enabled.
(iv) JavaScript is a loosely typed language i.e. one data type can be automatically converted into other types
without explicit conversion.
(v)

JavaScript is platform independent but browser dependent. The JavaScript applications work on any machine
that has an appropriate JavaScript enabled browser installed. A JavaScript program developed on a Unix
machine will work perfectly on a Windows machine.

(vi) JavaScript supports event-based programming.


(vii) Performance is good since the JavaScript programs are included in the same file as the HTML code for a Web
page, the down load time for the client is minimum.
(viii) JavaScript is multi functional i.e., it can be used at a client side scripting as well as server side also.
Q3.

What is an XML schema? With an example explain the working of XML schema.
April/May-12, Set-4, Q3 M[15]

Answer :
For answer refer Unit-III, Q11.
Q4.

(a)

How are EJBs related to simple java beans? What are the difference between them?
April/May-12, Set-4, Q4(a)

Answer :
Relation between EJBs and Simple Java Beans

Simple Java beans and EJBs are much related to each other as they both have the same property of reusability and
probability of Java code in the tools of deployment and development. Also they both use the standard design patterns.
Both have the capability to carry out different types of problems.
Differences between EJB and Simple Java Beans
For answer refer Unit-IV, Q20, Topic: Differences Between Java Beans and EJBS.
(b)

Describe BDK Introspection.


April/May-12, Set-4, Q4(b)

Answer :
For answer refer Unit-IV, Q8.
Q5.

(a)

Explain how Http POST request is processed using servlets.


April/May-12, Set-4, Q5(a)

Answer :
For answer refer Unit-V, Q25, Topic: Handling Http Post Requests.
(b)

How cookies are used for session tracking?


April/May-12, Set-4, Q5(b)

Answer :
For answer refer Unit-V, Q27.
Q6.

(a)

What are the problems with servlet?

Answer :

April/May-12, Set-4, Q6(a)

For answer refer Unit-VI, Q1, Topic: Problem with Servlets.

B.Tech. III-Year II-Sem.

( JNTU-Hyderabad )

Web Technologies (April/May-2012, Set-4) JNTU-Hyderabad


(b)

S.25

Explain testing of tomcat.


April/May-12, Set-4, Q6(b)

Answer :
For answer refer Unit-VI, Q18, Topic: Testing Tomcat.
Q7.

Discuss about implicit objects in JSP.


April/May-12, Set-4, Q7 M[15]

Answer :
For answer refer Unit-VII, Q8.
Q8.

Write short notes on,


(a)

Accessing a database from a JSP page

(b)

Struts framework.

Answer :
(a)

April/May-12, Set-4, Q8 M[15]

Accessing a Database from a JSP Page


For answer refer Unit-VIII, Q13

(b)

Struts Framework
For answer refer Unit-VIII, Q21.

B.Tech. III-Year II-Sem.

( JNTU-Hyderabad )

Você também pode gostar