Code No: 07A4EC08

R07

Set No. 2

in

II B.Tech II Semester Examinations,December 2010 OBJECT ORIENTED PROGRAMMING Common to Electronics And Telematics, Electronics And Communication Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. (a) Explain multithreading by creating multiple threads (more than two).

[8+8]

ld .

(b) What is the use of Alive( ) and join( ) functions in multithreading?

2. (a) When do we declare a method or class as final?

(b) When do we declare a method or class as abstract?

(c) Describe different levels of access protections available in java.

[4+4+8]

uW

4. (a) Why do you use frames?

or

3. Create three interfaces, each with two methods. Inherit a new interface from the three, adding a new method. Create a class by implementing the new interface and also inheriting from a concrete class. Now write four methods, each of which takes one of the four interfaces as an argument. In main( ), create an object of your class and pass it to each of the methods. [16]

(b) Explain the syntax and functionality of different methods related to Frames. [4+12] 5. (a) List and explain the eight data types used in Java. Give examples. (b) Write a while loop to find the smallest n such that n2 is greater than 10,000. [8+8]

nt

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. [16]

Aj

7. What are JWindow and JLabel? What are their uses? Explain the steps involve in creating them with java skeleton code. [16]

8. Create a 3-level inheritance hierarchy. Each class in the hierarchy should have a finalize( ) method, and it should properly call the base-class version of finalize( ). Demonstrate that your hierarchy works properly. [16] ?????

1

Code No: 07A4EC08

R07

Set No. 4

in

II B.Tech II Semester Examinations,December 2010 OBJECT ORIENTED PROGRAMMING Common to Electronics And Telematics, Electronics And Communication Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????

ld .

1. What are various layout managers available in JFC? List each of them with their functionality. Explain them with suitable examples. [16]

2. What are the methods supported by KeyListener interface and MouseListener interface? Explain each of them with examples. [8+8] 3. (a) How are constants and variables important in developing programs? (c) What is scope of a variable?

or

(b) List the eight data types used in Java. Give examples.

(d) What is type casting? Why is it required in programming?

[4+4+4+4]

uW

4. Add a new method in the base class of Shapes.java that prints a message, but don’t override it in the derived classes. Explain what happens. Now override it in one of the derived classes but not the others, and Explain what happens. Finally, override it in all the derived classes, Explain in detail about each situation. [16]

5. (a) What is the role of stack in exception handling? (b) Give the classification of exceptions.

[8+8]

6. (a) Describe the difference between object declaration and object creation. Use a state-of-memory diagram to illustrate the difference.

Aj

nt

(b) Show a state-of-memory diagram after each of the these statements is executed. Person person1,person2; person1 = new Person( ); person2 = new Person( ); person2 = new Person( ); [8+8]

7. Write short notes on: (a) “whois” port

(b) URL connection class

(c) Datagram packet.

[5+5+6]

8. Prove that all the methods in an interface are automatically public. ?????

2

[16]

Code No: 07A4EC08

R07

Set No. 1

in

II B.Tech II Semester Examinations,December 2010 OBJECT ORIENTED PROGRAMMING Common to Electronics And Telematics, Electronics And Communication Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????

ld .

1. Create a base class with an abstract print( ) method that is overridden in a derived class. The overridden version of the method prints the value of an int variable defined in the derived class. At the point of definition of this variable, give it a nonzero value. In the base-class constructor, call this method. In main( ), create an object of the derived type, and then call its print( ) method. Explain the results. [16]

or

2. What is JFC? Explain the differences between JTextArea, JTextComponent, JTextField with examples. [16] 3. (a) Describe the genesis of java. Also write brief overview of java.

uW

(b) Write a program to convert the given temperature in Fahrenheit to Celsius using the following conversion formula C = (F - 32)/1.8 And display the values in a tabular form. [8+8] 4. What are the methods supported by the following interfaces. Explain each of them (a) ActionListener interface

(b) MouseMotionListener interface (c) TextListener interface.

[4+8+4]

nt

5. (a) What is class? How does it accomplish data hiding? (b) What is a default constructor? (c) How many constructors can a class have?

Aj

(d) What is the difference between invoking a copy constructor and using an assignment? [4+2+6+4]

6. (a) Define Deadlock. What are its disadvantages? (b) Explain deadlock with the help of an example java program.

[6+10]

7. Explain the uses of following with sample programs. (a) TimeZone class (b) Calender class (c) GregorionCalender class.

[5+5+6]

3

Code No: 07A4EC08

R07

Set No. 1

8. Show that an inner class has access to the private elements of its outer class. Determine whether the reverse is true. [16]

Aj

nt

uW

or

ld .

in

?????

4

Code No: 07A4EC08

R07

Set No. 3

1. Prove that the fields in an interface are implicitly static and final.

in

II B.Tech II Semester Examinations,December 2010 OBJECT ORIENTED PROGRAMMING Common to Electronics And Telematics, Electronics And Communication Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ?????

[16]

ld .

2. (a) What are the differences between single inheritance and multiple inheritance? Explain with suitable example.

(b) What is Multilevel inheritance ? Explain with suitable example.

[8+8]

3. Briefly explain various layout managers with suitable examples.

[16]

(a) ComponentEvent (b) ContainerEvent

uW

(c) FocusEvent.

or

4. Explain in detail about the following event classes:

[6+5+5]

5. Distiguish between the following terms:

(a) Objects and classes

(b) Data abstraction and data encapsulation (c) Inheritance and polymorphism

(d) Dynamic binding and message passing.

[4+4+4+4]

nt

