Automatically extracted historical question data. Academic accuracy and examination rules require verification.
Part A — 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
Other Or UnclassifiedSource quality review required
Part A — 2
State the difference between checked and unchecked exceptions. 2 1 L I
Short DescriptionSource quality review required
Part A — 3
Write a Java code to print the arrays of different data types using 2 2 L2
Generics. , »
Other Or UnclassifiedSource quality review required
Part A — 4
What is a daemon thread? 2 2 L2
DefinitionSource quality review required
Part A — 5
What are the selectors in jQuery and list its types. 2 3 L2
DefinitionSource quality review required
Part A — 6
Write a JavaScript code snippet to convert JSON data into JavaScript 2 o L2
objects?
Other Or UnclassifiedSource quality review required
Part A — 7
How does servlet manage cookies? 2 4 L2
Other Or UnclassifiedSource quality review required
Part A — 8
Write short notes on JSP life cycle. 2 4 L2
Other Or UnclassifiedSource quality review required
Part A — 9
What are the two main functionalities of Node Package Manager(NPM)? 2 5 L2
DefinitionSource quality review required
Part A — 10
Brief J2ME with its components 2 5 L2
Other Or UnclassifiedSource quality review required
Part B — 11a
(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 GPA
• Print the result on screen
(ii) Write a Java program to sort a numeric array and a string array. 6 1 L2
Other Or UnclassifiedSource quality review required
Part B — 11b
(b)(i) Write a Java program to verify the username and password at the 6 ] L2
time of registration using regular expression.
• User name should not start with special character and
within 7- 12 character.
• Password should contain at least 12 characters long, a
combination of uppercase letters, lowercase letters,
numbers and symbols.
(ii) Write a Java program to create a base Class Shape with methods 7 1 L2
draw() and calculateArea(). Create two subclasses Circle and
Cylinder. Override the draw() method in each subclass to draw the
respective shape. In addition, override the calculateArea() method
in the Cylinder subclass to calculate and return the total surface
area of the cylinder.
Other Or UnclassifiedSource quality review required
Part B — 12a
(a) (i) Create a simple menu application for Radio channels using swing 13 2 L 2
that enables a user to select one of the following items:
• R a d i o l - Radio2 - Radio3 - Radio4 -RadioS
o From the menu bar of the application
o From a pop-up menu
o From a toolbar
• Add tooltips to each menu item that indicates some
information about the Radio station such as type of music and
its broadcast frequency.
Other Or UnclassifiedSource quality review required
Part B — 12b
(b) (i) Write a Java program that creates a bank account with concurrent 5 2 L2
deposits and withdrawals using threads.
(ii) Write a socket connection to allow a client to specify a file name 8 2 L2
of a text file and receive the contents of the file or indicate that the
file does not exist from the server.
Other Or UnclassifiedSource quality review required
Part B — 13a
(a) (i) Explain the JavaScript, JQuery and A J A X with valid syntax and 13 3 L 2
functionalities for any Web application? H o w does JQuery differ
from JavaScript?
Other Or UnclassifiedSource quality review required
Part B — 13b
(b) (i) Design and build a University web page creation using Javascript, 13 J L2
Jquery and A J A X . Include following
• Events
• DOM Elements Selection and Manipulation
• A J A X Interface
Other Or UnclassifiedSource quality review required
Part B — 14a
(a) (i) Write a Servlet web application that creates an employee-payroll 13 4 L 2
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.
Other Or UnclassifiedSource quality review required
Part B — 14b
(b) (i) Write a JSF for an online shopping market system. Add all the required 13 4 L2
functionality for its application.
Other Or UnclassifiedSource quality review required
Part B — 15a
(a) (i) Explain the node.js fundamentals, asynchronous Programming 13 5 L2
techniques and sequencing asynchronous logic briefly with code
snippet.
Other Or UnclassifiedSource quality review required
Part B — 15b
(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.
Other Or UnclassifiedSource quality review required
Part C — 16
i) Write a Java program that gets the user input for a list of 7 2 L3
numbers and write it to a file, then throws a customized exception
if it reads a zero, negative number, more than 20 numbers.
ii) Create a class called "Employee" and write a program that 8 J L3
prints the details of three workers in a text file named as emp.txt,
including their names, years of employment, and addresses. The
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
Other Or UnclassifiedSource quality review required