Tech Unleashed

Wohoo!! We're on YouTube

Thursday, 24 November 2022

Object Oriented Programming Using Java : End Semester Examination ( 3rd Sem )

  Object Oriented Programming Using Java

End Semester Examination, 2021-22
B. Tech - Semester : 03
Time : 03 hrs. - Max. Marks : 100

Instructions:

  1. All questions are Compulsory
  2. Assume missing data suitably, if any.
Section : A ( 10 x 4 = 40 Marks )
All questions are compulsory
  1. Classify different data types used in java with the help of of examples.
  2. Explain how to set Temporary and Permanent Paths in java.
  3. Discuss the uses if this and super keywords with example.
  4. Distinguish between constructor overloading and method overloading with example.
  5. What is decision control statement in java ? Explain 3 types of control structures.
  6. What is object oriented programming ? Explain the need of object oriented programming.
  7. Create a program to display numbers divisible by 6 from 1 to n where n is 100 using class and object concept.
  8. Create a program in java to display account information ( Account number, customer name, balance ) of a person in a bank.
  9. Develop a program in java to input 5 numbers from keyboard and find their sun and average.
  10. Explain any four string functions used in Java.
Section : B ( 3 x 6 = 18 Marks )
All questions are compulsory
  1. Demonstrate a table showing all the access specifiers and their accessibility in the class, package, subclass and other package.
    OR
    What is multithreading ? Explain different ways to implement multithreading in java.
  2. Elaborate and explain different types of casting with proper example.
    OR
    What is constructor ? What are the rules of constructor ? Give an example.
  3. Why multiple inheritance is not supported by java ? What is the solution ? Explain with example.
    OR
    Create a java program that reads a positive integer and count the number of digits in the integer.
Section : C ( 3  x 10 = 30 Marks )
All questions are compulsory
  1. Create a java program to implement multi-level inheritance and explain all the keywords used in it.
    OR
    Distinguish between :
    i) final and finally.
    ii) String and StringBuffer.
  2. Distinguish between :
    i) Inputstream and Reader classes.
    ii) Outputstream and Writer classes.
    OR
    What is exception and exception handling ? How can we declare our own exception ?
  3. What is garbage collection ? Discuss various ways for garbage collection in java.
    OR
    Explain the life cycle of thread, and also write a program to find the factorial of range 1 - 10 using two threads.
Section : D ( 1  x 12 = 12 Marks )
All questions are compulsory
  1. Explain and write a program in java to read data from file. The file name is "one.txt".
    OR
    How packages are created and accessed in java. Briefly explain the naming convention in packages.
*******************


No comments:

Post a Comment