R o l l No.
=1-
ANNA U N I V E R S I T Y ( U N I V E R S I T Y D E P A R T M E N T S )
B. Tech ( F u l l T i m e ) - E N D S E M E S T E R E X A M I N A T I O N S , N O V / D E C 2023
INFORMATION TECHNOLOGY
V Semester
IT5501 W E B T E C H N O L O G I E S
(Regulation 2019)
T i m e : 3iirs Max.Marks: 100
CO 1 T o learn the basic object oriented concepts using Java language
CO 2 T o understand the advanced features of Java language
CO 3 T o understand the essential client side technologies for web programming
CO 4 T o develop applications using database connectivity and server side programming in Java
environment
COS T o develop smart device based web application and deploy in different platforms
B L - Bloom's Taxonomy Levels
( L I - Remembering, L 2 - Understanding, L 3 - Applying, L 4 - Analysing, L 5 - Evaluating, L 6 - Creating)
P A R T - A ( 1 0 X 2 = 20 M a r k s )
( A n s w e r all Questions)
Q. No Questions Marks CO BL
1 Write a Java program to get the output for a given number n, a position p 2 1 L3
and a binary value b, it needs to change the bit at position p in n to value
b and print the result.
Examples: Input : n = 7 , p = 2, b = 0
2 State the difference between checked and unchecked exceptions. 2 1 LI
3 Write a Java code to print the arrays of different data types using 2 2 L2
Generics. , »
4 What is a daemon thread? 2 2 L2
5 What are the selectors in jQuery and list its types. 2 3 L2
6 Write a JavaScript code snippet to convert J S O N data into JavaScript 2 o L2
objects?
7 How does servlet manage cookies? 2 4 L2
8 Write short notes on JSP life cycle. 2 4 L2
9 What are the two main functionalities of Node Package Manager(NPM)? 2 5 L2
10 B r i e f J 2 M E with its components 2 5 L2
P A R T - B ( 5 X 13 = 65 M a r k s )
Q. No Questions Marks CO BL
11 (a) (i) Write a Java program to evaluate the grading system using classes, 7 1 L2
objects and constructors.
• Get marks as input for five students in 5 subjects.
• Calculate the grade for each subject
• Calculate the G P A
• Print the result on screen
(ii) Write a Java program to sort a numeric array and a string array. 6 1 L2
OR
11 ( b ) ( i ) Write a J a v a program to v e r i f y the username and password at the 6 ] L2
time o f registration using regular expression.
• User name should not start with special character and
w i t h i n 7- 12 character.
• P a s s w o r d should contain at least 12 characters long, a
combination of uppercase letters, lowercase letters,
numbers and s y m b o l s .
(ii) Write a J a v a program to create a base Class Shape w i t h methods 7 1 L2
d r a w ( ) and c a l c u l a t e A r e a ( ) . Create two subclasses C i r c l e and
C y l i n d e r . O v e r r i d e the d r a w ( ) method in each subclass to d r a w the
respective shape. In addition, override the c a l c u l a t e A r e a ( ) method
in the C y l i n d e r subclass to calculate and return the total surface
area o f the cylinder.
12 (a) ( i ) Create a simple menu application for R a d i o channels using s w i n g 13 2 L2
that enables a user to select one o f the f o l l o w i n g items:
• R a d i o l - Radio2 - Radio3 - Radio4 -RadioS
o F r o m the menu bar o f the application
o F r o m a pop-up menu
o F r o m a toolbar
• A d d tooltips to each m e n u item that indicates some
information about the R a d i o station such as type o f m u s i c and
its broadcast frequency.
OR
12(b) (i) W r i t e a J a v a program that creates a bank account w i t h concurrent 5 2 L2
deposits and w i t h d r a w a l s using threads.
(ii) W r i t e a socket connection to a l l o w a client to specify a file name 8 2 L2
o f a text file and r e c e i v e the contents o f the file or indicate that the
file does not exist from the server.
13(a) (i) E x p l a i n the J a v a S c r i p t , J Q u e r y and A J A X w i t h v a l i d syntax and 13 3 L2
functionalities for any W e b application? H o w does J Q u e r y differ
from J a v a S c r i p t ?
OR
1 3 ( b ) (i) Design and build a University web page creation using Javascript, 13 J L2
Jquery and A J A X . Include following
• Events
• D O M Elements Selection and Manipulation
• A J A X Interface
1 4 ( a ) (i) Write a Servlet web application that creates an employee-payroll 13 4 L2
hierarchy to calculate each employee's payroll. Create a database of
employees that corresponds to the employee-payroll hierarchy. Write an
^^^^
application that allows the user to:
•
•
Add employees to the employee table
Add payroll information to the appropriate table for each new
i i ( CHE tlNAl S.
employee \ 1 320
• Select all employees working in Department S A L E S .
• Increase base salary by 10% for all employees.
OR
14(b) (i) Write a J S F for an online shopping market system. Add all the required 13 4 L2
functionality for its application.
15(a) (i) Explain the node.js fundamentals, asynchronous Programming 13 5 L2
techniques and sequencing asynchronous logic briefly with code
snippet.
OR
15(b)(i) Explain the architecture of android mobile development platform with 13 5 L2
its components and write the android code for a calculator with minimal
operations.
P A R T - C (1 X 15 = 15 M a r k s )
( Q : N o . l 6 is c o m p u l s o r y )
Q. No Questions Marks CO BL
16. i) Write a J a v a program that gets the user input for a list o f 7 2 L3
numbers and write it to a file, then throws a customized exception
i f it reads a zero, negative number, more than 20 numbers.
ii) Create a class called " E m p l o y e e " and write a program that 8 J L3
prints the details o f three w o r k e r s in a text file named as emp.txt,
including their names, years o f employment, and addresses. T h e
result should look like this:
Name year of enrollment Address
Robert 2005 5 4 C - S V Street
Sam 2010 6 8 D - D r A K M Street
John 2014 2 6 B - J V S Street