www.QuestionPaperDownload.com

Code.No: 07A3EC06

R07

SET-1

II B.TECH – I SEM EXAMINATIONS, NOVEMBER - 2010 OBJECT ORIENTED PROGRAMMING (COMMON TO ME, MCT, MEP, AME) Time: 3hours Max.Marks:80 Answer any FIVE questions All questions carry equal marks --1.

Define the following oops terms? Explain the relationship between these terms using an example from real world? a) class b) object c) responsibilities d) behavior e) method f) message g) agent h) encapsulation. [16]

2.a) b)

Write a java program to find the Greatest Common Divisor of three numbers? Explain different access specifiers and access modifiers available in java? Briefly discuss applicability of access modifiers to variables, methods and classes? [8+8]

3.a) b)

What is inheritance. Explain two benefits of inheritance, with an example of each. Write an abstract class called Shape consists of area and perimeter methods? Define subclasses named Circle, Triangle, and Rectangle to Shape class. Define a class Square to Rectangle. Write a test program that create an object of Circle, Triangle, Rectangle and Square and print the corresponding area and perimeters of the objects? [6+10]

4.a)

How many priority levels supported by java threads? How one can set minimum and maximum priorities to threads? If we are not assigning any priority to a thread, what is its priority? Write an exception subclass which throws an exception if the variable age passed as argument to a method and the value of age is less than 20? Demonstrate it by using a test java program? [4+12]

b)

5.a) b) c) 6.a)

b)

Write a note on Java’s delegation event model? Where we use paint, repaint, update methods of the AWT graphics class? Illustrate with a simple java program? What is an Adapter class? What is the main advantage of using them? [5+8+3] How one can compile a program that contains a package? How one can use the classes inside the package created previously in another class and compiles it successfully? Illustrate with a simple java program? What is the difference between a class and an interface? Write a complete java program to demonstrate a class implementing two interfaces? [8+8]

7.a) b)

Explain briefly the life cycle of an Applet? Write a swing application that will display text “Colors Application” and name of colors in two different list boxes – one for foreground another for background. Set the colors as per user clicks on particular color in list boxes? [6+10]

8.a) b) c)

What is a diagram? Explain how objects of the class Datagram Packet can be created? Explain about InetAddress class and its most widely used constructors and methods? With an illustrate program to generate 10 random numbers between 50 and 100? (Using java.util.Random class). [5+5+6]

www.QuestionPaperDownload.com

********

www.QuestionPaperDownload.com

Code.No: 07A3EC06

R07

SET-2

II B.TECH – I SEM EXAMINATIONS, NOVEMBER - 2010 OBJECT ORIENTED PROGRAMMING (COMMON TO ME, MCT, MEP, AME) Time: 3hours Max.Marks:80 Answer any FIVE questions All questions carry equal marks --1.a) What is inheritance. Explain two benefits of inheritance, with an example of each. b) Write an abstract class called Shape consists of area and perimeter methods? Define subclasses named Circle, Triangle, and Rectangle to Shape class. Define a class Square to Rectangle. Write a test program that create an object of Circle, Triangle, Rectangle and Square and print the corresponding area and perimeters of the objects? [6+10] 2.a)

b)

3.a) b) c) 4.a)

b)

How many priority levels supported by java threads? How one can set minimum and maximum priorities to threads? If we are not assigning any priority to a thread, what is its priority? Write an exception subclass which throws an exception if the variable age passed as argument to a method and the value of age is less than 20? Demonstrate it by using a test java program? [4+12] Write a note on Java’s delegation event model? Where we use paint, repaint, update methods of the AWT graphics class? Illustrate with a simple java program? What is an Adapter class? What is the main advantage of using them? [5+8+3] How one can compile a program that contains a package? How one can use the classes inside the package created previously in another class and compiles it successfully? Illustrate with a simple java program? What is the difference between a class and an interface? Write a complete java program to demonstrate a class implementing two interfaces? [8+8]

5.a) b)

