SHRI SOWDESVARI WOMEN’S COLLEGE (SFCW), SALEM-10
DEPARTMENT OF COMPUTERSCIENCE,
CLASS: II B.SC (CS) &BCA
MODEL EXAM – I
Paper Title: JAVA PROGRAMMING Subject Code:
23UCS04/CA04
Date: 22.01.2025 Time: 2 Hrs
Max. Marks: 50
SECTION -A (1X10=10)
Answer ALL the questions
1 Number of primitive data types in Java are?
a).6 b).7 c).8 d).9
2. What is the entry point of a program in Java?
a). main() method b). The first line of code c). Last line of code d) main class
3. What is the return type of the hashCode() method in the Object class?
a) Object b) int c) long d) void
4 To successfully overload a method in Java, the argument-list or parameter-list must be ___.
a) Same b) Different c) - d)none of these
5. To successfully overload a method in Java, the method names must be ___.
a) Same b) Different c) Same or different d)none
6. Which of these is supported by method overriding in Java?
a) Abstraction b) Encapsulation c) Polymorphism d) None of the mentioned
7.Which of the following is NOT a keyword in Java?
a) Instanceof b) emun c) transient d) strictfp
8. __________method cannot be overhidden
a) super b) static c) final d) private
9. Method used to take a string as input in Java?
a) next() b) nextLine() c) Both A. and B. d) None of these
10. Java array is a collection of ________.
a) similar type of elements b) different type of element c) heterogeneous data d) Both A and C
SHRI SOWDESVARI WOMEN’S COLLEGE (SFCW), SALEM-10
DEPARTMENT OF COMPUTERSCIENCE,
CLASS: II B.SC (CS) &BCA
MODEL EXAM – I
Paper Title: JAVA PROGRAMMING Subject Code:
23UCS04/CA04
SECTION - B (02X05=10)
Answer ANY TWO questions
11. Short notes on JVM Architecture.
12. Short notes on Variables and its Types.
13. Short notes on Constructors.
SECTION - C (03X10=30)
Answer ANY THREE questions
14. Explain about Operator with Types in Java. (OR)
Explain about Decision Making Statement in Java.
15. Explain about Inheritance With Types. (OR)
Explain about Packages With Example.
16. Explain about Method Overloading, Method overriding and abstract classes. (OR)
Explain about Decision Looping Statement in VB.