VALLIAMMAI ENGINEERING COLLEGE

Similar documents
Get Unique study materials from

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

VALLIAMMAI ENGINEERING COLLEGE

END TERM EXAMINATION

Preface to the Second Edition Preface to the First Edition Brief Contents Introduction to C++ p. 1 A Review of Structures p.

M.C.A DEGREE EXAMINATION,NOVEMBER/DECEMBER 2010 Second Semester MC 9222-OBJECT ORIENTED PROGRAMMING (Regulation 2009)

PROGRAMMING IN C AND C++:

Object Oriented Programming with c++ Question Bank

DEPARTMENT OF INFORMATION TECHNOLOGY

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

Jayaram college of Engineering and Technology, Pagalavadi. CS2203 Object Oriented Programming Question Bank Prepared By: S.Gopalakrishnan, Lecturer/IT

Introduction to Programming Using Java (98-388)

MaanavaN.Com CS1203 OBJECT ORIENTED PROGRAMMING DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

Object Oriented Programming with Java. Unit-1

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

Short Notes of CS201

CS201 - Introduction to Programming Glossary By

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING CS6456 OBJECT ORIENTED PROGRAMMING

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY ACADEMIC YEAR (ODD SEM)


RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY OBJECT ORIENTED PROGRAMMING QUESTION BANK UNIT I 2 MARKS

JAYARAM COLLEGE OF ENGINEERING AND TECHNOLOGY Pagalavadi, Tiruchirappalli (An approved by AICTE and Affiliated to Anna University)

Absolute C++ Walter Savitch

OBJECT ORIENTED PROGRAMMING USING C++ CSCI Object Oriented Analysis and Design By Manali Torpe

Object Oriented Programming

CS201 Latest Solved MCQs

XII- COMPUTER SCIENCE VOL-II MODEL TEST I

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Sri Vidya College of Engineering & Technology

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C

10CS36: Object Oriented Programming with C++

B.C.A 2017 OBJECT ORIENTED PROGRAMMING USING C++ BCA303T MODULE SPECIFICATION SHEET

PROGRAMMING IN C++ (Regulation 2008) Answer ALL questions PART A (10 2 = 20 Marks) PART B (5 16 = 80 Marks) function? (8)

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

OBJECT ORIENTED DATA STRUCTURE & ALGORITHMS

Interview Questions of C++

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

Object Oriented Programming. Solved MCQs - Part 2

STRUCTURING OF PROGRAM

Time : 3 hours. Full Marks : 75. Own words as far as practicable. The questions are of equal value. Answer any five questions.

C++ (Non for C Programmer) (BT307) 40 Hours

Quiz Start Time: 09:34 PM Time Left 82 sec(s)

Cpt S 122 Data Structures. Course Review Midterm Exam # 2

SAURASHTRA UNIVERSITY

CGS 2405 Advanced Programming with C++ Course Justification

Lesson Plan. Subject: OBJECT ORIENTED PROGRAMMING USING C++ :15 weeks (From January, 2018 to April,2018)

CPSC 427: Object-Oriented Programming

DOWNLOAD PDF CORE JAVA APTITUDE QUESTIONS AND ANSWERS

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

Intro to OOP Visibility/protection levels and constructors Friend, convert constructor, destructor Operator overloading a<=b a.

CORE JAVA TRAINING COURSE CONTENT

Problem Solving with C++

KLiC C++ Programming. (KLiC Certificate in C++ Programming)

VALLIAMMAI ENGINEERING COLLEGE

CHOICE BASED CREDIT SYSTEM (With effect from )

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p.

Name of subject: JAVA PROGRAMMING Subject code: Semester: V ASSIGNMENT 1

Instantiation of Template class

LIST OF EXPERIMENTS. (1) (Office Automation)

Compaq Interview Questions And Answers

Object-Oriented Programming

Objective Questions. BCA Part III Paper XIX (Java Programming) page 1 of 5

I BSc(IT) [ Batch] Semester II Core: Object Oriented Programming With C plus plus - 212A Multiple Choice Questions.

Pace University. Fundamental Concepts of CS121 1

CS 162, Lecture 25: Exam II Review. 30 May 2018

