AUXILIUM ARTS AND SCIENCE COLLEGE FOR WOMEN, Chittampatti, Madurai
DEPARTMENT OF DATA SCIENCE
FIRST INTERNAL EXAMINATION
Class: II [Link]. DATA SCIENCE (IV SEMESTER) Date:
Subject: JAVA PROGRAMMING Max. Marks: 50
PART – A
I. Choose the Correct answer (9 X 1 = 9)
1. Which Component is used to compile, debug and execute the java program
a)JRE b)JIT c)JDK d)JVM
2. Java programs are _________ independent.
(a) platform (b) procedural (c) high level (d) secure
3. The _______ refers to the validity of a variable.
(a) scope (b) variable (c) float (d) method
4. The ––––––––– statement is valid for array declaration.
(a) int number (); (b) float number (); (c) float number []; (d) count int []
5. A package is a collection of _______
(a) keywords (b) classes and interfaces (c) editing tools (d) view
6. Which of these keywords is used to prevent the inheritance
(a) Super (b) Constant (c)class (d)final
7. Which of these keywords is used to throw the exception manually?
(a)try (b)finally (c)throw (d)catch
AUXILIUM ARTS AND SCIENCE COLLEGE FOR WOMEN, Chittampatti, Madurai
DEPARTMENT OF DATASCIENCE
FIRST INTERNAL EXAMINATION
Class: II [Link]. DATA SCIENCE (IV SEMESTER) Date:
Subject: JAVA PROGRAMMING Max. Marks: 50
PART – A
I. Choose the Correct answer (9 X 1 = 9
1. Which Component is used to compile, debug and execute the java program
a)JRE b)JIT c)JDK d)JVM
2. Java programs are _________ independent.
(a) platform (b) procedural (c) high level (d) secure
3. The _______ refers to the validity of a variable.
(a) scope (b) variable (c) float (d) method
4. The ––––––––– statement is valid for array declaration.
(a) int number (); (b) float number (); (c) float number []; (d) count int []
5. A package is a collection of _______
(a) keywords (b) classes and interfaces (c) editing tools (d) view
6. Which of these keywords is used to prevent the inheritance
(a) Super (b) Constant (c)class (d)final
7. Which of these keywords is used to throw the exception manually?
(a)try (b)finally (c)throw (d)catch
8. Which of these are selection statement in java?
(a) if (b)continue (c)break (d)for
9. Which of the following is the bitwise OR operator
(a)- (b)^ (c)>> (d)%
PART – B
II. Answer ALL questions, choosing either (a) or (b) (3 ×7 = 21)
10. a. What are the data types used in Java
(OR)
b. Explain if keyword in java.
11. a. How to use final keyword in java
(OR)
b .Discuss about java buzzwords.
12. a. Define: 1) Static keyword 2) Super keyword.
(OR)
b. Define package with example program.
PART – C
III. Answer the following ANY TWO Questions (2 X 10 = 20)
13. Discuss in detail about method overriding in java.
14. What is constructor explain with example.
[Link] exception handling with example program.
8. Which of these are selection statement in java?
(a) if (b)continue (c)break (d)for
9. Which of the following is the bitwise OR operator
(a)- (b)^ (c)>> (d)%
PART – B
II. Answer ALL questions, choosing either (a) or (b) (3 ×7 = 21)
10. a. What are the data types used in Java
(OR)
b. Explain if keyword in java.
11. a. How to use final keyword in java
(OR)
b .Discuss about java buzzwords.
12. a. Define: 1) Static keyword 2) Super keyword.
(OR)
b. Define package with example program.
PART – C
III. Answer the following ANY TWO Questions (2 X 10 = 20)
13. Discuss in detail about method overriding in java.
14. What is constructor explain with example.
[Link] exception handling with example program.