Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Telangana University
CARE DEGREE COLLEGE (5002)
Internal Assessment Test – 2 Time: 30 min Sub: Java Programming Name of the Student: ________________________ Max Marks: 20
H.T.No: ___________________________________ Group & Sem/Year: B.Sc(MPCs), III Yr, V sem
I) Multiple Choice Questions 10 X 1/2= 5
1. Who is known as father of Java Programming Language? ( ) a) James Gosling b) M. P Java c) Charel Babbage d) Blais Pascal 2. Which provides runtime environment for java byte code to be executed? ( ) a) JDK b) JVM c) JRE d) JAVAC 3. Java language was initially called as ________ ( ) a) Sumatra b) J++ c) Oak d) Pine 4. Which one is a template for creating different objects ? ( ) a) An Array b) A class c) Interface d) Method 5. Which of these operators is used to allocate memory to array variable in Java? ( ) a) alloc b) malloc c) new malloc d) new 6. Java does not support _______________? ( ) a) Inheritance b) Multiple inheritance for classes c) multiple inheritance of interfaces d) compile time polymorphism 7. Runtime polymorphism feature in java is ( ) a) method overriding b) method overloading c) constructor overloading d) operator overloading 8. Encapsulation concept in java is ( ) a) Hiding complexity b) method hiding c) Hiding constructor d) None 9. Exposing only necessary information to clients is known as ( ) a) Abstraction b) Encapsulation c) Data hiding d) Hiding complexity. 10. Hiding the complexity in program is known as ( ) a) Abstraction b) Encapsulation c) Data hiding d) Composition II) Fill in the blanks 10 X 1/2= 5 1. IS-A relationship in java is related to………………………….……………. 2. In java, “this” keyword is used to……………………………….. 3. try, catch, finally, throw, and throws keywords in java are related to………………………… 4. Advantage of inheritance in java programming is/are………………………………… 5. Which class cannot be sub classed……………………………... 6. Another name of base class is……………………….. 7. Another name of derived class is ………………………… 8. Constructor with arguments are called ……………………… 9. Keywords are also called ……………………..word 10. Every object has a ………………, ……………….. and …………………. III) Answer the following questions. 5X1=5 1. What is constructor? 2. Explain about Thread? 3. Explain about Interface? 4. Explain about Exception? 5. Explain about abstract class in java? IV) Answer any one of questions. 5X1=5 1. Explain about types of inheritance? 2. Explain about abstraction with program?