[IMPs] SEM 4 Object Oriented Programming - I Chapter Wise Important Questions | GTU Medium


UNIT :- 1 : INTRODUCTION TO JAVA AND ELEMENTARY PROGRAMMING 

1) Explain JRE, JDK and JIT. (3)
2) Compare object-oriented programming with sequential programming. (3)
3) What is the difference between oop and procedural oriented language? (3)
4) Explain type-conversion in java. (4)
5) What are the data-types and operators available in Java? (7)
6) Define object oriented concepts. (3)
7) What are syntax errors (compile errors), runtime errors, and logic errors? (3)
8) What is Type Casting? Explain widening and narrowing type casting. (4)

UNIT :-2 : SELECTION, MATHEMATICAL FUNCTIONS AND LOOP

1) Difference between Nested if and multi-way if statements. (3)

UNIT : 3 :- METHODS AND ARRAY

1) Write a program to take string input as command line argument. In addition, count occurrence of each character in a given string. (7)
2) Explain about arrays, Type of arrays and arrays methods. (3)
3) Explain “Passing argument by values” with example. (4)
4) The file name is passed as a command line argument. The words in the file are separated by white space characters. (7)

UNIT :- 4 : OBJECTS AND CLASSES

1) Explain static keyword with example. (4)
2) Method main is a public static method. Justify (4)
3) Explain class and object with respect to java. (7)
4) What is constructor overloading? (4)
5) Explain access modifiers with Example. (3)
6) List and explain available type of constructors in java with example. (7)
7) How to access object via reference variable? Explain with example. (4)
8) Define constructor. How objects are constructed? Explain constructor overloading with an example. (7)
9) Write short notes on access specifiers and modifiers in java. (4)
10) Explain visibility modifiers. (3)
11) Explain static variable and static method with example. (4)

UNIT : 5 :- OBJECT ORIENTED THINKING

1) Explain Method Overloading and Overriding. (4)
2) Explain Primitive data type and wrapper class data types. (4)
3) Explain about Encapsulation, Abstraction. (4)
4) Explain inheritance with its types and give suitable example. (7)
5) Write difference between String class and StringBuffer class. (3)
6) Explain super keyword with example. (4)
7) How can we protect sub class to override the method of super class? Explain with example. (3)
8) What do you mean by run time polymorphism? Write a program to demonstrate run time polymorphism. (7)
9) Explain following keywords :- 1) Static 2) Super (4)
10) What is the difference between the String Buffer and String Builder classes? (4)
11) State the design hints for class and inheritance. 
12) Also discuss the working and meaning of the “static” modifier with suitable examples. (7)
13) Explain in detail how inheritance and polymorphism are supported in java with necessary examples. (7)
14) Write a java program to implement the multiple inheritance concepts for calculating area of circle and square. (7)
15) What is polymorphism? Explain dynamic binding with example. (7)
16) Write a program, which shows an example of function overloading. Also, differentiate between function overloading and overriding. (7)
17) Differentiate between final, finally and finalize. What will happen if we make class and method as final? (7)
18) Explain ArrayList class. (4)
19) Explain about Final class, Fields, Methods. (3)

UNIT :- 6 : EXCEPTION,I/O,ABSTRACT CLASSES AND INTERFACE

1) Define Interface and explain how it differs from the class. (4)
2) Describe abstract class called Shape, which has three subclasses say Triangle, Rectangle, and Circle. Define one method area() in the abstract class and override this area() in these three subclasses to calculate for specific object i.e. area() of Triangle subclass should calculate area of triangle likewise for Rectangle and Circle. (7)
3) What is an Exception? List out various built-in exceptions in JAVA and explain any one Exception class with suitable example. (7)
4) Write a program to rise and handle divide by zero exception. (7)
5) Write a method for computing xy doing repetitive multiplication. X and y are of type integer and are to be given as command line arguments. Raise and handle exception(s) for invalid values of x and y. (7)
6) What is Exception? Demonstrate how you can handle different types of exception separately. (4)
7) Explain Comparable and Cloneable interface. (7)
8) What is an Exception? Explain the exception hierarchy. Explain how to throw, catch and handle Exceptions. (7)
9) Explain the interface with an example program. (4)
10) Explain about Proxy class, Interface and Methods. (3)
11) What is an interface? Explain with example. (3)
12) Explain File class with its methods. (7)
13) What is the keyword “throw” used for? What is the keyword “throws” used for? (3)
14) What is an Exception? Explain try, catch and finally with example. (7)
15) Write a program that illustrates interface inheritance. Interface P is extended by P1 and P2. Interface P12 inherits from both P1 and P2. Each interface declares one constant and one method. class Q implements P12. Instantiate Q and invoke each of its methods. Each method displays one of the constants. (7)

UNIT :- 7 : JAVAFX BASICS AND EVENT DRIVEN PROGRAMMING AND ANIMATIONS 

1) Explain in brief: Color class and its methods. (3)
2) Enlist various layout panes and explain any two in detail. (7)
3) Write importance of JAVAFX compare to AWT and Swing. (4)
4) Explain mouse and key event handler in JavaFX. (3)
5) Explain following classes in JavaFX. 1) Color class 2) font class 3) Image and image view class (3)
6) Explain the concept of inner classes and explain the types of inner classes with an example program. (7)
7) Explain different layout panes used in JavaFX. (7)
8) Explain Inner class with example. (4)


Post a Comment

Previous Post Next Post

Contact Form