ABDULKALAM INSTITUTE OF TECHNOLOGICAL SCIENCES
VEPALAGADDA, BHADRADRI KOTHAGUDEM-DIST, TS-507120
MID-I EXAMINATION QUESTION PAPER
Branch: AI&ML Year- Sem: II-II
Subject: Opps through JAVA Duration: 60 min
Date & Session: Maximum marks: 20
Answer any Four Questions. Each Question carries 05 Marks.
1. Explain concept of interface withexample program.
2. Explain the for loop and nested if with exaple program.
[Link] characterstics of oops concept.
[Link] super keyword with example program.
[Link] is inheritance?expalin any 2 types of inheritance.
[Link] with example method overidding and method overloading.
ABDULKALAM INSTITUTE OF TECHNOLOGICAL SCIENCES
VEPALAGADDA, BHADRADRI KOTHAGUDEM-DIST, TS-507120
MID-I EXAMINATION QUESTION PAPER
Branch: AI&ML Year- Sem: II-II
Subject: Opps throgh JAVA Duration: 60 min
Date & Session: Maximum marks: 20
Answer any Four Questions. Each Question carries 05 Marks.
1. Explain concept of interface withexample program.
2. Explain the for loop and nested if with exaple program.
[Link] characterstics of oops concept.
[Link] super keyword with example program.
[Link] is inheritance?expalin any 2 types of inheritance.
[Link] with example method overidding and method overloading.
ABDULKALAM INSTITUTE OF TECHNOLOGICAL SCIENCES
VEPALAGADDA, BHADRADRI KOTHAGUDEM-DIST, TS-507120
MID-I EXAMINATION OBJECTIVE PAPER
Branch: AI&ML Year- Sem: II-II
Subject: Opps through JAVA
Name_____________________________ Hall ticket number_______________________
ALL QUESTIONS CARRIES EQUAL MARKS.
MULTIPLE CHOICES QUESTIONS.
1. Which statement is true about Java? [ ]
a) Java is a sequence-dependent programming language
b) Java is a code dependent programming language
c) Java is a platform-dependent programming language
d) Java is a platform-independent programming language
2. Which component is used to compile, debug and execute the java programs? [ ]
a) JRE
b) JIT
c) JDK
d) JVM
3. Which one of the following is not a Java feature? [ ]
a) Object-oriented
b) Use of pointers
c) Portable
d) Dynamic and Extensible
4. Which of these cannot be used for a variable name in Java? [ ]
a) identifier & keyword
b) identifier
c) keyword
d) none of the mentioned
5. What is the extension of java code files? [ ]
a) .js
b) .txt
c) .class
d) .java
6. What will be the output of the following Java code? [ ]
1. class increment {
2. public static void main(String args[])
3. {
4. int g = 3;
5. [Link](++g * 8);
6. }
7. }
a) 32
b) 33
c) 24
d) 25
7. Which environment variable is used to set the java path? [ ]
a) MAVEN_Path
b) JavaPATH
c) JAVA
d) JAVA_HOME
8. Which of the following is not an OOPS concept in Java? [ ]
a) Polymorphism
b) Inheritance
c) Compilation
d) Encapsulation
9. What is not the use of “this” keyword in Java? [ ]
a) Referring to the instance variable when a local variable has the same name
b) Passing itself to the method of the same class
c) Passing itself to another method
d) Calling another constructor in constructor chaining
10. What is the extension of compiled java classes? [ ]
a) .txt
b) .js
c) .class
d) .java
FILL IN THE BLANKS.
1. JDK full form_______________________________________.
2. JVM full form___________________________________________.
3. What is the operator used to create object of a class_______________________________.
4. Class is a_____________________________.
[Link] means ______________________________.
6. Multiple inheritance is allowed in java by using ______________________.
7. Abstract class is declared using ________________________ keyword.
8. Final methods cannot be _________________________________ by child class.
9. What is the base class for all exceptions___________________________.
10. Checked exception are occurred at the time of____________________.