Cpt S 122 Data Structures. Course Review FINAL. Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University

BCA (Part II) EXAMINATION 2008 C++ PROGRAMMING Max Time : 3 Hours Max. Marks : 50

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix


Object Oriented Programming. Assistant Lecture Omar Al Khayat 2 nd Year

Course Text. Course Description. Course Objectives. StraighterLine Introduction to Programming in C++

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.

Weiss Chapter 1 terminology (parenthesized numbers are page numbers)

DEPARTMENT OF COMPUTER APPLICATIONS B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER LESSON PLAN SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

UNIT I : OVERVIEW OF COMPUTERS AND C-PROGRAMMING

Object-Oriented Programming

Question Paper Code : 97044


WITH C+ + William Ford University of the Pacific. William Topp University of the Pacific. Prentice Hall, Englewood Cliffs, New Jersey 07632

C++ for System Developers with Design Pattern

(800) Toll Free (804) Fax Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days


Study Guide to Exam 2

OBJECT ORIENTED PROGRAMMING. Ms. Ajeta Nandal C.R.Polytechnic,Rohtak

OOPS Viva Questions. Object is termed as an instance of a class, and it has its own state, behavior and identity.

The Foundation of C++: The C Subset An Overview of C p. 3 The Origins and History of C p. 4 C Is a Middle-Level Language p. 5 C Is a Structured

15CS45 : OBJECT ORIENTED CONCEPTS

Inheritance, and Polymorphism.

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9

LESSON PLAN B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER

C++ Important Questions with Answers

An Object Oriented Programming with C

CS201 Some Important Definitions

PROGRAMMING IN C++ COURSE CONTENT

What are the characteristics of Object Oriented programming language?

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE1303. B.Tech. Year - II

Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class.

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours

Transcription:

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E. - Electrical and Electronics Engineering IV SEMESTER CS6456 - OBJECT ORIENTED PROGRAMMING Regulation - 2013 Academic Year 2017-18 Prepared by Mr. M. Mayuranathan, Mr. T. Rajasekaran & Ms. N. Poornima

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK Year & Semester Section Subject Code Subject Name Degree & Branch Staff in charge : IV : EEE 1, 2 & 3 : CS6456 : Object Oriented Programming : B.E & EEE : Mr. M. Mayuranathan, Mr. T. Rajasekaran & Ms. N. Poornima UNIT-1 UNIT I OVERVIEW Why Object-Oriented Programming in C++ - Native Types and Statements Functions and Pointers-Implementing ADTs in the Base Language. PART A (2 MARKS) 1. Lists some characteristics of object-oriented language. 2. With respect to C++ distinguish objects and classes. Understand BTL2 3. Evaluate Procedural programming with OO programming. Evaluate BTL5 4. Analyze how data encapsulation supports reusability Analyze BTL4 5. Create a friend function which violates encapsulation? Create BTL6 6. Classify the native types in C++. Understand BTL2 7. Create an example for Enumerated data types. Create BTL6 8. Discuss a statement/expression with an example? Understand BTL2 9. Examine function prototype and give an example. Apply BTL3 10. Summarize pointer and outline pointer arithmetic. Evaluate BTL5 11. Compare pointer and a reference? Analyze BTL4 12. Show the syntax to dynamically allocate memory to a constructor. Apply BTL3 13. What is function overloading? List out its advantages.

14. What are inline functions? Give an example. 15. What is an Abstract Data Type? Give an example and how it differs from class? 16. Differentiate between stack and queue and give its applications. Understand BTL2 17. How Struct relates with Union/Class. Give an example. Apply BTL3 18. Point out the operations supported by the list ADT? Analyze BTL4 19. Define Type casting and OOP. 20. List out various formats of bit field. PART B (13 MARKS) i) Explain the characteristics of object oriented programming. Compare and constrast OOP and POP. (6) 1. ii) Describe how each of these features is implemented in C++. (7) Understand BTL2 2. 3. Explain the following elements available in C++ with neat illustration of each. i) Data types ii) Control statements (5) iii) Operators (2) iv) Storage classes (4) Analyze the concept of i) call by value and (6) ii) call by reference (7) with a programming example. Evaluate Analyze BTL5 BTL4 4. Design an algorithm and diagrammatic illustrations the various Create BTL6 operations that can be performed on a Stack/Queue ADT? i) How would you declare function to be a constant in C++? (6) 5. ii) What are the properties of such function? Explain with a demo program. (7) 6. i) What are inline functions? (2) ii) What are advantages of inline functions? Give an example. (6) iii) What is the rules to be followed while defining inline functions? (5)

