Code.No: 07A31801

www.questionpaperdownload.com SET-1

R07

II B.TECH – I SEM EXAMINATIONS, NOVEMBER - 2010 OBJECT ORIENTED PROGRAMMING (METALLURGY AND MATERIAL TECHNOLOGY) Time: 3hours Max.Marks:80 Answer any FIVE questions All questions carry equal marks --1.a) What is byte code? Explain how platform independence is achieved in Java? b) List all primitive data types, sizes and the valid values they accept? c) What is wrong with the following program? Specify two different ways to get the correct result? [5+5+6] public class Example { public static void main(String[] args) { byte a, b, c; a = 25; b = 2; c = a * b; System.out.println(c); } } 2.a) b) c)

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

Write the difference between instance and class variables with a simple example program. What do you mean by default constructor? Can we instantiate a class without any constructor? Explain? What are the requirements to overload two methods? Explain with a java program to illustrate overloaded constructor and copy constructor? [5+4+7] Difference between Static Binding and Dynamic Binding with example? Explain at least two different uses of “super” in the java programs with an illustrative java example? What is the significance of this keyword? How one can use this in static methods? [4+8+4] What is an exception? Difference between checked and runtime exceptions? Illustrate with a single program the two different ways of creating threads? [4+12]

5.

List different events, the event sources, the event listeners along with the name of the method in which the code to handle the event should be written in AWT? [16]

6.a)

What is a package? How a package can be created? How to access the individual and all the classes in a package? Illustrate with a java program? What is an interface? Can we declare variable inside an interface? Can one interface extend another interface? [10+6]

b)

7.a) b)

8.a) b) c)

What is the difference between an application and an applet? Write a Java program that allows the user to accept 2 end points (using mouse) and draws a rectangle between 2 points. (Use AWT ‘frame’ class and mouse listeners). [4+12] What is a URL connection? Write a Java program to explain the processes of reading from and writing to a URL? Explain two situations when String Buffer can be used for string handling? How one can split the string “Jawaharlal Nehru Technological University, Hyderabad” to six words of “Jawaharlal”, “Nehru”, “Technological”, “University”, “,” and “Hyderabad”? Write the complete program? [5+4+7] ********

www.questionpaperdownload.com

Code.No: 07A31801

1.a) b) c) 2.a) b)

www.questionpaperdownload.com SET-2 www.vidyavision.com

R07

II B.TECH – I SEM EXAMINATIONS, NOVEMBER - 2010 OBJECT ORIENTED PROGRAMMING (METALLURGY AND MATERIAL TECHNOLOGY) Time: 3hours Max.Marks:80 Answer any FIVE questions All questions carry equal marks --Difference between Static Binding and Dynamic Binding with example? Explain at least two different uses of “super” in the java programs with an illustrative java example? What is the significance of this keyword? How one can use this in static methods? [4+8+4] What is an exception? Difference between checked and runtime exceptions? Illustrate with a single program the two different ways of creating threads? [4+12]

3.

List different events, the event sources, the event listeners along with the name of the method in which the code to handle the event should be written in AWT? [16]

4.a)

What is a package? How a package can be created? How to access the individual and all the classes in a package? Illustrate with a java program? What is an interface? Can we declare variable inside an interface? Can one interface extend another interface? [10+6]

b)

5.a) b)

6.a) b) c)

What is the difference between an application and an applet? Write a Java program that allows the user to accept 2 end points (using mouse) and draws a rectangle between 2 points. (Use AWT ‘frame’ class and mouse listeners). [4+12] What is a URL connection? Write a Java program to explain the processes of reading from and writing to a URL? Explain two situations when String Buffer can be used for string handling? How one can split the string “Jawaharlal Nehru Technological University, Hyderabad” to six words of “Jawaharlal”, “Nehru”, “Technological”, “University”, “,” and “Hyderabad”? Write the complete program? [5+4+7]

7.a) b) c)

What is byte code? Explain how platform independence is achieved in Java? List all primitive data types, sizes and the valid values they accept? What is wrong with the following program? Specify two different ways to get the correct result? [5+5+6] public class Example { public static void main(String[] args) { byte a, b, c; a = 25; b = 2; c = a * b; System.out.println(c); } }

8.a)

Write the difference between instance and class variables with a simple example program. What do you mean by default constructor? Can we instantiate a class without any constructor? Explain? What are the requirements to overload two methods? Explain with a java program to illustrate overloaded constructor and copy constructor? [5+4+7]

b) c)

********

www.questionpaperdownload.com

Code.No: 07A31801

www.questionpaperdownload.com SET-3

R07

II B.TECH – I SEM EXAMINATIONS, NOVEMBER - 2010 OBJECT ORIENTED PROGRAMMING (METALLURGY AND MATERIAL TECHNOLOGY) Time: 3hours Max.Marks:80 Answer any FIVE questions All questions carry equal marks --List different events, the event sources, the event listeners along with the name of the method in which the code to handle the event should be written in AWT? [16]

