07A80206 Object Oriented Programming B.Tech Question Paper : scce.ac.in
Name of the College : SREE CHAITANYA COLLEGE OF ENGINEERING
University : JNTUH
Department : ELECTRICAL AND ELECTRONICS ENGINEERING
Subject Code/Name : 07A80206/OBJECT ORIENTED PROGRAMMING
Year/Sem : IV/II
Website : scce.ac.in
Document Type : Model Question Paper
Download Model/Sample Question Paper : https://www.pdfquestion.in/uploads/scce.ac.in/4927-07A80206-OBJECTORIENTEDPROGRAMMING.pdf
SCCE Object Oriented Programming Question Paper
Code No: 07A80206 R07 Set No. 2
IV B.Tech II Semester Examinations,
Electrical And Electronics Engineering
Related : Sree Chaitanya College Of Engineering 07A80305 Computer Organization & Architecture B.Tech Question Paper : www.pdfquestion.in/4919.html
Time: 3 hours
Max Marks: 80
April/May 2012
Answer any FIVE Questions :
All Questions carry equal marks :
1. What is Inheritance? Discuss the dierences in inheritances in C++ and java. [16]
2. (a) Describe the genesis of java. Also write brief overview of java
(b) List and explain the control statements used in java. Also describe the syntax of the control statements with suitable illustration. [8+8]
3. (a) Give the class hierarchy of event classes in Java.
(b) Explain in detail about ActionEvent and AdjustmentEvent classes. [4+12]
4. (a) What is the significance of main thread in multithreading. Explain with an example how you can control main thread.
(b) What is the role of Sleep class in multithreading. Explain. [10+6]
5. Briefly explain the components of AWT. [16]
6. Define the terms client and server. Use socket programming to design a client/server application that takes the filename as input, checks whether the file exists and displays its contents if exists. Display appropriate message for each case. [4+12]
7. Write a program to create an interface containing a static inner class. Implement this interface and create an instance of the inner class. [16]
Code No: 07A80206
R07 Set No. 4
1. (a) When do we declare a method or class as final?
(b) When do we declare a method or class as abstract?
(c) Describe dierent levels of access protections available in java. [4+4+8]
2. Explain in detail about the following event classes:
(a) KeyEvent
(b) ItemEvent. [10+6]
3. (a) List at least ten major dierences between C and Java
(b) Compare in terms of their functions, the following pairs of statements:
i. while and do…..while
ii. while and for
(c) What is an empty statement? Explain its usefulness. [4+4+4+4]
4. Create an inheritance hierarchy of Rodent: Mouse, Gerbil, Hamster, etc. In the baseclass, provide methods that are common to all Rodents, and override these in the derived classes to perform dierent behaviors depending on the specific type of Rodent.Create an array of Rodent, fill it with dierent specific types of Rodents, and call your base-class methods.Explain what happens. [16]
5. Explain how multithreading is supported in java using the thread class and the Runnable interface. [16]
6. Explain with examples. What happens when the following are clicked or released?
(a) JMenuItem
(b) JCheckBoxMenuItem
(c) JRadioButtonMenuItem. [5+5+6]
7. Write a program to create an interface U with three methods. Create a class A with a method that produces a reference to a U by building an anonymous inner class. Create a second class B that contains an array of U.
B should have one method that accepts and stores a reference to a U in the array, a second method that sets a reference in the array (specified by the method argument) to null and a third method that moves through the array and calls the methods in U.
In main( ), create a group of A objects and a single B. Fill the B with U references produced by the A objects. Use the B to call back into all the A objects. Remove some of the U references from the B. [16]
8. Explain connection less client/server interaction with datagrams in detail. Give suitable example. [16]
April/May 2013
IV B.Tech II Semester Examinations,April/May 2013 :
Object Oriented Programming
1. (a) Define package? Explain about the access protection in packages.
(b) Define an interface? Explain about the type of the variables defined in inter- faces with examples. [8+8]
2. (a) What is an array? Why arrays are easier to use compared to a bunch of related variables?
(b) Write a program for transposition of a matrix using arraycopy command. [6+10]
3. (a) Explain how threads with dierent priorities execute in environment which supports priorities and which doesn’t support priorities.
(b) what are the functions available in java related to priority.
Thanks to you for this model papers its very important and i also study this care fully.