7. Examine a program to check how many instances of a class are created using the static member function. 8. i) Summarize various type conversions? (6) Understand BTL2 ii) Explain each with a program. (7) i) How would you declare function with default argument in C++? 9. (6) Apply BTL3 ii) Demonstrate with a demo program. (7) i) Write an object oriented code where a member function of a class reads a set of numbers upto n and print the contents of the array in 10. reverse order. This function is called by pointer to member function of Apply BTL3 the class. (10) ii) Test the code with data. (3) Explain the following program elements of C++ with syntax and 11. example i) Constructors (10) ii) Destructors (3) Discuss the following 12. i) Various operators that are available in C++ with neat illustration for each of it (7) ii) Use of Pointers with Array (6) i) Describe encapsulation with example (6) 13. ii) Describe C++ exception with example (7) 14. i) Explain the structure of a C++ Program (8) ii) Write a C++ program using try and catch construct (5) Analyze Understand Analyze BTL4 BTL2 BTL4 PART C (15 MARKS) i) Explain the advantages and disadvantages of structured programming. (7) 1. ii) Describe the advantages and disadvantages of Object Oriented Programming. (8) 2. 3. Explain the following with programming example. Use of Constructors and Destructors Analyze the following i) Advantages and Disadvantages of Pointers (7) ii) Can Pointers be avoided in Object Oriented Programming (8) with a programming example. Understand BTL2 Evaluate BTL5 Analyze BTL4

4. Design an algorithm to show prefix expression evaluation using Create BTL6 Stack ADT? UNIT-2 UNIT II BASIC CHARACTERISTICS OF OOP Data Hiding and Member Functions- Object Creation and Destruction- Polymorphism data abstraction: Iterators and Containers. PART A (2 MARKS) 1. List the two types of polymorphism? Give an example for each. 2. Recall the operators in C++ which you cannot be overloaded. 3. Classify the use of keywords void / new / delete. Analyze BTL4 4. Give the use of scope resolution operator. Understand BTL2 5. Define an abstract class with an example. 6. Create a copy constructor for class date (assume dd,mm,yy as its members). Create BTL6 7. How are virtual functions declared in C++? Analyze BTL4 8. Compose pure virtual functions? Where are they used? Create BTL6 9. When will the destructors be called? Is it implicit or explicit? Evaluate BTL5 10. What is a constructor? Is it mandatory to use constructors in a class? Evaluate BTL5 11. Define friend/static/const function with its rules. 12. What is an operator function? Give an example. Understand BTL2 13. What is dynamic binding? 14. Classify predefined C++ stream objects? Apply BTL3 Demonstrate a stream class which is required to create an output 15. stream? Apply BTL3 16. Explain the various file stream classes needed for file manipulation. Analyze BTL4 17. Sketch and Show the I/O stream hierarchy? Apply BTL3 18. Why is it necessary to include the file iostream in all our programs? Understand BTL2 19. Name the two ways in which a file can be opened. 20. Give the use of this Pointer. Understand BTL2