1.

2.a) b)

3.a) b)

4.a) b) c)

What is a package? How a package can be created? How to access the individual and all the classes in a package? Illustrate with a java program? What is an interface? Can we declare variable inside an interface? Can one interface extend another interface? [10+6] What is the difference between an application and an applet? Write a Java program that allows the user to accept 2 end points (using mouse) and draws a rectangle between 2 points. (Use AWT ‘frame’ class and mouse listeners). [4+12] What is a URL connection? Write a Java program to explain the processes of reading from and writing to a URL? Explain two situations when String Buffer can be used for string handling? How one can split the string “Jawaharlal Nehru Technological University, Hyderabad” to six words of “Jawaharlal”, “Nehru”, “Technological”, “University”, “,” and “Hyderabad”? Write the complete program? [5+4+7]

5.a) b) c)

What is byte code? Explain how platform independence is achieved in Java? List all primitive data types, sizes and the valid values they accept? What is wrong with the following program? Specify two different ways to get the correct result? [5+5+6] public class Example { public static void main(String[] args) { byte a, b, c; a = 25; b = 2; c = a * b; System.out.println(c); } }

6.a)

Write the difference between instance and class variables with a simple example program. What do you mean by default constructor? Can we instantiate a class without any constructor? Explain? What are the requirements to overload two methods? Explain with a java program to illustrate overloaded constructor and copy constructor? [5+4+7]

b) c)

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

Difference between Static Binding and Dynamic Binding with example? Explain at least two different uses of “super” in the java programs with an illustrative java example? What is the significance of this keyword? How one can use this in static methods? [4+8+4] What is an exception? Difference between checked and runtime exceptions? Illustrate with a single program the two different ways of creating threads? [4+12] ********

www.questionpaperdownload.com

www.questionpaperdownload.com Code.No: 07A31801

1.a) b)

2.a) b) c)

R07

SET-4

II B.TECH – I SEM EXAMINATIONS, NOVEMBER - 2010 OBJECT ORIENTED PROGRAMMING (METALLURGY AND MATERIAL TECHNOLOGY) Time: 3hours Max.Marks:80 Answer any FIVE questions All questions carry equal marks --What is the difference between an application and an applet? Write a Java program that allows the user to accept 2 end points (using mouse) and draws a rectangle between 2 points. (Use AWT ‘frame’ class and mouse listeners). [4+12] What is a URL connection? Write a Java program to explain the processes of reading from and writing to a URL? Explain two situations when String Buffer can be used for string handling? How one can split the string “Jawaharlal Nehru Technological University, Hyderabad” to six words of “Jawaharlal”, “Nehru”, “Technological”, “University”, “,” and “Hyderabad”? Write the complete program? [5+4+7]

3.a) b) c)

What is byte code? Explain how platform independence is achieved in Java? List all primitive data types, sizes and the valid values they accept? What is wrong with the following program? Specify two different ways to get the correct result? [5+5+6] public class Example { public static void main(String[] args) { byte a, b, c; a = 25; b = 2; c = a * b; System.out.println(c); } }

4.a)

Write the difference between instance and class variables with a simple example program. What do you mean by default constructor? Can we instantiate a class without any constructor? Explain? What are the requirements to overload two methods? Explain with a java program to illustrate overloaded constructor and copy constructor? [5+4+7]

b) c)

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

Difference between Static Binding and Dynamic Binding with example? Explain at least two different uses of “super” in the java programs with an illustrative java example? What is the significance of this keyword? How one can use this in static methods? [4+8+4] What is an exception? Difference between checked and runtime exceptions? Illustrate with a single program the two different ways of creating threads? [4+12]

7.

List different events, the event sources, the event listeners along with the name of the method in which the code to handle the event should be written in AWT? [16]

8.a)

What is a package? How a package can be created? How to access the individual and all the classes in a package? Illustrate with a java program? What is an interface? Can we declare variable inside an interface? Can one interface extend another interface? [10+6] ********

b)

www.questionpaperdownload.com

B tech 2-1 R05 OOPS1 Question paper.pdf

illustrate overloaded constructor and copy constructor? [5+4+7]. 3.a) Difference between Static Binding and Dynamic Binding with example? b) Explain at least ...

359KB Sizes 0 Downloads 218 Views

Recommend Documents

B tech 2-1 R05 CELLBIO Question paper.pdf
Explain how in a population of telomere deficient cells, the loss of p53 facilitates. the development of cancer? [16] ? ? ? ? ? www.questionpaperdownload.com ...

B Tech 4-2 R05 ROBOTICS Question Paper.pdf
Page 2 of 8. Code No: R05420306 R05 Set No. 2. Figure 6. 7. (a) Explain the application of industrial Robots in stamping - press operation. (b) What are the ...

B tech 2-1 R05 PTECH Question paper.pdf
Sign in. Loading… Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying.

B tech 2-1 R05 EMWTL Question paper.pdf
iii. the energy stored. 7. Explain about the parameters of the open wire line at high frequencies? [16]. 8. (a) List out the applications of transmission lines.

