• Tidak ada hasil yang ditemukan

INSTITUTE OF AERONAUTICAL ENGINEERING - IARE

N/A
N/A
Protected

Academic year: 2024

Membagikan "INSTITUTE OF AERONAUTICAL ENGINEERING - IARE"

Copied!
2
0
0

Teks penuh

(1)

Hall Ticket No Question Paper Code: ACS003

INSTITUTE OF AERONAUTICAL ENGINEERING

(Autonomous)

B.Tech III Semester End Examinations (Supplementary) - January, 2019 Regulation: IARE – R16

OBJECT ORIENTED PROGRAMMING THROUGH JAVA

Time: 3 Hours (CSE) 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. (a) Discuss the working and meaning of the “static” modifier with example and explain static variable

and static methods with an example program. [7M]

(b) Write a Java program that prints all real solutions to the quadratic equationax2+bx+c=0. Read

in a, b, c and use the quadratic formula. [7M]

2. (a) Describe the various operators used in Java with their classifications. Explain left shift and right

shift operators with suitable examples. [7M]

(b) Write a Java program to implement method overloading and constructor overloading. [7M]

UNIT – II

3. (a) Java supports various ways to control access to members of a class. Explain. [7M]

(b) Write a Java program to create an abstract class named Shape that contains two integers and an empty method named print Area (). Provide three classes named Rectangle, Triangle and Circle such that each one of the classes extends the class Shape. Each one of the classes contains only the method print Area () that prints the area of the given shape.

[7M]

4. (a) ”Interface variables are static and final by default in Java” - Support this statement with proper

explanation. [7M]

(b) Write a program that creates a user interface to perform integer division. The user enters two numbers in the text fields, Num1 and Num2. The division of Num1 and Num2 is displayed in the Result field when the Divide button is clicked. If Num1 and Num2 were not integers, the program would throw a Number Format Exception. If Num2 were zero, the program would throw an Arithmetic Exception Display the exception in a message dialog box. [7M]

UNIT – III

5. (a) What is an Exception? Explain the exception hierarchy and how to throw, catch and handle

Exceptions with example. [7M]

(b) Write a Java program for sorting a given list of names in ascending order. [7M]

Page 1 of 2

(2)

6. (a) Define and differentiate multiprocessing and multithreading. [7M]

(b) Write a Java program that illustrates creating and using your own exceptions. [7M]

UNIT – IV

7. (a) List various JDBC drivers available with brief explanation. [7M]

(b) Explain steps involved in connecting to database with Java application. [7M]

8. (a) Write a Java program to read a text file then count and display no. of lines, words in it. [7M]

(b) Write a Java program to check the given file is a directory and find the name of the file by using

file class. [7M]

UNIT – V

9. (a) Design an applet that display human face. What is the difference between applets and

applications. [7M]

(b) Develop an applet that receives an integer in one text field and computes its factorial value and returns it in another text field, when the button named compute is clicked. [7M]

10. (a) Compare and contrast Swing and Abstract Window Toolkit(AWT) in Java. [7M]

(b) Write a Java program with swing components button, text field, check box and list box. [7M]

− ◦ ◦ ◦ ◦ −

Page 2 of 2

Referensi

Dokumen terkait

[7M] UNIT-V 9.a Explain different components of aircraft wing with help of diagram and explainabout the types load bared by each component.. [7M] .b What do you understand by the

[7M] b What is the reservoir pressure for the tunnel if The nozzle of a supersonic wind tunnel has an exit to throat area ratio of 6.79 when the tunnel is running, a pitot tube mounted

Write a java program that reads a file name from the user, and then displays information about whether the file exists, whether the file is readable, whether the file is writable, the

[7M] b A 2000V, three phase, star connected synchronous motor an effective resistance and synchronous reactance of 0.2 ohms and 2.2 ohms per phase respectively.. The input is 800KW at

[7M] b Prepare a purchases return journal book from the following transactions for January 2014:[7M] Table 3 Date Details Amount Rs.. a Bike Ltd purchased 10 bikes during January and

[7M] b A random process is defined as Xt=A coswct+ θ where θ is a uniform random variable over0,2π .Verify the process is ergodic in the mean sense and auto correlation sense [7M] 8..

a Explain the architecture of 8051 with a neat sketch and with help of an example discuss about physical address generation in 8051.. [7M] b How many counters and timers are used in

a Explain the seven types of crystal system with neat diagrams [7M] b Derive an expression for the interplanar spacing of a crystal in terms of Miller indices.. a Show that diamond