ADITYA COLLEGE OF ENGINEERING & TECHNOLOGY (A)
Computer Science and Engineering
[Link] - III Semester I Sessional (Descriptive) Examinations (2024-25)
Object Oriented Programming through Java (231CS3T02)
Time: 90 Minutes Date: 28-09-2024 Max. Marks: 30
Answer any 3 questions
All questions carry equal marks
a) List and explain the Tokens in the Java language. L1 CO1 [5M]
1 b) Demonstrate how with the help of Command line arguments we can
L2 CO1 [5M]
customize the behavior of the main() method.
OR
a) Illustrate various types of iterative statements with suitable example. L2 CO1 [5M]
2 b) What do you understand by type casting & automatic promotion? Explain
L2 CO1 [5M]
with suitable examples.
a) Demonstrate about class and object. Write an example program. L2 CO2 [5M]
3 CO2
b) Make use of static keyword in Java. L3 [5M]
OR
a) Define recursion. Discuss the advantages of recursion with example L2 CO2 [5M]
program.
4
b) Demonstrate the pass-by-value and the pass-by-reference method using an L2 CO2 [5M]
example programs.
a) Outline the program structure in Java? L2 CO1 [5M]
5
b) Illustrate in detail about various types of Java Operators with example. L2 CO1 [5M]
OR
a) Explain is method overloading with an example program. L2 CO2 [5M]
6
b) Is it possible to access Private members of a class? Justify your answer. L5 CO2 [5M]