ANADHAN MEMORIAL ARTS AND SCIENCE COLLEGE
(Affiliated to Annamalai University)
Vanniyar Palayam
Subject Name: ____________________ Date: __________
Subject Code: ____________________ Total Marks: 30
PART – A (6 × 1 = 6 Marks)
Answer All the Questions
1. Which keyword is used to declare a class in Java?
a) define b) object c) class d) public
2. An array stores ________.
a) Different data types only b) Same type of elements c) Only characters d) Only
numbers
3. A function that calls itself is called:
a) Constructor b) Recursive Function c) Inline Function d) Static Function
4. Which statement terminates a loop?
a) continue b) break c) switch d) case
5. Who is the Father of Java? Mention the year Java was introduced.
6. What is a Recursive Function?
PART – B (2 × 7 = 14 Marks)
1. Explain different data types with examples.
2. Explain arrays and array operations with examples.
3. Explain Arithmetic, Relational, Logical, and Assignment operators with examples.
PART – C (1 × 10 = 10 Marks)
1. Explain the control statements in Java with suitable examples.
OR
2. Explain the Java Character Set and Java Tokens in detail.
ALL THE BEST!