Follow

iklan banner
MASIGNCLEAN101

Core Java TYBBA(CA) Practical Slips Solution

Core Java TYBBA(CA) Practical Slips Solution
Mr PVK
March 29, 2025

Savitribai Phule Pune University T.Y.B.B.A.(C.A.) Semester – V (CBCS 2019 Pattern) University Practical Examination Lab Course: (CA-506) Computer Laboratory Based on 504 Core Java 


 Core Java TYBBA(CA) Practical Slips Solution 2023 :-


Slip 1 


A) Write a ‘java’ program to display characters from ‘A’ to ‘Z’. 


B) Write a ‘java’ program to copy only non-numeric data from one file to another file



Slip 2


A) Write a java program to display all the vowels from a given string


B) Design a screen in Java to handle the Mouse Events such as MOUSE_MOVED andMOUSE_CLICK and display the position of the Mouse_Click in a TextField.



Slip 3


A) Write a ‘java’ program to check whether given number is Armstrong or not. (Use static keyword)


B) Define an abstract class Shape with abstract methods area () and volume (). Derive abstract class Shape into two classes Cone and Cylinder. Write a java Program to calculate area and volume of Cone and Cylinder.(Use Super Keyword.)



Slip 4


A) Write a java program to display alternate character from a given string.


B) Write a java program using Applet to implement a simple arithmetic calculator.




Slip 5


A) Write a java program to display following pattern:

            5

            4 5 

            3 4 5 

            2 3 4 5 

            1 2 3 4 5


B) Write a java program to accept list of file names through command line. Delete the files having extension .txt. Display name, location and size of remaining files.



Slip 6


A) Write a java program to accept a number from user, if it zero then throw user defined Exception “Number Is Zero”, otherwise calculate the sum of first and last digit of that number. (Use static keyword).


B) Write a java program to display transpose of a given matrix.



Slip 7


A) Write a java program to display Label with text “Dr. D Y Patil College”, background color Red and font size 20 on the frame.


B) Write a java program to accept details of ‘n’ cricket player (pid, pname, totalRuns, InningsPlayed, NotOuttimes). Calculate the average of all the players. Display the details of player having maximum average. (Use Array of Object)



Slip 8


A) Define an Interface Shape with abstract method area(). Write a java program tocalculate an area of Circle and Sphere.(use final keyword)


B) Write a java program to display the files having extension .txt from a given directory.



Slip 9


A) Write a java Program to display following pattern: 

            1 

            0 1 

            0 1 0 

            1 0 1 0


B) Write a java program to validate PAN number and Mobile Number. If it is invalid then throw user defined Exception “Invalid Data”, otherwise display it.



Slip 10


A) Write a java program to count the frequency of each character in a given string.


B) Write a java program for the following:




Slip 11


A) Write a menu driven java program using command line arguments for thefollowing: 

            1. Addition 

            2. Subtraction 

            3. Multiplication

            4. Division.


B) Write an applet application to display Table lamp. The color of lamp should get change randomly. 




Slip 12


A) Write a java program to display each String in reverse order from a String array


B) Write a java program to display multiplication table of a given number into the List box by clicking on button



Slip 13


A) Write a java program to accept ‘n’ integers from the user & store them in an ArrayList collection. Display the elements of ArrayList collection in reverse order.


B) Write a java program that asks the user name, and then greets the user by name. Before outputting the user's name, convert it to upper case letters. For example, if the user's name is Raj, then the program should respond "Hello, RAJ, nice to meet you!".

 


Slip 14


A) Write a Java program to calculate power of a number using recursion.


B) Write a java program to accept the details of employee (Eno, EName, Sal) and display it on next frame using appropriate event .



Slip 15


A) Write a java program to search given name into the array, if it is found then display its index otherwise display appropriate message.


B) Write an applet application to display smiley face.

 


Slip 16


A) Write a java program to calculate sum of digits of a given number using recursion.


B) Write a java program to accept n employee names from user. Sort them in ascending order and Display them.(Use array of object and Static keyword)



Slip 17


A) Write a java Program to accept ‘n’ no’s through command line and store only armstrong no’s into the array and display that array.


B) Define a class Product (pid, pname, price, qty). Write a function to accept the product details, display it and calculate total amount. (use array of Objects)



Slip 18


A) Write a Java program to calculate area of Circle, Triangle & Rectangle.(Use Method Overloading)


B) Write a java program to copy the data from one file into another file, while copying change the case of characters in target file and replaces all digits by ‘*’ symbol.



Slip 19


A) Write a Java program to display Fibonacci series using function.

 

B) Create an Applet that displays the x and y position of the cursor movement using Mouse and Keyboard. (Use appropriate listener)



Slip 20


A) Write a java program using AWT to create a Frame with title “TYBBACA”, background color RED. If user clicks on close button then frame should close.

 

B) Construct a Linked List containing name: CPP, Java, Python and PHP. Then extend your java program to do the following: 

        i. Display the contents of the List using an Iterator 

        ii. Display the contents of the List in reverse order using a ListIterator



Slip 21


A) Write a java program to display each word from a file in reverse order


B) Create a hashtable containing city name & STD code. Display the details of the hashtable. Also search for a specific city and display STD code of that city. 



Slip 22


A) Write a Java program to calculate factorial of a number using recursion.


B) Write a java program for the following:

            1. To create a file. 

            2. To rename a file. 

            3. To delete a file. 

            4. To display path of a file.



Slip 23


A) Write a java program to check whether given file is hidden or not. If not then display its path, otherwise display appropriate message.


B) Write a java program to design following Frame using Swing. 




Slip 24


A) Write a java program to count number of digits, spaces and characters from a file


B) Create a package TYBBACA with two classes as class Student (Rno, SName, Per) with a method disp() to display details of N Students and class Teacher (TID, TName, Subject) with a method disp() to display the details of teacher who is teaching Java subject. (Make use of finalize() method and array of Object) 



Slip 25


A) Write a java program to check whether given string is palindrome or not.


B) Create a package named Series having three different classes to print series: 

            i. Fibonacci series 

            ii. Cube of numbers 

            iii. Square of numbers 

Write a java program to generate ‘n’ terms of the above series

 


Slip 26


A) Write a java program to display ASCII values of the characters from a file


B) Write a java program using applet to draw Temple.



Slip 27


A) Write a java program to accept a number from user, If it is greater than 1000 then throw user defined exception “Number is out of Range” otherwise display the factors of that number. (Use static keyword)


B) Write a java program to accept directory name in TextField and display list of files and subdirectories in List Control from that directory by clicking on Button. 



Slip 28


A) Write a java program to count the number of integers from a given list. (Use Command line arguments).

 

B) Write a java Program to accept the details of 5 employees (Eno, Ename, Salary) and display it onto the JTable.

 


Slip 29


A) Write a java program to check whether given candidate is eligible for voting or not. Handle user defined as well as system defined Exception.


B) Write a java program using Applet for bouncing ball. Ball should change its color for each bounce. 



Slip 30


A) Write a java program to accept a number from a user, if it is zero then throw userdefined Exception “Number is Zero”. If it is non-numeric then generate an error“Number is Invalid” otherwise check whether it is palindrome or not.


B) Write a java program to design a following GUI (Use Swing)




Share This :
Mr PVK
Write Your Response
:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
-_-
(o)
[-(
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
(c)
cheer
(li)
(pl)