You are on page 1of 5

YASHWANTRAO CHAVAN MAHARASHTRA OPEN UNIVERSITY

Enterprise Solutions Using J2EE (CMP214)


January 2017
Practical Examination Slip A
Time: 1 Hr Marks: 100
Instructions:
1) All the questions are compulsory.
2) Attach the Printout of your work to answer book

Q.1 Write a program to generate Hramonic Series (1+1/2+1/3+1/4+1/5 = 2.28 ) [20M]

Q.2 Write Program to sort an Array A using Bubble Sort [30M]

Where A[8]={ 17,6,15,2,3,14,20,1 }

Q.3 Write Program to perform Arithmetic Operations using Interface. [30M]

Q.4 Write Program for simple Socket example. It opens a connection to a whois port(port
43) on the InterNIC Server , sends the command-line argument down the socket, and then prints
the data that is returned interNIC will try to look up the argument as a registered Internet domain
name, and then send back the IP address and contact information for the site. [20M]
YASHWANTRAO CHAVAN MAHARASHTRA OPEN UNIVERSITY

Enterprise Solutions Using J2EE (CMP214)


January 2017
Practical Examination Slip B
Time: 1 Hr Marks: 100
Instructions:
1) All the questions are compulsory.
2) Attach the Printout of your work to answer book

Q.1 Write a program to check whether the given year is leap year or not. [20M]

Q.2 Create a BANK ACCOUNT application using switch (e.g. Deposit Money , Withdraw
Money , Check Balance etc.). [30M]

Q.3 Write a program to accept a number from the user , if number is zero then throw user defined
exception Number is 0 otherwise check whether no is prime or not . [20M]

Q.4Write a program to Implement a program to accomplish the following task using string /
string Buffer class :
[30M]
i. Accept a password from user.
ii. Check if password is correct then display "Good"
iii. Else display "Incorrect password"
iv. Append the password with the string "Welcome to java!!!"
v. Display the password in reverse order.
vi. Replace the character '!' in password with "*" character.
YASHWANTRAO CHAVAN MAHARASHTRA OPEN UNIVERSITY

Enterprise Solutions Using J2EE (CMP214)


January 2017
Practical Examination Slip C
Time: 1 Hr Marks: 100
Instructions:
1) All the questions are compulsory.
2) Attach the Printout of your work to answer book

Q .1 Write a program to accept a string and count number of vowels,digits tabs and blank spaces
in a string . [20M]
Q.2Write a program to define a class Fraction having data members numerator and denominator.
Initialize three objects using different constructors and display its fractional value. [30M]
Q.3 Write a program to implement the following Multi Level Inheritance

[30M]

Account

Cust_name
Acc_no

Saving_Acc

Min_bal
Saving_bal

Acct_Details

Deposits
Withdrawals
Q.4 Create a URL to Osbornes download page and then examines its properties (URL :
http://www.osborne.com/downloads) [20M]
YASHWANTRAO CHAVAN MAHARASHTRA OPEN UNIVERSITY

Enterprise Solutions Using J2EE (CMP214)


January 2017
Practical Examination Slip D
Time: 1 Hr Marks: 100
Instructions:
1) All the questions are compulsory.
2) Attach the Printout of your work to answer book

Q 1 Write program to generate the Fibonacci series using recursion [20M]

Q 2 Write a program to implement two threads such that one thread prints prime numbers from 1
to 10 and other thread prints non-prime numbers from 1 to 10 (use Thread class ).
[30M]
Note :- Each thread has a delay of 500 millisecond after printing one number

Q 3 Create a billing form where the flavor of ice-cream are displayed . On the selection of a
flavor and the quantity entered , the total amount is calculated and displayed

[30M]
Q : 4 Write a program to accomplish following task

[20M]
A. Create a user defined package box which has a class definition for box having data
members an disp() method (Assume suitable data)
B. Source file imports above package and calculate the volume of box.

You might also like