0% found this document useful (0 votes)
2 views

Question Bank

The document is a comprehensive question bank divided into five units covering key concepts of Object-Oriented Programming (OOP) and Java. It includes short and long questions on topics such as classes, objects, inheritance, polymorphism, data types, operators, exception handling, and Java architecture. Each unit contains definitions, explanations, and programming exercises to enhance understanding of the subject matter.

Uploaded by

dangihitesh32
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Question Bank

The document is a comprehensive question bank divided into five units covering key concepts of Object-Oriented Programming (OOP) and Java. It includes short and long questions on topics such as classes, objects, inheritance, polymorphism, data types, operators, exception handling, and Java architecture. Each unit contains definitions, explanations, and programming exercises to enhance understanding of the subject matter.

Uploaded by

dangihitesh32
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Question Bank

Short questions
Unit I
1. Define OOP.
2. Define class.
3. Define object.
4. What do you understand by encapsulation?
5. What do you mean by abstraction?
6. What is polymorphism?
7. What is inheritance and its importance?
8. What is meant by message passing?
9. Who developed Java?
10. What is a bytecode?
11. Give full form of JVM and JRE.
12. What is meant by comment.
13. Define keyword.
14. What is a token in Java?
15. What do you understand by command line argument?

Unit II
1. Define constant.
2. Define variable.
3. What do you mean by data type?
4. What is meant by symbolic constant?
5. What is typecasting used for?
6. What do you mean by arithmetic operator?
7. What do you mean by relational operator?
8. What do you mean by logical operator?
9. What do you mean by conditional/ ternary operator?
10. What do you mean by bitwise operator?
11. What do you mean by increment and decrement operators?
12. What is the use of precedence and associativity rule?
13. What do you mean by branching statements?
14. What do you mean by looping statements?
15. What is meant by labelled loops?

Unit III
1. Define Class
2. Define object.
3. Define Constructors.
4. Define Methods Overloading.
5. Define Overriding Methods.
6. Define Inheritance.
7. Define array.
8. Define string.
9. Define vector.
10. What do you mean by wrapper class?
11. What are enumerated types?
12. What do you mean by public access specifier?
13. What do you mean by private access specifier?
14. What do you mean by protected access specifier?
15. What do you mean by default access specifier?

Unit IV
1. Define inheritance.
2. What is single inheritance?
3. What is multi-level inheritance?
4. What is hierarchical inheritance?
5. What is hybrid inheritance?
6. What is the super keyword?
7. Define interface.
8. Which keyword is used for inheriting a class?
9. Which keyword is used for implementing an interface?
10. Why is multiple inheritance not supported in Java?
11. Define polymorphishm.
12. What are the two main types of polymorphism?
13. How do interface relate to polymorphism?
14. What is static binding/ early binding?
15. What is dynamic binding/ late binding?

Unit V
1. Define package.
2. What is the use of import keyword?
3. Which keyword is used to define packages in Java?
4. Which existing package in Java bundles all the fundamental classes?
5. Which existing package in Java bundles all the input, output related classes?
6. Which existing package in Java contains all utility classes?
7. What is exception handling?
8. Why does an exception occur?
9. What is the difference between exception and error?
10. What are the different types of exceptions in Java?
11. What do you mean by built-in exceptions?
12. What is the difference between throw and throws?
13. What is try statement in Java?
14. What is catch statement block in Java?
15. What is finally block in Java?
Long questions

Unit I
1. Explain in detail the principles of OOP.
2. Discuss the advantages and disadvantages of OOP.
3. Briefly discuss the application area of OOP.
4. Give features of Java language.
5. Briefly discuss Java architecture.
6. Write short note on JVM.
7. Differentiate between C, C++ and Java.
8. Discuss Java program structure.
9. Discuss different types of statements.
10. Related Programs.

Unit II
1. Write short note on data types.
2. Discuss different types of operators.
3. Write short note on precedence and associativity rule.
4. Discuss if statement. Write a program to illustrate the same.
5. Discuss switch giving suitable example.
6. Discuss for loop. Write a program to illustrate the same.
7. Discuss while loop. Write a program to illustrate the same.
8. Discuss do while loop. Write a program to illustrate the same.
9. Discuss foreach loop. Write a program to illustrate the same.
10. Related Programs.

Unit III
1. Define class. How are variables and methods declared in class?
2. Discuss visibility controls.
3. Discuss non-parameterized constructor. Write a program to illustrate the same.
4. Discuss parameterized constructor. Write a program to illustrate the same.
5. Discuss method overloading. Write a program to illustrate the same.
6. Discuss method overriding. Write a program to illustrate the same.
7. Discuss array and its types.
8. Write short note on strings.
9. Write short note on vectors.
10. Related Programs.

Unit IV
1. Discuss different types of inheritance.
2. Discuss single inheritance. Write a program to illustrate the same.
3. Discuss multi-level inheritance. Write a program to illustrate the same.
4. Discuss hierarchical inheritance. Write a program to illustrate the same.
5. Why is multiple inheritance not supported in Java?
6. How do you achieve multiple inheritance in Java.
7. Write short note on interface.
8. Write short note on compile-time polymorphism.
9. Write short note on run-time polymorphism.
10. Related programs.

Unit V
1. Write short note on packages.
2. Write short note on built-in packages.
3. Write short note on user-defined packages.
4. How to access a package from another package?
5. How a class is added to a package?
6. How are naming conflicts handled?
7. Discuss exception handling.
8. Write short note on multiple catch statement.
9. Discuss try, catch, throw, throws and finally.
10. Related Programs.

You might also like