Explain briefly the life cycle of an Applet? Write a swing application that will display text “Colors Application” and name of colors in two different list boxes – one for foreground another for background. Set the colors as per user clicks on particular color in list boxes? [6+10]

6.a) b) c)

What is a diagram? Explain how objects of the class Datagram Packet can be created? Explain about InetAddress class and its most widely used constructors and methods? With an illustrate program to generate 10 random numbers between 50 and 100? (Using java.util.Random class). [5+5+6]

7.

Define the following oops terms? Explain the relationship between these terms using an example from real world? a) class b) object c) responsibilities d) behavior e) method f) message g) agent h) encapsulation. [16]

8.a) b)

Write a java program to find the Greatest Common Divisor of three numbers? Explain different access specifiers and access modifiers available in java? Briefly discuss applicability of access modifiers to variables, methods and classes? [8+8]

www.QuestionPaperDownload.com

********

www.QuestionPaperDownload.com

Code.No: 07A3EC06

R07

SET-3

II B.TECH – I SEM EXAMINATIONS, NOVEMBER - 2010 OBJECT ORIENTED PROGRAMMING (COMMON TO ME, MCT, MEP, AME) Time: 3hours Max.Marks:80 Answer any FIVE questions All questions carry equal marks --1.a) Write a note on Java’s delegation event model? b) Where we use paint, repaint, update methods of the AWT graphics class? Illustrate with a simple java program? c) What is an Adapter class? What is the main advantage of using them? [5+8+3] 2.a)

b)

How one can compile a program that contains a package? How one can use the classes inside the package created previously in another class and compiles it successfully? Illustrate with a simple java program? What is the difference between a class and an interface? Write a complete java program to demonstrate a class implementing two interfaces? [8+8]

3.a) b)

Explain briefly the life cycle of an Applet? Write a swing application that will display text “Colors Application” and name of colors in two different list boxes – one for foreground another for background. Set the colors as per user clicks on particular color in list boxes? [6+10]

4.a) b) c)

What is a diagram? Explain how objects of the class Datagram Packet can be created? Explain about InetAddress class and its most widely used constructors and methods? With an illustrate program to generate 10 random numbers between 50 and 100? (Using java.util.Random class). [5+5+6]

5.

Define the following oops terms? Explain the relationship between these terms using an example from real world? a) class b) object c) responsibilities d) behavior e) method f) message g) agent h) encapsulation. [16]

6.a) b)

Write a java program to find the Greatest Common Divisor of three numbers? Explain different access specifiers and access modifiers available in java? Briefly discuss applicability of access modifiers to variables, methods and classes? [8+8]

7.a) b)

What is inheritance. Explain two benefits of inheritance, with an example of each. Write an abstract class called Shape consists of area and perimeter methods? Define subclasses named Circle, Triangle, and Rectangle to Shape class. Define a class Square to Rectangle. Write a test program that create an object of Circle, Triangle, Rectangle and Square and print the corresponding area and perimeters of the objects? [6+10] How many priority levels supported by java threads? How one can set minimum and maximum priorities to threads? If we are not assigning any priority to a thread, what is its priority? Write an exception subclass which throws an exception if the variable age passed as argument to a method and the value of age is less than 20? Demonstrate it by using a test java program? [4+12]

8.a)

b)

******** www.QuestionPaperDownload.com

www.QuestionPaperDownload.com

Code.No: 07A3EC06

R07

SET-4

II B.TECH – I SEM EXAMINATIONS, NOVEMBER - 2010 OBJECT ORIENTED PROGRAMMING (COMMON TO ME, MCT, MEP, AME) Time: 3hours Max.Marks:80 Answer any FIVE questions All questions carry equal marks --1.a) Explain briefly the life cycle of an Applet? b) Write a swing application that will display text “Colors Application” and name of colors in two different list boxes – one for foreground another for background. Set the colors as per user clicks on particular color in list boxes? [6+10] 2.a) b) c)

What is a diagram? Explain how objects of the class Datagram Packet can be created? Explain about InetAddress class and its most widely used constructors and methods? With an illustrate program to generate 10 random numbers between 50 and 100? (Using java.util.Random class). [5+5+6]