PART B (13 MARKS) 1. 2. Write a C++ program to perform 2D matrix operations as follows: i) Define class MATRIX, use appropriate constructor(s). (3) ii) Define methods for the following two matrix operations: Determinant and transpose. (5) iii) Write a main program to discuss the use of the constructor in MATRIX class and its methods. (5) Understand BTL2 Write a C++ program as follows to perform arithmetic operations on Rational numbers of type a/b, where a and b are integers. (i) Define a class by Rational Number. (3) (ii) Use operator overloaded methods for addition and subtraction. (3) (iii) Write a main program to demonstrate the use of this class and its methods. (5) (iv) Give a sample output. (2) 3. Write a C++ program for the following: Ramesh s basic salary is given input to the keyboard. His dearness allowance is 40% of basic salary and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary. Use constructors, Destructors and member functions. Understand BTL2 4. Construct and analyze a class by name 'Box with a constructor method and volume method. Constructor initialized the length, breath and height of the box objects. Volume method computes the volume of the box using the formula length * breath * height. Create three box objects and compute their volume by declaring a pointer to the box (Any Program). Analyze BTL4 5. Describe the rules of operator overloading with one example and Write a C++ program to define overloaded constructor to perform string initialization, string copy and string destruction. Write an object oriented program in C++ that print a 6. factorial/fibonacci series of a given number using a copy Apply BTL3 constructor and a destructor member function.

7. Write and explain a C++ program to create a list of prime/armstrong numbers between the two given limits. Evaluate BTL5 Develop a function the computes and displays the area of a rectangle and the area of a square. Declare this function as a friend 8. function in Rectangle and square classes and compute the area of Apply BTL3 a rectangle and square objects from the main function.(any Program) Consider the TNEB Electricity bill generation problem. Define 9. suitable classes and objects. Write a program to implement the Create BTL6 application with near output format. 10. With suitable example, examine how function overloading and operator overloading supports compile-time polymorphism Explain the following 11. i) Various types of Constructors that are available in C++ (10) Analyze BTL4 ii) Polymorphism (3) 12. Discuss the following i) Various types of polymorphism in C++ with suitable example (7) ii) Friend function with example (6) Understand BTL2 13. i) Describe iterators with example (7) ii) Describe this pointer in C++ with example (6) 14. i) Explain containers with example (5) ii) Explain static and const member function iii)explain and write a C++ program to check (4) whether the string is palindrome or not (4) Analyze BTL4 PART C (15 MARKS) 1. Write and explain a C++ program to create Pascal triangle. Evaluate BTL5

2. Develop a function the computes and displays the area of a Triangle and the area of a Circle. Declare this function as a friend function in Triangle and Circle classes and compute the area of a Triangle and Circle objects from the main function.(any Program) Apply BTL3 Consider the Toll Booth bill (for different classes of vehicles) 3. generation problem. Define suitable classes and objects. Write a Create BTL6 program to implement the application with near output format. 4. With suitable programming example, examine how + operator can be used to perform integer addition/ string concatenation based on the operands UNIT-3 UNIT III ADVANCED PROGRAMMING Templates, Generic Programming, and STL-Inheritance-Exceptions-OOP Using C++. PART A (2 MARKS) 1 Construct the syntax of try catch- throw in exception handling in Create BTL6 C++ 2 Differentiate function template and class template Analyze BTL4 3 What are the manipulators available in C++? 4 What is a hierarchy inheritance? Give an example 5 Give any five functions used for file processing Understand BTL2 6 What is the use of templates? Understand BTL2 7 What are manipulators? How do you create a one? Analyze BTL4 8 Give any two examples of exceptions Understand BTL2 9 Why is it not possible to refer an exception declared within try block outside try block? Apply BTL3 10 Illustrate the exception handling mechanism Apply BTL3 11 List out any four containers supported by Standard Template Library? 12 What is rethrowing an expression? 13 What is an exception? Give any four examples of exception Understand BTL2

14 Examine virtual base class with an example Apply BTL3 15 Point out the reason templates used in the C++ Analyze BTL4 16 List the way of class template inheritance 17 List the different types of inheritance 18 Summarize the classes in the iostream. h Evaluate BTL5 19 Draw console stream class hierarchy Create BTL6 20 Explain file pointer and give its types Evaluate BTL5 1 PART B (13 MARKS) i) What is a template function? (2) ii) Design and implement a template version functions min() and max() for finding minimum and maximum values of a given set of elements in list T represented by a seqlist <T> object (11) Evaluate BTL5 i) What is the significance of inheritance (3) 2 ii) Explain the various types of inheritance with a programming Create BTL6 example for each type (10) 3 Analyze the exception handling mechanism available in C++ with suitable examples Analyze BTL4 4 Write a program that demonstrates several exception types being caught with the catch() exception handler Apply BTL3 Write an object oriented program in C++ using a class template to 5 read any five parameterized data type such as float and integer, and print the average 6 Classify the components of Standard Template Library in detail Analyze BTL4 Explain the 4 functions i) Seekg, ii) Seekp, 7 iii) tellg, Understand BTL2 iv) tellp used for setting pointers during file operation and (8) show how they are derived from fstream class (5)

