Exam Details
Subject | object oriented programming through java | |
Paper | ||
Exam / Course | b.tech | |
Department | ||
Organization | Institute Of Aeronautical Engineering | |
Position | ||
Exam Date | January, 2018 | |
City, State | telangana, hyderabad |
Question Paper
Hall Ticket No Question Paper Code: ACS003
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
B.Tech III Semester End Examinations (Supplementary) January, 2018
Regulation: IARE R16
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Computer Science and Engineering))
Time: 3 Hours Max Marks: 70
Answer ONE Question from each Unit
All Questions Carry Equal Marks
All parts of the question must be answered in one place only
UNIT I
1. Explain data abstraction with a real time example.
Write a Java program to check whether two strings are equal or not without using built-in
functions.
2. Write a Java program for Fibonacci series and tower of hanoi using recursion.
Explain features of Java in brief.
UNIT II
3. Explain inheritance and its types? How runtime polymorphism can be achieved using inheritance,
explain with a suitable program?
Explain abstract class with an example and compare with interface.
4. Why we have to set PATH and CLASSPATH environment variables in Java? Explain the steps
for setting them.
Discuss any Java default package hierarchy and explain the various access privileges that we have
to follow while working with Java packages.
UNIT III
5. Write a program to illustrate sub class exception precedence over base class.
Write a program to illustrate creation of threads using runnable class.(start method start each
of the newly created thread. Inside the run method there is sleep() for suspend the thread for
500 milliseconds).
6. Write a program to create a class named shape. In this class we have three sub classes circle,
triangle and square each class has two member function named draw and erase(). Create these
using polymorphism concepts.
Write a program for example of try and catch block. In this check whether the given array size
is negative or not.
Page 1 of 2
UNIT IV
7. While taking the file content into consideration, what are the various file streams? Write the
code segments for opening a file in both the streams.
Write a Java program that reads a file and counts number of alphabets, numerals, words, special
characters and lines.
8. Write a program that counts the number of lines, words and characters in the given filename
through command line argument.
Write a Java program to create a STUD table( USN, STNAME, M1, M2, M3,M4,M5) enter the
data through program for the above table query:
Compute student grade and display all the details.
(grade ="fail" If one of the subject marks less than 40)
(grade ="pass" If average marks between 40 to 50)
(grade ="second class" If average marks between 50 to 60)
(grade ="first class" If average marks between 65 to 85)
(grade ="distincion" If marks 85)
UNIT V
9. What are the advantages of swing over AWT
Using grid layout class, write a program to display the following.
Figure 1
10. Write a swing application which uses JTabbed Pane and JPanel.
With an example, demonstrate passing of parameters to applet.
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
B.Tech III Semester End Examinations (Supplementary) January, 2018
Regulation: IARE R16
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Computer Science and Engineering))
Time: 3 Hours Max Marks: 70
Answer ONE Question from each Unit
All Questions Carry Equal Marks
All parts of the question must be answered in one place only
UNIT I
1. Explain data abstraction with a real time example.
Write a Java program to check whether two strings are equal or not without using built-in
functions.
2. Write a Java program for Fibonacci series and tower of hanoi using recursion.
Explain features of Java in brief.
UNIT II
3. Explain inheritance and its types? How runtime polymorphism can be achieved using inheritance,
explain with a suitable program?
Explain abstract class with an example and compare with interface.
4. Why we have to set PATH and CLASSPATH environment variables in Java? Explain the steps
for setting them.
Discuss any Java default package hierarchy and explain the various access privileges that we have
to follow while working with Java packages.
UNIT III
5. Write a program to illustrate sub class exception precedence over base class.
Write a program to illustrate creation of threads using runnable class.(start method start each
of the newly created thread. Inside the run method there is sleep() for suspend the thread for
500 milliseconds).
6. Write a program to create a class named shape. In this class we have three sub classes circle,
triangle and square each class has two member function named draw and erase(). Create these
using polymorphism concepts.
Write a program for example of try and catch block. In this check whether the given array size
is negative or not.
Page 1 of 2
UNIT IV
7. While taking the file content into consideration, what are the various file streams? Write the
code segments for opening a file in both the streams.
Write a Java program that reads a file and counts number of alphabets, numerals, words, special
characters and lines.
8. Write a program that counts the number of lines, words and characters in the given filename
through command line argument.
Write a Java program to create a STUD table( USN, STNAME, M1, M2, M3,M4,M5) enter the
data through program for the above table query:
Compute student grade and display all the details.
(grade ="fail" If one of the subject marks less than 40)
(grade ="pass" If average marks between 40 to 50)
(grade ="second class" If average marks between 50 to 60)
(grade ="first class" If average marks between 65 to 85)
(grade ="distincion" If marks 85)
UNIT V
9. What are the advantages of swing over AWT
Using grid layout class, write a program to display the following.
Figure 1
10. Write a swing application which uses JTabbed Pane and JPanel.
With an example, demonstrate passing of parameters to applet.
Other Question Papers
Subjects
- ac machines
- advanced databases
- aircraft materials and production
- aircraft performance
- aircraft propulsion
- aircraft systems and controls
- analog communications
- analysis of aircraft production
- antennas and propagation
- applied physics
- applied thermodynamics
- basic electrical and electronics engineering
- basic electrical engineering
- building materials construction and planning
- business economics and financial analysis
- compiler design
- complex analysis and probability distribution
- computational mathematics and integral calculus
- computer networks
- computer organization
- computer organization and architecture
- computer programming
- concrete technology
- control systems
- data structures
- database management systems
- dc machines and transformers
- design and analysis of algorithms
- design of machine members
- digital and pulse circuits
- digital communications
- digital ic applications using vhdl
- digital logic design
- digital system design
- disaster management
- disaster management and mitigation
- discrete mathematical structures
- dynamics of machinery
- electrical circuits
- electrical measurements and instrumentation
- electrical technology
- electromagnetic field theory
- electromagnetic theory and transmission lines
- electronic circuit analysis
- electronic devices and circuits
- elements of mechanical engineering
- engineering chemistry
- engineering drawing
- engineering geology
- engineering mechanics
- engineering physics
- english
- english for communication
- environmental studies
- finite element methods
- fluid mechanics
- fluid mechanics and hydraulics
- fundamental of electrical and electronics engineering
- fundamental of electrical engineering
- gender sensitivity
- geotechnical engineering
- heat transfer
- high speed aerodynamics
- hydraulics and hydraulic machinery
- image processing
- industrial automation and control
- instrumentation and control systems
- integrated circuits applications
- introduction to aerospace engineering
- kinematics of machinery
- linear algebra and calculus
- linear algebra and ordinary differential equations
- low speed aerodynamics
- machine tools and metrology
- mathematical transform techniques
- mathematical transforms techniques
- mechanics of fluids and hydraulic machines
- mechanics of solids
- mechanism and machine design
- metallurgy and material science
- microprocessor and interfacing
- modern physics
- network analysis
- object oriented analysis and design
- object oriented programming through java
- operating systems
- optimization techniques
- power electronics
- power generation systems
- probability and statistics
- probability theory and stochastic processes
- production technology
- programming for problem solving
- pulse and digital circuits
- reinforced concrete structures design and drawing
- software engineering
- strength of materials - i
- strength of materials - ii
- structural analysis
- surveying
- theory of computation
- theory of structures
- thermal engineering
- thermo dynamics
- thermodynamics
- tool design
- transmission and distribution systems
- unconventional machining processes
- waves and optics
- web technologies