X

CS2305 Programming Paradigms Question Bank : dmice.ac.in

Name of the College : DMI College OF Engineering
Subject : Programming Paradigms
Website : dmice.ac.in
Document type : Question Bank

Download Programming Paradigms Model Question Paper : https://www.pdfquestion.in/uploads/dmice.ac.in/1364-CS2305.docx

DMI Programming Paradigms Question Paper

UNIT I

(2MARKS) :
PART – A :
** What is a class?
** What is an object?
** What is encapsulation? Explain with an example.
** What is polymorphism? Explain with an example.

Related : DMI College OF Engineering CS2304 System Software Question Bank : www.pdfquestion.in/1360.html

** What is JVM?
** What are the access modifiers in Java?
** What are Java Buzzwords?
** What is a static variable and static method? What’s the difference between two?
** What is garbage collection?
** What is abstract class?
** What is meant by final class, methods and variables?
** What is interface?


** What is singleton class?
** What is the difference between an array and a vector?
** What is a constructor?
** What is casting?
** What is the difference between final, finally and finalize?
** What is meant by abstraction?
** What is meant by Inheritance?
** How could Java classes direct program messages to the system console, but error messages, say to a file?
16 Mark Questions :
** Explain briefly the following object oriented concepts?
** What is constructor in java? Why constructor does not have a return type in java? Explain in with proper Example?
** Discuss in detail the access specifiers available in Java?
** Why do we need static members and how to access them? Explain it with clear example?
** What does it mean that a method or a class is abstract? Can we make an instance of an abstract class? Explain with it example.
** Explain in detail as to how inheritance and polymorphism are supported in java with necessary examples?
** Explain the Date Class methods with examples?
** Explain the different methods in java.Util.Arrays class with example?
** Write a Java program to find factorial of a given number using recursion?
** Write a program to find whether a number is a palindrome or not?

UNIT II

(16 MARKS) :
1 Define Inheritance
2. What are the types of inheritance?
3. How is multiple inheritance achieved in java?
4. What is the use of super keyword?
5. What are object wrappers? Give example.
6. What is Inheritance Hierarchy?
7. Differentiate overloading and overriding.
8. Define polymorphism.
9. Differentiate static binding and dynamic binding.
10. When will a class be declared as final?
11. When will a method be declared final?
12. What is an abstract class?
13. What is the need for abstract classes?
14. Explain about protected visibility control.
15. What are the methods under “object” class / java.lang.Object.
16. Explain toString method of object class.
17. What is reflection?
18. What are the uses of reflection in Java.
19. How will you create an instance of Class.
20. What are the methods under reflection used to analyze the capabilities of classes?
21. How to create arrays dynamically using reflection package.
22. Define an interface.
23. What is the need for an interface?
24. What are the properties of an interface?
25. Differentiate Abstract classes and interface.
26. What is object cloning?
27. Differentiate cloning and copying.
28. Differentiate shallow copy and deep copy in cloning.
29. Does Inheritance removes any fields/or methods of super class?
30. Mention the use of final keyword.
31. What is nested class? Mention its types.
32. What is inner class?
33. What is the need for inner classes?
34. What are the rules for inner class?
35. What is local inner class and anonymous inner class? Give their advantages.
36. Write the advantages and disadvantages of static nested class.
37. Define proxies.
38. Write the application of proxies.
39. What are the properties of proxy classes?

Tags: dmice.ac.in
Anusha:
www.pdfquestion.in © 2022 Contact Us   Privacy Policy   Site Map