8 Describe about generic program in details Understand BTL2 9 Write a program to create a class STUDENT with data members Roll, Name, Course, Branch, Semester. Store them in an array of objects. Input the total number students if students are perform the following: (i) Sorted list of students in the ascending order of Name (ii) Branch wise students list (iii)use inheritance concept Write Short notes on 10 (i) Run time polymorphism (virtual function) (7) (ii) Pure virtual function (6) Explain the following 11 i) User defined exceptions (7) Analyze BTL4 ii) System defined exceptions (6) i) What is an access modifier? (2) 12 ii) Differentiate between private, protected and public access Understand BTL2 modifier with examples (11) 13 i) Describe OOP Language requirements (6) ii) Describe ADT in n OOP Language (7) What is a function template? (4) 14 Write a template function to sort arrays of float and int using bubble Apply BTL3 sort (9) PART C (15 MARKS) i) What is a template function? (2) ii) Design and implement a template version functions Asc() and 1 Des() for arranging a given set of elements in ascending and Evaluate descending order. Element list T represented by a seqlist <T> object (13) i) What is the significance of inheritance (4) 2 3 BTL5 ii) Explain inheritance and write a program for nc r that uses Create BTL6 inheritance (11) Analyze the exception handling mechanism available in C++ and write a program that throw exception for wrong operands (in terms number of operands and type) for any operators/expression of your Analyze BTL4 choice

4 Write a program that demonstrates system defined exceptions Apply BTL3 UNIT-4 UNIT IV OVERVIEW OF JAVA Data types, variables and arrays, operators, control statements, classes, objects, methods Inheritance PART A (2 MARKS) 1. What is byte code? Mention its advantage. 2. Give two examples for access modifier. Understand BTL2 3. Design a sample statement for parseint( ) and give comments for the statement. Create BTL6 4. What is an abstract class? 5. Define a wrapper class in java? 6. Why is java language called as robust? Analyze BTL4 7. How does java make an executable file? Apply BTL3 8. Differentiate Interface and Abstract class? Analyze BTL4 9. What is an inner class? 10. Examine the significance of Java Virtual Machine? Apply 11. How is garbage collection done in java? Apply BTL3 12. What is a token? List the various types of tokens supported by Java. In Java, can a class be defined inside a method? If so what rule 13. governs access to the variables of the enclosing method? If not, give Evaluate BTL5 reasons. 14. How does Java achieve platform independence? Apply BTL3 15. Distinguish between method overriding and method overloading in Java. Analyze BTL4 16. Criticize the type of class for which objects cannot be created? Evaluate BTL5 17. Compose the two ways of using Super/this Keyword? Create BTL6 18. How do you use final keyword in variable/function/class in java? Understand BTL2

19. How do you define an array with example? Understand BTL2 20. Describe Java Virtual Machine (JVM). BTL2 PART B (13 MARKS) Write a java program to create two single dimensional arrays, 1. initialize them and add them; store the result in another array. Discuss its operation. Write a menu-based java program that can calculate the area of a Understand BTL2 2. triangle, circle or square, based on the user s choice. Discuss its Understand BTL2 operation. 3. Describe the structure of a typical Java program and give the steps to execute it. Write a java class called student with name, Marks of 3 subjects and total Marks. (5) 4. Write another class named calculate that gets the Marks of the Create BTL6 student and calculates the total Marks and displays the result (pass or fail). (8) 5. Describe the three different types of inheritance with an example java program for each. 6. Write a java program to find the maximum number of the given array. Apply BTL3 7. Write a java to calculate and convert an Integer array to string. Apply BTL3 8. Write a simple java program to classify basic Calculator operations. Analyze BTL4 9. Write a java Program to evaluate the sum of the following series 1-2+3-4+..+n Evaluate BTL5 10. Discuss about benefits of abstract class. Explain the following 11. i) Method Overloading (8) ii) Method Overriding (8) Analyze BTL4 12. Discuss the various types of operators in java and explain with suitable examples Understand BTL2 13. i) Describe function template in java with example (7) ii) Describe class template in java with example (6) 14. Explain classes and objects in java with example Apply BTL4