3.

Define the following oops terms? Explain the relationship between these terms using an example from real world? a) class b) object c) responsibilities d) behavior e) method f) message g) agent h) encapsulation. [16]

4.a) b)

Write a java program to find the Greatest Common Divisor of three numbers? Explain different access specifiers and access modifiers available in java? Briefly discuss applicability of access modifiers to variables, methods and classes? [8+8]

5.a) b)

What is inheritance. Explain two benefits of inheritance, with an example of each. Write an abstract class called Shape consists of area and perimeter methods? Define subclasses named Circle, Triangle, and Rectangle to Shape class. Define a class Square to Rectangle. Write a test program that create an object of Circle, Triangle, Rectangle and Square and print the corresponding area and perimeters of the objects? [6+10] How many priority levels supported by java threads? How one can set minimum and maximum priorities to threads? If we are not assigning any priority to a thread, what is its priority? Write an exception subclass which throws an exception if the variable age passed as argument to a method and the value of age is less than 20? Demonstrate it by using a test java program? [4+12]

6.a)

b)

7.a) b) c) 8.a)

b)

Write a note on Java’s delegation event model? Where we use paint, repaint, update methods of the AWT graphics class? Illustrate with a simple java program? What is an Adapter class? What is the main advantage of using them? [5+8+3] How one can compile a program that contains a package? How one can use the classes inside the package created previously in another class and compiles it successfully? Illustrate with a simple java program? What is the difference between a class and an interface? Write a complete java program to demonstrate a class implementing two interfaces? [8+8]

www.QuestionPaperDownload.com

********

B Tech 2-1 R07 OOPS Question Paper.pdf

discuss applicability of access modifiers to variables, methods and classes? [8+8]. 3.a) What is inheritance. Explain two benefits of inheritance, with an example ...

357KB Sizes 5 Downloads 256 Views

Recommend Documents

B Tech 2-1 R07 EEE Question Paper.pdf
QuestionPaperDownload.com www.QuestionPaperDownload.com. Page 3 of 8. B Tech 2-1 R07 EEE Question Paper.pdf. B Tech 2-1 R07 EEE Question Paper.

B Tech 2-1 R07 PDC Question Paper.pdf
www.QuestionPaperDownload.com www.QuestionPaperDownload.com. Page 3 of 12. B Tech 2-1 R07 PDC Question Paper.pdf. B Tech 2-1 R07 PDC Question ...

B Tech 1st Year R07 MI Question paper.pdf
Computer Science & Engineering, Chemical Engineering, Electronics &. Instrumentation Engineering, Bio-Medical Engineering, Information. Technology ...

B Tech 2-1 R07 UNIX2 Question Paper.pdf
Page 1 of 8. Code No: 07A3EC17 R07 Set No. 2. II B.Tech I Semester Examinations,November 2010. UNIX AND SHELL PROGRAMMING. Common to ...

B Tech 2-1 R07 ECA Question Paper.pdf
Vinom = 40V,Vimin = 35V, Vimax = 45V Vz = 20V, rz = 5 ohms ILmin= 0mA,ILmax. = 100mA Izmin = 10mA, Izmax = 400mA. Find Pzmax and load resistance. [8+8]. 3. (a) The basic Switching regulator is designed to maintain a 12V dc output when. the unregulate

B Tech 2-1 R07 MFCS Question Paper.pdf
Show that R is an equivalence relation. (b) Let A = {1, 2, 3, 4} and P = {{1, 2,3}, {4}} be a partition of A. Find the. equivalence relation determined by P. [10+6]. 3.

B Tech 2-1 R07 BIOCHEM Question Paper.pdf
There was a problem loading this page. B Tech 2-1 R07 BIOCHEM Question Paper.pdf. B Tech 2-1 R07 BIOCHEM Question Paper.pdf. Open. Extract. Open with.

