Slip 1
Slip 2
- Q.1] Write a menu driven program to the following operations on a set of integers as shown in the following figure. The load operation should generate 10 random integers (2 digits) and display the numbers on the screen. The save operation should save the numbers to a file “numbers.txt”. The Sort menu provides various operations and the result is displayed on the screen
- Q.2]Write a client-server program which displays the server machine‟s date and time on the client machine
Slip 3
b. 31 6 1990
c. 29 2 2015
Slip 4
Slip 5
Slip 6
Slip 7
a) Insert
b) Modify
c) Delete
d) Search
e) View All
f) Exit
Slip 8
Slip 9
Slip 10
Slip 11
a) If it is a directory, list the names of text file. Also, display a count showing the number of files in the directory.
b) If it is a file display various details of that file.
a) First thread prints “I am in FY” 10 times
b) Second thread prints “I am in SY” 20 times
c)Third thread prints “I am in TY” 30 time
Slip 12
Slip 13
a) If it is a directory, delete all text file in that directory. Confirm delete operation from user before deleting text file. Also, display a count showing the number of files deleted, if any , rom the directory.
b) If it is a file display various details of that file
Slip 14
a) Search name and display phone number
b) Add new name-phone number pair.
i. Display the contents of the List using an Iterator
ii. Display the contents of the List in reverse order using a ListIterator
iii. Create another list containing pink and green. Insert the elements of this list between blue and yellow.
Slip 15
a) Search for a specific item by name
b) Find costliest item
c) Display all items and total cost
b) Find costliest item
c) Display all items and total cost
Slip 16
- Q.1] Define a class CricketPlayer(name, no_of_innings, no_of_times_notout, total_runs, bat_avg). Create an array of “n” player objects. Calculate the batting average for each player using a static method avg(). Handle appropriate exception while calculating average. Define static method “sortPlayer” which sort the array on the basis of average. Display the player details in sorted order.
- Q.2] Create an application to store city names and their STD codes using an appropriate collection. The GUI should allow the following operations:
b) Remove a city from the collection
c) Search for a city name and display the code.
Slip 17
Slip 18
Slip 19
Slip 20
- Q.1] Write a program to create a package “SY” which has a class SYMARKS (Computer Total, MathsTotal, ElectronicsTotal). Create another package “TY” which has a class TYMarks (Theory, Practical). Create another package “TY” which has a class TYMarks(Theory, Practical). Create “n” objects of student class having roll number, name, SYMakrs and TYMarks. Add the marksof SY and TY Computer subjects and calculate grade („A‟ for >=70, „B‟ for >=60, „C‟ for >=50, “Pass Class” for >=40 else “Fail”) and display the result of the student in proper format.
- Q.2] Design a following Phone Book Application Screen using swing. Display proper message if invalid data is entered like name left bank and negative phone number. Using Postgresql store the values in the table phone (Name, Address, Phone) if valid data is entered for all the fields and perform the various operations like Add, Delete, next and previous as shown on the screen.
Slip 21
Slip 22
Input : User Name ABC
Output : Good Morning ABC/Good Afternoon ABC/ Good Evening ABC
Slip 23
a) useCard() method increase the creditAmount by a specific amount upto creaditLimit.
b) payCreadit() reduces the creditAmount by a specific amount.
c) increaseLimit() increases the creaditLimit for GoldCardCustomers (only 3 times, not more than 5000 rupees each time.)
a) out: To display current Date and Time
b) request: To get header information
c) response: To Add cookie
d) config: get the parameters value defined in <init-param>
e) application: get the parameter value defined in <context-param>
No comments:
Post a Comment