[go: up one dir, main page]

0% found this document useful (0 votes)
51 views3 pages

DCSD 22.1F Enterprise Application Development-1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views3 pages

DCSD 22.1F Enterprise Application Development-1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

NATIONAL INSTITUTE OF BUSINESS MANAGEMENT

Diploma in Computer System Design-22.1F


Diploma in Software Engineering-22.1F
Enterprise Application Development-1
Time allowed: Three hours 27 April 2023 | 1PM-4PM
INSTRUCTIONS TO CANDIDATES

• This paper contains 5 questions. Answer ALL questions.


• Marks for each question are indicated.
• This is a closed-book examination.

1.
a. List five important practices used in enterprise application development.
(05 Marks)
b. List out two ways of implementing abstraction in Java. Write sample codes for each
way. (06 Marks)

c. The following codes generate an error(s) during the compilation. You are required to
find the root cause and recommend a solution to avoid error(s). (04 Marks)
class Human
{
}
class Employee
{
}
class Manager extends Human, Employee
{
}

d. You are required to write Java codes to create a package to store the below class
Product. Make the attribute price visible inside the class and the method show is visible
inside the package.
(05 Marks)
class Product
{ float price;
public void show()
{
}
}

Page 1 of 3
2.

a. Briefly explain the importance of handling exceptions in enterprise application


development. (05 Marks)
b. Why is the throws keyword available in java. Write sample codes to explain the usage.
(05 Marks)
c. You are given the following set of program codes used in an enterprise application for
reviewing purposes.

Program Codes:

public class Cal {


public static void main (String args) {
Scanner sc=new Scanner (System.in).
int val= s.nextInt();
for(i=4;i>=0;i--){
System.out.println(val/i);
}
}
}

i. You are required to list identified errors and label them as compile-time errors
and runtime errors. (05 Marks)
ii. Do you think the above codes are free of exceptions? If yes, justify your answer.
If not, write codes to handle them. (05 Marks)

3.

a. Why is the application of thread important in enterprise application development?


(05 Marks)
b. What are the techniques available to block a currently running thread? (03 Marks)
c. A timer which is designed to be used in sports events runs seconds from 1 to 10000.
During the running, it displays minutes and hours based on seconds completed. You
are required to write a single-thread program to display minutes and hours when the
timer starts and runs till the end. Set the name and priority of the thread.
(12 Marks)

Page 2 of 3
4. You are required to write java programming codes to implement the below scenario in an
enterprise-level application.

i. Draw the expected User Interface (UI) with appropriate components and name the
components. (08 Marks)
ii. Write java codes to handle the event. Provide necessary responses. The following
code space is given. (12 Marks)

Description:

The user interface accepts the Type of Customer, Requested Loan Amount, Period(years)
and output Interest Amount. There are three customer types, and three periods (3
Years|6Years|10 Years) are predefined.
Table:
Customer Type Annual Interest Rate (%)
A 10%
B 12%
C 8%

5.
a. List out and state the purpose of classes and interfaces in JDBC API used to interact
with a database. (04 Marks)
b. Briefly explain the reasons for generating SQL exceptions when communicating with
the database. (03 Marks)
c. Write a java class to create a connection to the following database. (04 Marks)
Database Name : office
Username : test
Password : test1

d. Write java codes to retrieve data from the table given below. Use a method to write
your codes. (04 Marks)
Table : Employee (employee id, employee age, employee salary)
e. Use diagram and explain how to use MVC architectures used in enterprise application
development. (05 Marks)

Page 3 of 3

You might also like