6. (a) What is the difference between the vector Object and array Object? (b) What is the difference between a String Object and array of char values? (c) Write a program for addition of matrices (Test the validity of matrix sizes before performing multiplication) [4+4+8]

Aj

7. Explain in detail different Array related exceptions with the help of examples. [16] 8. (a) How does Random class generate pseudo random numbers? (b) Write a program to generate a set of random numbers. Find its sum and average. The program should also display * based on the random numbers generated. [8+8] ?????

5

R07 Set No. 2

[4+4+4+4] · 4. Add a new method in the base class of Shapes.java that prints a message, but don't .... (d) Dynamic binding and message passing. [4+4+4+4].

59KB Sizes 1 Downloads 176 Views

Recommend Documents

R07 Set No. 2
(a) What is Radix-64 format? Explain how both PGP and S/MIME perform the · Radix-64 conversion is performed. (b) Describe the five principal services that ...

R07 Set No. 2
Farm in Maharashtra, supplied with water from a dug well pumping for 4 h a day, are given below. Determine the required discharge. [16]. 7. AjntuWorld.in ...

R07 Set No. 2
... carry equal marks · ***** · 1. List eight major functions of an exhaust nozzle. .... plane. Show the internal layout for swallowed air to reach the engine. Explain.

R07 Set No. 2
Describe the Kinetic aspects of methanol synthesis process. [16] · 7. Describe the procedure for the Acetylene manufacture from the hydrocarbons by.

R07 Set No. 2
Enumerate difference between growth and non-growth associated product kinetics. [16] · 7. Write a brief note on biosensors, and describe how they are used for ...

R07 Set No. 2
(b) A turbine is to operate under a head of 30 m at 300 r.p.m. The discharge is ... 2. (b) An inward flow reaction turbine has an external diameter of 1 m and its.

R07 Set No. 2
(a) Discuss the response of high pass RC circuit for square wave input. (b) A 10Hz square wave is fed to an amplifier. Calculate and sketch the output wave ...

R07 Set No. 2
[16] · 8. With a neat sketch discuss the working procedure of neutron radiography, and also · give applications, advantages and limitations of this method. [16] · *****. 1 ... 5. (a) Give the limitations of x-ray diffraction method and ultrasonic met

R07 Set No. 2
Code No: 07A4EC15. R07. Set No. 2. II B.Tech II Semester Regular Examinations,May 2010 · MECHANICS OF FLUIDS · Metallurgy And Material Technology.

R07 Set No. 2
tetrachloride during indirect chlorinate of TiO2 at 1020 0C · [16] · TiO2(g) + 2Cl2(g) = TiCl4(g) + O2. 8. (a) How do the interstitial elements affect mechanical properties of commercially · pure titanium? (b) Why is 0.2 % Pd added to titanium? What

R07 Set No. 2
register machine.(Hint: Use FNS). [8+8] · 5. (a) Explain the strassen's matrix multiplication · (b) Derive the time complexity for binary search. [8+8] · 6. (a) Find an ...

R07 Set No. 2
Variance · (b) The mean and variance of a binomial distribution are 2 and 8 / 5. Find ... marks were normally distributed with mean 70 and standard deviation 15.

R07 Set No. 2
Computer Science And Engineering · Time: 3 hours · Max Marks: 80 · Answer any FIVE Questions · All Questions carry equal marks · ***** · 1. (a) Distinguish between a packet-filtering router and a stateful inspection firewall? (b) ”One way to secure

R07 Set No. 2
1. With the help of a neat diagram indicating the various geometric elements of a · traffic rotary ... sight distance. What is the need to have SSD and factors.

R07 Set No. 2
2. Explain the alpha, delta, theta and beta waves emerging from the brain. [16] · 3. (a) Explain in detail on the isolation amplifiers used in medical field and its need ... Discuss the generation and propagation of action potential in a cell. [16] ·

R07 Set No. 2
(a) Steam pressure in a reactor heating coil. (b) Flow rate of reactants into a polymerization tank. (c) Flow of effluent from a waste water treatment holding tank into a river. (d) Flow of cooling water to a distillation condenser. [16] · 6. (a) Def

R07 Set No. 2
(a) State Newton's law of viscosity and give any four examples of its applications. (b) An oil of viscosity 8 poise is used for lubrication between a shaft and sleeve.

R07 Set No. 2
2. III B.Tech I Semester Examinations,May 2011 · MICROPROCESSORS AND INTERFACING · Common to Information Technology, Instrumentation And Control.

R07 Set No. 2
(a) Off - peak load is zero ... load current and p.f 0.1. capacitors are supplied to make the line power factor ... (b) The annual peak load of substation is 3500kW.

R07 Set No. 2
Set No. 2. (a) Construct a systematic (15,2) code using the generator polynomial .... taken. The bit rate is 'rb' and the channel noise has a PSD Gn(f) given by.

R07 Set No. 2
Discuss the principle of measuring the hardness of Heat Affected Zone using Jominey · hardenability test? .... (b) What is post weld heat treatment? Describe the ...

R07 Set No. 2
(a) State Darcy's law. Discuss the assumptions and limitations. .... 1. (a) State Stoke's law and explain its limitations as applicable to the sedimentation · analysis.

R07 Set No. 2
Discuss clustering and solubility of liquid mixture. [16] · 3. Define: ... no adsorption at the pore wall and for the case with monolayer adsorption at the · pore wall.

R07 Set No. 2
Calculate the depth of indentation produced on a glass surface in ultrasonic ma- · chining by the throwing action of abrasive grain of 100 µm diameter.