Java Programming Mid-Sem Exam Preparation: 200 Questions
1. 1. Design Introduction - Explain Object-oriented programming and its key concepts.
2. 1. Design Introduction - What are OOPs principles? Define with examples.
3. 1. Design Introduction - Discuss encapsulation with a Java example.
4. 1. Design Introduction - Explain inheritance with code.
5. 1. Design Introduction - What is polymorphism? How is it implemented in Java?
6. 1. Design Introduction - Describe Java as an internet-enabled language.
7. 1. Design Introduction - Importance of Java in industry - explain.
8. 1. Design Introduction - Explain JVM, JDK, and JRE with differences.
9. 1. Design Introduction - Write a simple Java program with compilation and execution steps.
10. 1. Design Introduction - What is bytecode in Java?
11. 1. Design Introduction - Explain Object-oriented programming and its key concepts.
12. 1. Design Introduction - What are OOPs principles? Define with examples.
13. 1. Design Introduction - Discuss encapsulation with a Java example.
14. 1. Design Introduction - Explain inheritance with code.
15. 1. Design Introduction - What is polymorphism? How is it implemented in Java?
16. 1. Design Introduction - Describe Java as an internet-enabled language.
17. 1. Design Introduction - Importance of Java in industry - explain.
18. 1. Design Introduction - Explain JVM, JDK, and JRE with differences.
19. 1. Design Introduction - Write a simple Java program with compilation and execution steps.
20. 1. Design Introduction - What is bytecode in Java?
21. 1. Design Introduction - Explain Object-oriented programming and its key concepts.
22. 1. Design Introduction - What are OOPs principles? Define with examples.
23. 1. Design Introduction - Discuss encapsulation with a Java example.
24. 1. Design Introduction - Explain inheritance with code.
25. 1. Design Introduction - What is polymorphism? How is it implemented in Java?
26. 1. Design Introduction - Describe Java as an internet-enabled language.
27. 1. Design Introduction - Importance of Java in industry - explain.
28. 1. Design Introduction - Explain JVM, JDK, and JRE with differences.
29. 1. Design Introduction - Write a simple Java program with compilation and execution steps.
30. 1. Design Introduction - What is bytecode in Java?
31. 1. Design Introduction - Explain Object-oriented programming and its key concepts.
32. 1. Design Introduction - What are OOPs principles? Define with examples.
33. 1. Design Introduction - Discuss encapsulation with a Java example.
34. 1. Design Introduction - Explain inheritance with code.
35. 1. Design Introduction - What is polymorphism? How is it implemented in Java?
36. 1. Design Introduction - Describe Java as an internet-enabled language.
37. 1. Design Introduction - Importance of Java in industry - explain.
38. 1. Design Introduction - Explain JVM, JDK, and JRE with differences.
39. 1. Design Introduction - Write a simple Java program with compilation and execution steps.
40. 1. Design Introduction - What is bytecode in Java?
41. 2. Data Types, Variables, Operators - List all data types in Java and give examples.
42. 2. Data Types, Variables, Operators - Explain the difference between primitive and non-primitive
data types.
43. 2. Data Types, Variables, Operators - What is dynamic initialization? Give code.
44. 2. Data Types, Variables, Operators - Describe variable scope and lifetime with code.
45. 2. Data Types, Variables, Operators - Explain type conversion and casting with examples.
46. 2. Data Types, Variables, Operators - Write a program using different types of operators in Java.
47. 2. Data Types, Variables, Operators - Difference between implicit and explicit casting.
48. 2. Data Types, Variables, Operators - What are arithmetic, relational, and logical operators in
Java?
49. 2. Data Types, Variables, Operators - Write a program to demonstrate bitwise operators.
50. 2. Data Types, Variables, Operators - Explain assignment operators with Java examples.
51. 2. Data Types, Variables, Operators - List all data types in Java and give examples.
52. 2. Data Types, Variables, Operators - Explain the difference between primitive and non-primitive
data types.
53. 2. Data Types, Variables, Operators - What is dynamic initialization? Give code.
54. 2. Data Types, Variables, Operators - Describe variable scope and lifetime with code.
55. 2. Data Types, Variables, Operators - Explain type conversion and casting with examples.
56. 2. Data Types, Variables, Operators - Write a program using different types of operators in Java.
57. 2. Data Types, Variables, Operators - Difference between implicit and explicit casting.
58. 2. Data Types, Variables, Operators - What are arithmetic, relational, and logical operators in
Java?
59. 2. Data Types, Variables, Operators - Write a program to demonstrate bitwise operators.
60. 2. Data Types, Variables, Operators - Explain assignment operators with Java examples.
61. 2. Data Types, Variables, Operators - List all data types in Java and give examples.
62. 2. Data Types, Variables, Operators - Explain the difference between primitive and non-primitive
data types.
63. 2. Data Types, Variables, Operators - What is dynamic initialization? Give code.
64. 2. Data Types, Variables, Operators - Describe variable scope and lifetime with code.
65. 2. Data Types, Variables, Operators - Explain type conversion and casting with examples.
66. 2. Data Types, Variables, Operators - Write a program using different types of operators in Java.
67. 2. Data Types, Variables, Operators - Difference between implicit and explicit casting.
68. 2. Data Types, Variables, Operators - What are arithmetic, relational, and logical operators in
Java?
69. 2. Data Types, Variables, Operators - Write a program to demonstrate bitwise operators.
70. 2. Data Types, Variables, Operators - Explain assignment operators with Java examples.
71. 2. Data Types, Variables, Operators - List all data types in Java and give examples.
72. 2. Data Types, Variables, Operators - Explain the difference between primitive and non-primitive
data types.
73. 2. Data Types, Variables, Operators - What is dynamic initialization? Give code.
74. 2. Data Types, Variables, Operators - Describe variable scope and lifetime with code.
75. 2. Data Types, Variables, Operators - Explain type conversion and casting with examples.
76. 2. Data Types, Variables, Operators - Write a program using different types of operators in Java.
77. 2. Data Types, Variables, Operators - Difference between implicit and explicit casting.
78. 2. Data Types, Variables, Operators - What are arithmetic, relational, and logical operators in
Java?
79. 2. Data Types, Variables, Operators - Write a program to demonstrate bitwise operators.
80. 2. Data Types, Variables, Operators - Explain assignment operators with Java examples.
81. 3. Control Statements - Explain conditional statements in Java with syntax and examples.
82. 3. Control Statements - What are looping statements? List and explain.
83. 3. Control Statements - Write a program using if-else statement.
84. 3. Control Statements - Write a program using switch-case.
85. 3. Control Statements - Demonstrate for loop with a Java example.
86. 3. Control Statements - Demonstrate while and do-while loop with code.
87. 3. Control Statements - What are jump statements in Java?
88. 3. Control Statements - Explain break and continue with examples.
89. 3. Control Statements - Write a program using nested if statements.
90. 3. Control Statements - Write a program that prints the first 10 prime numbers using loop.
91. 3. Control Statements - Explain conditional statements in Java with syntax and examples.
92. 3. Control Statements - What are looping statements? List and explain.
93. 3. Control Statements - Write a program using if-else statement.
94. 3. Control Statements - Write a program using switch-case.
95. 3. Control Statements - Demonstrate for loop with a Java example.
96. 3. Control Statements - Demonstrate while and do-while loop with code.
97. 3. Control Statements - What are jump statements in Java?
98. 3. Control Statements - Explain break and continue with examples.
99. 3. Control Statements - Write a program using nested if statements.
100. 3. Control Statements - Write a program that prints the first 10 prime numbers using loop.
101. 3. Control Statements - Explain conditional statements in Java with syntax and examples.
102. 3. Control Statements - What are looping statements? List and explain.
103. 3. Control Statements - Write a program using if-else statement.
104. 3. Control Statements - Write a program using switch-case.
105. 3. Control Statements - Demonstrate for loop with a Java example.
106. 3. Control Statements - Demonstrate while and do-while loop with code.
107. 3. Control Statements - What are jump statements in Java?
108. 3. Control Statements - Explain break and continue with examples.
109. 3. Control Statements - Write a program using nested if statements.
110. 3. Control Statements - Write a program that prints the first 10 prime numbers using loop.
111. 3. Control Statements - Explain conditional statements in Java with syntax and examples.
112. 3. Control Statements - What are looping statements? List and explain.
113. 3. Control Statements - Write a program using if-else statement.
114. 3. Control Statements - Write a program using switch-case.
115. 3. Control Statements - Demonstrate for loop with a Java example.
116. 3. Control Statements - Demonstrate while and do-while loop with code.
117. 3. Control Statements - What are jump statements in Java?
118. 3. Control Statements - Explain break and continue with examples.
119. 3. Control Statements - Write a program using nested if statements.
120. 3. Control Statements - Write a program that prints the first 10 prime numbers using loop.
121. 4. Arrays - Define array in Java and its need.
122. 4. Arrays - How are arrays stored in memory?
123. 4. Arrays - Types of arrays in Java - explain with examples.
124. 4. Arrays - Write a program to declare and initialize an array.
125. 4. Arrays - Write a program to find max and min in an array.
126. 4. Arrays - Explain one-dimensional array with code.
127. 4. Arrays - Explain two-dimensional array with code.
128. 4. Arrays - Write a Java program to reverse an array.
129. 4. Arrays - Write a program to sort an array in ascending order.
130. 4. Arrays - Write a program to find the sum of array elements.
131. 4. Arrays - Define array in Java and its need.
132. 4. Arrays - How are arrays stored in memory?
133. 4. Arrays - Types of arrays in Java - explain with examples.
134. 4. Arrays - Write a program to declare and initialize an array.
135. 4. Arrays - Write a program to find max and min in an array.
136. 4. Arrays - Explain one-dimensional array with code.
137. 4. Arrays - Explain two-dimensional array with code.
138. 4. Arrays - Write a Java program to reverse an array.
139. 4. Arrays - Write a program to sort an array in ascending order.
140. 4. Arrays - Write a program to find the sum of array elements.
141. 4. Arrays - Define array in Java and its need.
142. 4. Arrays - How are arrays stored in memory?
143. 4. Arrays - Types of arrays in Java - explain with examples.
144. 4. Arrays - Write a program to declare and initialize an array.
145. 4. Arrays - Write a program to find max and min in an array.
146. 4. Arrays - Explain one-dimensional array with code.
147. 4. Arrays - Explain two-dimensional array with code.
148. 4. Arrays - Write a Java program to reverse an array.
149. 4. Arrays - Write a program to sort an array in ascending order.
150. 4. Arrays - Write a program to find the sum of array elements.
151. 4. Arrays - Define array in Java and its need.
152. 4. Arrays - How are arrays stored in memory?
153. 4. Arrays - Types of arrays in Java - explain with examples.
154. 4. Arrays - Write a program to declare and initialize an array.
155. 4. Arrays - Write a program to find max and min in an array.
156. 4. Arrays - Explain one-dimensional array with code.
157. 4. Arrays - Explain two-dimensional array with code.
158. 4. Arrays - Write a Java program to reverse an array.
159. 4. Arrays - Write a program to sort an array in ascending order.
160. 4. Arrays - Write a program to find the sum of array elements.
161. 5. Object Oriented Programming - Explain concept of classes and objects with syntax.
162. 5. Object Oriented Programming - How to declare and assign object reference variables?
163. 5. Object Oriented Programming - Write a program using constructors.
164. 5. Object Oriented Programming - What are different types of constructors?
165. 5. Object Oriented Programming - Write a program to show method overloading.
166. 5. Object Oriented Programming - What is constructor overloading? Explain with code.
167. 5. Object Oriented Programming - Explain access control with Java keywords.
168. 5. Object Oriented Programming - Explain garbage collection in Java.
169. 5. Object Oriented Programming - Write a program using static data and methods.
170. 5. Object Oriented Programming - Explain the use of final keyword with variables, methods and
classes.
171. 5. Object Oriented Programming - What is parameter passing in Java - call by value?
172. 5. Object Oriented Programming - Write a recursive function to calculate factorial.
173. 5. Object Oriented Programming - What are nested classes? Explain with example.
174. 5. Object Oriented Programming - Write a program to show usage of 'this' keyword.
175. 5. Object Oriented Programming - How is encapsulation achieved in Java?
176. 5. Object Oriented Programming - Difference between overloading and overriding.
177. 5. Object Oriented Programming - Write a program for single and multilevel inheritance.
178. 5. Object Oriented Programming - Explain abstract classes and interfaces with code.
179. 5. Object Oriented Programming - What is runtime polymorphism? Demonstrate with code.
180. 5. Object Oriented Programming - Difference between static and dynamic binding.
181. 5. Object Oriented Programming - Explain concept of classes and objects with syntax.
182. 5. Object Oriented Programming - How to declare and assign object reference variables?
183. 5. Object Oriented Programming - Write a program using constructors.
184. 5. Object Oriented Programming - What are different types of constructors?
185. 5. Object Oriented Programming - Write a program to show method overloading.
186. 5. Object Oriented Programming - What is constructor overloading? Explain with code.
187. 5. Object Oriented Programming - Explain access control with Java keywords.
188. 5. Object Oriented Programming - Explain garbage collection in Java.
189. 5. Object Oriented Programming - Write a program using static data and methods.
190. 5. Object Oriented Programming - Explain the use of final keyword with variables, methods and
classes.
191. 5. Object Oriented Programming - What is parameter passing in Java - call by value?
192. 5. Object Oriented Programming - Write a recursive function to calculate factorial.
193. 5. Object Oriented Programming - What are nested classes? Explain with example.
194. 5. Object Oriented Programming - Write a program to show usage of 'this' keyword.
195. 5. Object Oriented Programming - How is encapsulation achieved in Java?
196. 5. Object Oriented Programming - Difference between overloading and overriding.
197. 5. Object Oriented Programming - Write a program for single and multilevel inheritance.
198. 5. Object Oriented Programming - Explain abstract classes and interfaces with code.
199. 5. Object Oriented Programming - What is runtime polymorphism? Demonstrate with code.
200. 5. Object Oriented Programming - Difference between static and dynamic binding.