AIML R23-OOP Through JAVA 5 Marks Questions
AIML R23-OOP Through JAVA 5 Marks Questions
UNIT-1
1. Explain basic concepts of OOP. (CO1, K2)
2. Explain Features of JAVA. (CO1, K2)
3. Explain control statements in JAVA with suitable examples. (CO1, K2)
4. Write a program to check whether a given integer number is Strong number or not. [Hint: Strong
Number (145=>1! +4! + 5! = 145) (CO1, K3)
5. Write a program to check whether a given integer number is Magical number or not. [Hint: Magical
Number (1729=>sum=1+7+2+9=19 rev=91 mul=sum*rev=19*91=1729) (CO1, K3)
6. Write a program to check whether a given integer number is Armstrong number or not. [Hint: Armstrong
Number (153=>1^3+5^3+3^3=153) (CO1, K3)
7. Develop a program to accept two integers as command line arguments and print the sum of the
two numbers. (CO1, K3)
8. Explain Method Overloading with an example. (CO1, K2)
9. Explain different types of Constructors with suitable examples. (CO1, K2)
10. Explain three uses of this keyword with suitable example for each use. (CO1, K2)
UNIT-2
UNIT-3
UNIT-4
UNIT-5
1. Explain different types of JDBC drivers with neat diagrams. (CO5, K2)
2. Explain the architecture of JDBC with a neat diagram. (CO5, K2)
3. Explain the purpose of the Reader and Writer classes in Java. How do they differ from
InputStream and OutputStream? (CO5, K2)
4. Write a program to count the number of times a character appears in a File. (CO5, K3)
5. Write a program to count the occurrences of each word in an input file and write the word
along with its corresponding count in an output file. [Note: The words should be sorted
alphabetically in the output file]. (CO5, K3)
6. Develop a program to copy contents of one file to another file. (CO5, K3)
7. Develop a JDBC program to retrieve data from the database. (CO5, K3)
8. Develop a JDBC program to insert data into the database. (CO5, K3)