DCS7303
DCS7303
Reg. No. :
Third Semester
Computer Science
(Regulations 2013)
1. What is a dialog and what are the types of dialog supported by JavaScript?
10. What is JSP? What are the advantages of JSP over Servlets?
wk12
PART B — (5 13 = 65 marks)
11. (a) (i) Explain the different types of cascading style sheet representations
with example program. (6)
(ii) What is regular expression in JavaScript? Describe the methods
that use regular expressions in JavaScript. (7)
Or
(b) (i) Explain different types of arrays in JavaScript each with an
example. (10)
(ii) Write JavaScript code to get a message from the user and display in
browser status bar. (3)
12. (a) (i) Explain how to display an XML document of a given type using
XSL with an example. (7)
(ii) Discuss about structuring of XML document using schema and
DTD with suitable example. (6)
Or
(b) (i) Explain the approaches for parsing XML document. (6)
(ii) What is AJAX? Discuss about the features of AJAX for building
interactive applications for the Web. (7)
13. (a) (i) Create a class ‘Account’ with two overloaded constructors. The first
constructor is used for initializing, the name of account holder,
account number and initial amount in the account. The second
constructor is used for initializing the name of the account holder,
account number, the addresses, type of account and current
balance. The Account class is having methods Deposit( ),
Withdraw( ), and Get_Balance( ). Make the necessary assumption
for data members and return types of the methods. Create objects of
Account class and use them. (7)
(ii) With suitable example, differentiate between abstract class and
java interface. (6)
Or
(b) (i) Create a package ‘ItemPack’ which includes class ‘ITEM’ with
ItemCode, ItemName, rate, quantity as attributes and a method
displayItems( ). Accept the item details using constructor. Also
create an interface having method calculate Amount( ) with rate
and quantity as arguments. Create a class, which overrides these
methods. (7)
(ii) Explain user defined exception handling in java with suitable
example. (6)
2 J1513
wk12
14. (a) (i) Illustrate the benefits of generic classes with suitable example. (3)
Or
(b) (i) What are the methods and classes required for JDBC connectivity?
(3)
(ii) Describe the methods and properties of any four GUI components.
(10)
15. (a) (i) Develop a web site for online course registration for a technological
university. Write a JavaScript code for validating the web pages. (7)
(ii) How do you access a database from JSP page? Explain with an
example. (6)
Or
(b) (i) What is servlet? Describe the life cycle of a servlet with suitable
example. (7)
PART C — (1 15 = 15 marks)
Or
———————
3 J1513
Reg. No. :
Third Semester
Computer Science
(Regulations 2013)
1. What is XHTML?
3. Define XPath.
4. What is AJAX?
PART B — (5 13 = 65 marks)
11. (a) (i) Describe the various font and text properties of cascading style
sheets. (8)
(ii) List out the operators supported in JavaScript. (5)
Or
(b) Write a detailed note on JavaScript objects. (13)
12. (a) Explain the concept of parsing XML using DOM. (13)
Or
(b) Discuss how to integrate XML with database. (13)
13. (a) (i) Write a java program to add the given two matrices. (8)
(ii) Brief about string methods in Java. (5)
Or
(b) (i) Explain how to create an interface in Java. (8)
(ii) Show the Java exception hierarchy. (5)
14. (a) (i) Elaborate on Java applet life cycle methods. (8)
(ii) What is swing? Explain. (5)
Or
(b) Write a note on Java GUI components. (13)
Or
(b) Discuss the steps involved in developing a dynamic website. (13)
PART C — (1 15 = 15 marks)
16. (a) With a simple application, explain how to create and import package in
Java. (15)
Or
(b) Explain the way of accessing database with JDBC with an example. (15)
__________________
2 BS2513