B Tech 4-2 R05 UEE Question Paper.pdf
QuestionPaperDownload.com www.QuestionPaperDownload.com. Whoops! There was a problem loading this page. B Tech 4-2 R05 UEE Question Paper.pdf.

B Tech 4-2 R05 WATERMANAG Question Paper.pdf
Explain universal soil loss equation (USLE) and estimation of various factors in. USLE. [16]. 5. Explain how remote sensing and GIS is useful for preparation of ...

B Tech 4-2 R05 SUPERALLOYS Question Paper.pdf
Whoops! There was a problem loading this page. B Tech 4-2 R05 SUPERALLOYS Question Paper.pdf. B Tech 4-2 R05 SUPERALLOYS Question Paper.pdf.

B Tech 4-2 R05 TMTC Question Paper.pdf
(a) Explain synchronus an asynchronus time division multiplexing of PCM sig- nals? (b) “Pulse modulation systems are not digital, where as, pulse-code ...

B tech 2-1 R05 SAS Question paper.pdf
Use partial fraction method to express X(z) as a sum of terms. iii. Determine x(n) [4+12]. 2. (a) Find the Fourier series of the wave shown in figure 1a. Figure 1a.

B tech 2-1 R05 ADSA Question paper.pdf
constructors for the hash table class. (b) Write a C++ program to implement a search operation in a hash table. [6+10]. 7. Write and explain a non recursive ...

B Tech 1st Year R05 ENGINEERING CHEMISTRY Question paper.pdf ...
Whoops! There was a problem loading more pages. Retrying... B Tech 1st Year R05 ENGINEERING CHEMISTRY Question paper.pdf. B Tech 1st Year R05 ...

B Tech 4-2 R05 NNFLD Question Paper.pdf
State and prove the perceptron convergence theorem. [16]. 4. State and explain the generalized delta learning rule applied in back propagation. algorithm. [16].

B Tech 4-2 R05 SE Question Paper.pdf
1.a) Discuss various customer myths and realities in software development. b) What do you mean by software affliction? [8+8]. 2.a) Explain how would you select ...

B tech 2-1 R05 AAP Question paper.pdf
Explain different phases of action potential of cardiac muscle fibre of heart? [16]. 4. Explain pulmonary ventilation in detail and sketch the neat diagram of lungs ...

B Tech 3-1 R05 CN Question Paper.pdf
(b) What is cipher feedback mode? Why it is used? [10+6] ? ? ? ? ? Page 1 of 1. B Tech 3-1 R05 CN Question Paper.pdf. B Tech 3-1 R05 CN Question Paper.pdf.

B Tech 3-2 R05 INSTRU-EEE Question paper.pdf
plates is 2cm and the accelerating voltage is 1000volts. [8+8] ? ? ? ? ? 1. www.QuestionPaperDownload.com www.QuestionPaperDownload.com. Page 1 of 4 ...

B Tech 3-1 R05 FLAT-CSE Question paper.pdf
Construct a FA for the following Right Linear Grammar (R.L.G) and write the. conversion procedure? S A → 0. A A →10 / ∈. [16]. 5.a) Describe the language in ...

B Tech 3-2 R05 NN-CSE Question paper.pdf
Page 1 of 4. Code No: R05320505 R05 Set No. 2. III B.Tech II Semester Examinations,December 2010. NEURAL NETWORKS. Computer Science And ...

B Tech 3-2 R05 DSP-EEE Question paper.pdf
where X(k) is the 10-point DFT of x(n). (c) Find the 10-point sequence y(n) that has a DFT Y(K)=X(K)W(K) where. X(K)is the 10-point DFT of the sequence.

B Tech 2-2 R05 POC-IT Question paper.pdf
Page 1 of 4. Code No: R05220503 R05 Set No. 2. II B.Tech II Semester Examinations,December 2010. PRINCIPLES OF COMMUNICATIONS. Common to BME ...

B Tech 3-1 R05 MEFA-CSE Question paper.pdf
QuestionPaperDownload.com www.QuestionPaperDownload.com. Page 3 of 4. B Tech 3-1 R05 MEFA-CSE Question paper.pdf. B Tech 3-1 R05 MEFA-CSE ...

B Tech 4-1 R05 WT-CSE Question paper.pdf
(a) Explain how a server generates dynamic content. (b) Give a note on request time errors. [8+8]. 7. Java server pages simplify the delivery of dynamic web ...

B Tech 3-2 R05 ECOM-IT Question paper.pdf
What are the models available in supply chain management? Explain any one of. the model with a suitable example. [16]. 7. Define data mining and describe its ...

B Tech 2-2 R05 ELETCH-ECE Question paper.pdf
QuestionPaperDownload.com. Page 3 of 8. B Tech 2-2 R05 ELETCH-ECE Question paper.pdf. B Tech 2-2 R05 ELETCH-ECE Question paper.pdf. Open. Extract.