PART C (15 MARKS) Write a java program to create two 2-dimensional arrays, initialize 1. them and multiply them; store the result in another array. Discuss its Understand BTL2 operation. 2. Write a menu-based java program that can perform ordinary calculator operations. Explain its operation. Understand BTL4 Write a java class called Employee with Name, Designation and total Basic Pay. (5) 3. Write another class named calculate that gets the Basic Pay of the Employee and calculates the total Salary as per the formula Create BTL3 Net Salary= (Basic Pay + Allowances)-Deductions and displays the Net Salary. (8) 4. Write a java Program to evaluate the sin series for a given angle in degree and for n terms Evaluate BTL5 UNIT-5 UNIT V EXCEPTION HANDLING Packages and Interfaces, Exception handling, Multithreaded programming, Strings, Input /Output PART A (2 MARKS) 1. Define interface. State its use. 2. What are thread and package? Understand BTL2 3. Under which context would you use final and finally? Analyze BTL4 4. Give one example on streams. Understand BTL2 5. List the advantage of using package s in Java Programming? 6. What are the similarities between interfaces and classes in Java? Analyze BTL4 7. How do we set priorities for threads? Apply BTL3 8. What happens if an exception handler is not defined when exception is thrown? Apply BTL3 9. Explain the life cycle of thread. Evaluate BTL5

10. What are the two methods by which we may stop threads? Apply BTL3 11. What is an exception? Give any four examples of exception. Understand BTL2 12. What is multithreading? 13. State threads Synchronization. 14. Draw I/O Stream Hierarchy. Create BTL6 15. Compare String and String Buffer. Analyze BTL4 16. List the various string method. 17. Express the various ways to import packages. Understand BTL2 18. Which method can be used for changing case of characters? Evaluate BTL5 19. Sketch the Exception Hierarchy. Create BTL6 20. How to create a user defined exception with example. 1. PART B (13 MARKS) Write a java program to perform all string operations using the String Class. Explain with sample data. Create BTL6 2. Demonstrate exception handling in java with an example program. Apply BTL3 Summarize the following with examples from Java. 3. (i) Streams and IO (7) Evaluate BTL5 (ii) Java threads. (6) i) What is a thread? (2) 4. ii) How do you create threads and explain? (11) Analyze BTL4 5. Explain the concept of streams and its byte stream classes in detail. Analyze BTL4 i) Discuss how packages are used to resolve naming conflicts in java? 6. (4) ii) With an example show to add classes to packages and how to Understand BTL2 import packages in classes. (9) i) What are interfaces? (2) 7. ii) Discuss with an example how multiple inheritances are Understand BTL2 implemented using interfaces. (11) i) What is multithreading? (2) 8. ii) Explain the two methods of implementing threads with an example. (11) 9. Write a java program to implement nested Packages.

10. Describe with an example the exceptional handling feature in Java. Explain the following Analyze 11. i) Java Input streams (6) BTL4 ii) Java Packages with its types (7) 12. Discuss Java Output streams with example Understand BTL2 13. 14. i) What is multithreading? (2) ii) Write a multithreaded program in java and explain (11) Illustrate the use of try-catch clauses by sample statements of rare type runtime error PART C (15 MARKS) Apply BTL3 Write a java program to check whether the given string is Palindrome 1. or not using the String Class. Explain with sample data. Create BTL6 (i)demonstrate multithreading in java with an example program and explain thread synchronization with example.(8) 2. (ii)demonstate a java program to create user defined exception(7) Apply BTL3 Summarize the following with examples from Java. 3. (i) Java Packages (8) Evaluate BTL5 (ii) Advantages of Java threads. (7) i) What are interfaces? (2) 4. ii) Explain interface in java with an example program? (13) Analyze BTL4