0% found this document useful (0 votes)
8 views11 pages

CS4357 - JAVA - SET 1 Split

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)
8 views11 pages

CS4357 - JAVA - SET 1 Split

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/ 11

a.) Write a Java Program to implement single Inheritance.

b.) Write a Java Program to find the Fibonacci series using recursive and non-recursive functions.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
1.

Internal Examiner

a.) Write a Java Program to implement an Interface.


b.) Write a Java Program to implement swing components.
Aim &Algorithm Program Results Viva-Voce Record Total
20 40 20 10 10 100

2.

Internal Examiner

a.) Write a Java Program for Method overloading and Constructor Overloading.
b.) Write a Java program to demonstrate Abstract class.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
3.

Internal Examiner
a.) Write a Java Program to find the third largest element in an array.
b.) Program to demonstrate features of generic class.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
4.

Internal Examiner

a.) Write a Java Program to display the employee details using Scanner class.
b.) Write a Java Program to find the Fibonacci series using recursive and non-recursive functions.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
5.

Internal Examiner

a.) Write a Java Program to create inner classes.


b.) Write a Java Program to implement scanner class and abstract class.
Aim &Algorithm Program Results Viva-Voce Record Total
20 40 20 10 10 100

6.

Internal Examiner
a.) Write a Java Program that checks whether a given string is palindrome or not.
b.) Write a Java Program to demonstrate error handling.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100

7.

Internal Examiner

a.) Write a Java Program to implement Interface using extends keyword.


b.) Write a Java Program to print Pascal’s Triangle.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
8.

Internal Examiner

a.) Write a Java Program to generate employee PaySlip using Inheritance Concept.
b.) Write a Java Program that swaps the values of two variables without using a temporary variable.
Use arithmetic operators to achieve the swap.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
9.

Internal Examiner
a.) Write a Java Program to create user defined package.
b.) Build a Java program that converts temperatures between Celsius and Fahrenheit. Allow users
to choose the conversion direction and use arithmetic operators to perform the conversions.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
10.

Internal Examiner

a) Write a Java Program for handling Mouse events and Key events.
b) Write a Java Program to count the total number of characters in a string

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100

11.

Internal Examiner

a.)Write a Java Program to demonstrate File Operations.


b.) Write a Java Program to find GCD of Two Numbers

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100

12.

Internal Examiner
a) Write a Java Program to generate random number.
b) Write a Java Program to generate employee PaySlip using Inheritance Concept.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
13.

Internal Examiner

a.) Write a Java Program to print the patterns of Right triangle star pattern.
b.) Write a Java Program to find the factorial of a number.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100

14.

Internal Examiner

a.)Write a Java program to count the number of words in a given text.


b.) Write a Java Program to calculate Electricity Bill Generation.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100

15.

Internal Examiner
a.) Write a Java Program to count the total number of vowels and consonants in a string.
b.) Write a Java Program to demonstrate string handling functions.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100

16.

Internal Examiner

a.) Write a Java Program for producer and consumer problem using Threads.
b.) Write a Java Program to display Even Numbers From 1 to 100.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
17.

Internal Examiner

a.) Write a Java Program to evaluate quadratic equation.


b.) Write a Java Program to check if a number is Armstrong or not.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100

18.

Internal Examiner
a.) Write a Java Program to illustrate multiple Catch Blocks.
b.) Write a Java Program to Reverse a number.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
19.

Internal Examiner

a) Write a Java Program to display Odd Numbers From 1 to 100.


b) Create an interface Shape with methods calculateArea() and calculatePerimeter(). Implement this
interface in two classes: Circle and Rectangle. Demonstrate their functionality.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
20.

Internal Examiner

a.) Write a Java Program that works as a simple calculator. Use a Grid Layout to arrange Buttons
for digits and for the +-*% operations. Add a text field to display the result.
b.) Write a Java Applet Program to add two numbers

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
21.

Internal Examiner
a.) Write a Java Program to count the total number of characters in a string.
b.) Write a Java Program to copy all elements of one array into another array.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
22.

Internal Examiner

a.) Create a Java program that reads a series of integers from the user until a negative number is
entered. The program should then calculate and display the following:
i. The sum of all positive integers entered.
ii. The average of all positive integers entered.
iii. The maximum and minimum values among the positive integers entered.
b.)Write a Java Program to calculate compound interest.

23. Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100

Internal Examiner

a.) Write a recursive Java method to generate all possible permutations of a given string. The
method should print each permutation on a new line. For the input string "ABC", the output should
be:
ABC
ACB
BAC
24. BCA
CAB
CBA
b.) Write a Java Program to find the total number of elements in an array.
Aim &Algorithm Program Results Viva-Voce Record Total
20 40 20 10 10 100

Internal Examiner
a.) Write a Java program to create a base class Shape with a method called calculateArea(). Create
three subclasses: Circle, Rectangle, and Triangle. Override the calculateArea() method in each
subclass to calculate and return the shape's area.
b.)Write a Java program that calculates the sum of all prime numbers up to a given limit using
multiple threads.

25.
Aim &Algorithm Program Results Viva-Voce Record Total
20 40 20 10 10 100

Internal Examiner

a.) Write a Java Program to Check if a Number is Positive or Negative.


b.) Write a Java Program to implement Interface using extends keyword.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100

26.

Internal Examiner

a.) Write a Java Program to print the prime numbers upto nth number.
b.) Write a Java Program to replace lower-case characters with upper-case and vice-versa.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
27.

Internal Examiner
a. Write a Java Program to sort the elements of an array in ascending order.
b. Write a Java Program to demonstrate error handling.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100

28.

Internal Examiner

a.) Write a Java Program to create a Thread by extending Thread class.


b.) Write a Java Program to print the following pattern
5432*
543*1
54*21
5*321
*4321
29,
Aim &Algorithm Program Results Viva-Voce Record Total
20 40 20 10 10 100

Internal Examiner

a.) Write a Java Program to display Odd Numbers.


b.) Write a Java Program to illustrate a Generic Function.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100
30.

Internal Examiner
a.) Write a Java Program for constructor overloading.
b.) Write a Java Program to calculate simple interest.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100

31.

Internal Examiner

a) Write a Java Program to find Smallest of Three Numbers Using Ternary Operator.
b.) Write a Java Program to demonstrate a simple applet program.

Aim &Algorithm Program Results Viva-Voce Record Total


20 40 20 10 10 100

32.

Internal Examiner

You might also like