B Tech 2-1 R07 STLD Question Paper.pdf
(a) Give a detailed comparison between combinational logic circuits and sequential. logic circuits. (b) Design a basic flip flop and explain its operation. [8+8] ?

B Tech 2-1 R07 THEMSCI Question Paper.pdf
QuestionPaperDownload.com. Page 3 of 8. B Tech 2-1 R07 THEMSCI Question Paper.pdf. B Tech 2-1 R07 THEMSCI Question Paper.pdf. Open. Extract.

B Tech 2-1 R07 MMS Question Paper.pdf
QuestionPaperDownload.com. Page 3 of 8. B Tech 2-1 R07 MMS Question Paper.pdf. B Tech 2-1 R07 MMS Question Paper.pdf. Open. Extract. Open with.

B Tech 2-1 R07 FMHM Question Paper.pdf
QuestionPaperDownload.com. Page 3 of 8. B Tech 2-1 R07 FMHM Question Paper.pdf. B Tech 2-1 R07 FMHM Question Paper.pdf. Open. Extract. Open with.

B Tech 2-1 R07 ELEENG Question Paper.pdf
(b) Discuss the Ward Leonard method of Speed control of DC motors. [8+8]. 6. Discuss different classifications of analog instruments and explain each of them.

B Tech 2-1 R07 ACBC Question Paper.pdf
(a) Write a short note on Synthetic rubber. (b) Compare natural rubber and vulcanized rubber? (c) Write a note on the engineering uses of Vulcanised rubber?

B Tech 1st Year R07 R7100101-ENG Question Paper.pdf ...
Page 1 of 1. Code :R7100101 R7. B.Tech I Year (R07) Supplementary Examinations, December 2010. ENGLISH. (Common to Civil Engineering, Mechanical ...

B Tech 2-1 R07 BIOEE Question Paper.pdf
Describe various studies conducted on nerve conduction including Galvani and. Volta's experimentation, Goldman's theory and Hodgekin and huxely's observa- ...

B Tech 2-1 R07 EMF Question Paper.pdf
QuestionPaperDownload.com www.QuestionPaperDownload.com. Whoops! There was a problem loading this page. B Tech 2-1 R07 EMF Question Paper.pdf.

B Tech 4-1 R07 DIMP Question Paper.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. B Tech 4-1 R07 ...

B Tech 2-1 R07 FLUIDMECH Question Paper.pdf
What will be the discharge when a cast iron. pipe of roughness k = 0.3 mm is used ? what will be the percentage increase in. the discharge if the cast iron pipe is ...

B Tech 2-1 R07 MOF Question Paper.pdf
QuestionPaperDownload.com www.QuestionPaperDownload.com. Whoops! There was a problem loading this page. B Tech 2-1 R07 MOF Question Paper.pdf.

B Tech 2-1 R07 STLD Question Paper.pdf
(c) Give the truth table for the Boolean expression (X0+Y)0. [4+8+4]. 6. Using Q-M method to determine the prime implicants and obtain the possible. minimal ...

B Tech 2-1 R07 PTECH Question Paper.pdf
QuestionPaperDownload.com. Page 3 of 4. B Tech 2-1 R07 PTECH Question Paper.pdf. B Tech 2-1 R07 PTECH Question Paper.pdf. Open. Extract. Open with.

B Tech 2-1 R07 MT Question Paper.pdf
(b) What are the advantages and disadvantages of Ellingham diagrams? [8+8]. 6. (a) Explain what do you mean by thermodynamic equillibrium. (b) Discuss the ...

B Tech 4-1 R07 HVDCTRANSM-EEE Question paper.pdf ...
QuestionPaperDownload.com. Page 3 of 5. B Tech 4-1 R07 HVDCTRANSM-EEE Question paper.pdf. B Tech 4-1 R07 HVDCTRANSM-EEE Question paper.pdf.

B Tech 2-1 R07 DLD Question Paper.pdf
Page 1. Whoops! There was a problem loading more pages. Retrying... B Tech 2-1 R07 DLD Question Paper.pdf. B Tech 2-1 R07 DLD Question Paper.pdf.