TYBSc (CS) Sem VI - Practical - Slips
TYBSc (CS) Sem VI - Practical - Slips
1. Write a Java program to display all the alphabets between ‘A’ to ‘Z’ after every 2
seconds. [15 M]
2. Write a Java program to accept the details of Employee (Eno, EName, Designation,
Salary) from a user and store it into the database. (Use Swing) [15 M]
3. Viva [05M]
1
Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Sem-VI Practical Examination
CS-369: Practical Course based on CS 365
(Object Oriented Programming using Java – II)
Practical Duration: 3 Hours Max. Marks: 35
-----------------------------------------------------------------------------------------------------------------------------
1. Write a Java program using Runnable interface to blink Text on the frame. [15 M]
2. Write a Java program to store city names and their STD codes using an appropriate
collection and perform following operations:
i. Add a new city and its code (No duplicates)
ii. Remove a city from the collection
iii. Search for a city name and display the code [15 M]
3. Viva [05 M]
4
Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Sem-VI Practical Examination
CS-369: Practical Course based on CS 365
(Object Oriented Programming using Java – II)
Practical Duration: 3 Hours Max. Marks: 35
-----------------------------------------------------------------------------------------------------------------------------
1. Write a Java program to accept ‘n’ integers from the user and store them in a collection.
Display them in the sorted order. The collection should not accept duplicate elements.
(Use a suitable collection). Search for a particular element using predefined search
method in the Collection framework. [15 M]
3. Viva [05 M]
6
Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Sem-VI Practical Examination
CS-369: Practical Course based on CS 365
(Object Oriented Programming using Java – II)
Practical Duration: 3 Hours Max. Marks: 35
-----------------------------------------------------------------------------------------------------------------------------
1. Write a java program that implements a multi-thread application that has three threads.
First thread generates random integer number after every one second, if the number is
even; second thread computes the square of that number and print it. If the number is
odd, the third thread computes the of cube of that number and print it. [15 M]
3. Viva [05 M]
7
Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Sem-VI Practical Examination
CS-369: Practical Course based on CS 365
(Object Oriented Programming using Java – II)
Practical Duration: 3 Hours Max. Marks: 35
-----------------------------------------------------------------------------------------------------------------------------
1. Write a Java program to display information about the database and list all the tables in
the database. (Use DatabaseMetaData). [15 M]
2. Write a Java program to show lifecycle (creation, sleep, and dead) of a thread. Program
should print randomly the name of thread and value of sleep time. The name of the
thread should be hard coded through constructor. The sleep time of a thread will be a
random integer in the range 0 to 4999. [15 M]
3. Viva. [05 M]
13
Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Sem-VI Practical Examination
CS-369: Practical Course based on CS 365
(Object Oriented Programming using Java – II)
Practical Duration: 3 Hours Max. Marks: 35
-----------------------------------------------------------------------------------------------------------------------------
1. Write a java program to create a TreeSet, add some colors (String) and print out the
content of TreeSet in ascending order. [15 M]
2. Write a Java program to accept the details of Teacher (TNo, TName, Subject). Insert at
least 5 Records into Teacher Table and display the details of Teacher who is teaching
“JAVA” Subject. (Use PreparedStatement Interface) [15 M]
3. Viva [05 M]
16
Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Sem-VI Practical Examination
CS-369: Practical Course based on CS 365
(Object Oriented Programming using Java – II)
Practical Duration: 3 Hours Max. Marks: 35
-----------------------------------------------------------------------------------------------------------------------------
1. Write a java program to accept ‘N’ integers from a user. Store and display integers in
sorted order having proper collection class. The collection should not accept duplicate
elements.
[15 M]
3. Viva [05 M]
17
Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Sem-VI Practical Examination
CS-369: Practical Course based on CS 365
(Object Oriented Programming using Java – II)
Practical Duration: 3 Hours Max. Marks: 35
-----------------------------------------------------------------------------------------------------------------------------
1. Write a java program to accept ‘N’ Subject Names from a user store them into
LinkedList Collection and Display them by using Iterator interface. [15 M]
3. Viva [05 M]
21
Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Sem-VI Practical Examination
CS-369: Practical Course based on CS 365
(Object Oriented Programming using Java – II)
Practical Duration: 3 Hours Max. Marks: 35
-----------------------------------------------------------------------------------------------------------------------------
1. Write a java program to accept a String from a user and display each vowel from a
String after every 3 seconds. [15 M]
2. Write a java program to accept ‘N’ student names through command line, store them
into the appropriate Collection and display them by using Iterator and ListIterator
interface. [15 M]
3. Viva [05 M]
23
Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Sem-VI Practical Examination
CS-369: Practical Course based on CS 365
(Object Oriented Programming using Java – II)
Practical Duration: 3 Hours Max. Marks: 35
-----------------------------------------------------------------------------------------------------------------------------
1. Write a Java program to display information about all columns in the DONAR table
using ResultSetMetaData. [15 M]
2. Write a Java program to create LinkedList of integer objects and perform the following:
i. Add element at first position
ii. Delete last element
iii. Display the size of link list [15 M]
3. Viva [05 M]
29
Savitribai Phule Pune University
T.Y.B.Sc.(Computer Science) Sem-VI Practical Examination
CS-369: Practical Course based on CS 365
(Object Oriented Programming using Java – II)
Practical Duration: 3 Hours Max. Marks: 35
-----------------------------------------------------------------------------------------------------------------------------
2. Write a Java Program for the implementation of scrollable ResultSet. Assume Teacher
table with attributes (TID, TName, Salary) is already created. [15 M]
3. Viva [05 M]
30