Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Lab exam question_paper
1. 1. Calculate Circle Area using Java.
2. Calculate Circle Perimeter using Java
3. Calculate Rectangle Area using Java
4. Prime Numbers Java
5. Java Palindrome Number
6. Fibonacci Series Java
7. Swap Numbers Without Using Third Variable Java
8. Find Largest and Smallest Number in an Array
9. Java Factorial
10. Swap Numbers Java
11. Even Odd Number
12. Reverse Number using Java
13. Create a class Box having fields length, breadth, height and methods getdata() and
displaydata().Make two objects of the class access fields by the methods.
14. Design a class to represent a bank account. Include the following data members:-depositor_name,
acc_no, acc_balance. Methods:-To assign initial values, To deposit an amount, To check balance,To
display Depositor name & present balance. Make objects of the class and demonstrate the action of
the methods.
15. Write a program in Java to demonstrate method overriding
16. A computer institute wishes to keep a database of its employees as shown in the below figure.
Specify all the classes and define methods to create the database and retrieve information as and
when required.
17. Write a program to extract a portion of a character string and print the extracted string. Assume that m
characters are extracted, starting with the nth character.
18. Write a program that will read a text and count all occurrences of a particular word.
2. 19. Create a flexible string (“Kalyani College”) using StringBuffer class. Print its length, each character and its
positions. Modify the string to “Kayani Govt. eng. College” and append the string “ is the best Engg. College.”
Modify “eng.” of the string to “Engg.”
20. Write a program using Command Line Arguments which will take some(must be greater than 5) integer values
as input find the largest and smallest among them and also prints the number of arguments entered. The
program must prompt user if no arguments found or arguments less than 5.
21. Write a program using InputStreamReader and BufferdReader class that takes input: user-name, user-birth-
year, user-email. Prints “Hello ! <user-name>. You are <…>years old and your e-mail is: <abc@xyz.com>”.
22. Make an abstract class shape having the following (int dim1,dim2; area()). Extend sub class Rectangle,
triangle, Square and override the area() method. Prepare objects and show their action.
23. Make an interface Area, implement Area in class Rectangle and in class Circle. Illustrate by making objects of
the class.
24. The final exam results of 10 students are tabulated as follows:
Name Roll e-mail Sub-1 Sub-2 Sub-3 Sub-4
123001
123002
…
123009
Write a program to read the data and determine the following: Total marks obtained by each student.
25. The final exam results of 10 students are tabulated as follows:
Name Roll e-mail Sub-1 Sub-2 Sub-3 Sub-4
123001
123002
…
123009
Write a program to read the data and determine the following: Name and Roll of the students who obtained
Maximum and Minimum total marks.
26. The final exam results of 10 students are tabulated as follows:
Name Roll e-mail Sub-1 Sub-2 Sub-3 Sub-4
123001
123002
…
123009
Write a program to read the data and determine the following: The highest marks in each subject and name
& roll no. of that student.
27. Calculate Circle Area using Java.
28. Calculate Circle Perimeter using Java
29. Calculate Rectangle Area using Java
30. Prime Numbers Java
3. 31. Java Palindrome Number
32. Fibonacci Series Java
33. Swap Numbers Without Using Third Variable Java
34. Find Largest and Smallest Number in an Array
35. Java Factorial
36. Swap Numbers Java
37. Even Odd Number
38. Reverse Number using Java
39. Create a class Box having fields length, breadth, height and methods getdata() and
displaydata().Make two objects of the class access fields by the methods.
40. Design a class to represent a bank account. Include the following data members:-depositor_name,
acc_no, acc_balance. Methods:-To assign initial values, To deposit an amount, To check balance,To
display Depositor name & present balance. Make objects of the class and demonstrate the action of
the methods.
41. Write a program in Java to demonstrate method overriding
42. A computer institute wishes to keep a database of its employees as shown in the below figure.
Specify all the classes and define methods to create the database and retrieve information as and
when required.
43. Write a program to extract a portion of a character string and print the extracted string. Assume that m
characters are extracted, starting with the nth character.
44. Write a program that will read a text and count all occurrences of a particular word.
45. Create a flexible string (“Kalyani College”) using StringBuffer class. Print its length, each character and its
positions. Modify the string to “Kayani Govt. eng. College” and append the string “ is the best Engg. College.”
Modify “eng.” of the string to “Engg.”
46. Write a program using Command Line Arguments which will take some(must be greater than 5) integer values
as input find the largest and smallest among them and also prints the number of arguments entered. The
program must prompt user if no arguments found or arguments less than 5.
47. WAP using InputStreamReader and BufferdReader class that takes input: user-name, user-birth-year, user-
email. Prints “Hello ! <user-name>. You are <…>years old and your e-mail is: <abc@xyz.com>”.
4. 48. Make an abstract class shape having the following (int dim1,dim2; area()). Extend sub class Rectangle,
triangle, Square and override the area() method. Prepare objects and show their action.
49. Make an interface Area, implement Area in class Rectangle and in class Circle. Illustrate by making objects of
the class.
50. The final exam results of 10 students are tabulated as follows:
Name Roll e-mail Sub-1 Sub-2 Sub-3 Sub-4
123001
123002
…
123009
Write a program to read the data and determine the following: Total marks obtained by each student.
51. The final exam results of 10 students are tabulated as follows:
Name Roll e-mail Sub-1 Sub-2 Sub-3 Sub-4
123001
123002
…
123009
Write a program to read the data and determine the following: Name and Roll of the students who obtained
Maximum and Minimum total marks.
52. The final exam results of 10 students are tabulated as follows:
Name Roll e-mail Sub-1 Sub-2 Sub-3 Sub-4
123001
123002
…
123009
Write a program to read the data and determine the following: The highest marks in each subject and name
& roll no. of that student.
53. Design a class to represent a bank account. Include the following data members:-depositor_name,
acc_no, acc_balance. Methods:-To assign initial values, To deposit an amount, To check balance,To
display Depositor name & present balance. Make objects of the class and demonstrate the action of
the methods.
54. Write a program in Java to demonstrate method overriding
55. A computer institute wishes to keep a database of its employees as shown in the below figure.
Specify all the classes and define methods to create the database and retrieve information as and
when required.
5. 56. Write a program to extract a portion of a character string and print the extracted string. Assume that m
characters are extracted, starting with the nth character.
57. Write a program that will read a text and count all occurrences of a particular word.
58. Create a flexible string (“Kalyani College”) using StringBuffer class. Print its length, each character and its
positions. Modify the string to “Kayani Govt. eng. College” and append the string “ is the best Engg. College.”
Modify “eng.” of the string to “Engg.”
59. Write a program using Command Line Arguments which will take some(must be greater than 5) integer values
as input find the largest and smallest among them and also prints the number of arguments entered. The
program must prompt user if no arguments found or arguments less than 5.
60. Write a program using InputStreamReader and BufferdReader class that takes input: user-name, user-birth-
year, user-email. Prints “Hello ! <user-name>. You are <…>years old and your e-mail is: <abc@xyz.com>”.
61. Prime Numbers Java
62. Java Palindrome Number
63. Fibonacci Series Java
64. Swap Numbers Without Using Third Variable Java
65. Find Largest and Smallest Number in an Array
66. Java Factorial
67. Swap Numbers Java
68. Even Odd Number
69. Prime Numbers Java
70. Java Palindrome Number
71. Fibonacci Series Java
72. Swap Numbers Without Using Third Variable Java
73. Find Largest and Smallest Number in an Array
74. Java Factorial
75. Swap Numbers Java
76. Create a class Box having fields length, breadth, height and methods getdata() and
displaydata().Make two objects of the class access fields by the methods.
6. 77. Design a class to represent a bank account. Include the following data members:-depositor_name,
acc_no, acc_balance. Methods:-To assign initial values, To deposit an amount, To check balance,To
display Depositor name & present balance. Make objects of the class and demonstrate the action of
the methods.
78. Write a program in Java to demonstrate method overriding
79. A computer institute wishes to keep a database of its employees as shown in the below figure.
Specify all the classes and define methods to create the database and retrieve information as and
when required.
80. Write a program to extract a portion of a character string and print the extracted string. Assume that m
characters are extracted, starting with the nth character.
81. Write a program that will read a text and count all occurrences of a particular word.
82. Create a flexible string (“Kalyani College”) using StringBuffer class. Print its length, each character and its
positions. Modify the string to “Kayani Govt. eng. College” and append the string “ is the best Engg. College.”
Modify “eng.” of the string to “Engg.”
83. Write a program using Command Line Arguments which will take some(must be greater than 5) integer values
as input find the largest and smallest among them and also prints the number of arguments entered. The
program must prompt user if no arguments found or arguments less than 5.