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

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

VALLIAMMAI ENGINEERING COLLEGE

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

Object Oriented Programming with c++ Question Bank

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

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

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

Get Unique study materials from

10CS36: Object Oriented Programming with C++

XII- COMPUTER SCIENCE VOL-II MODEL TEST I

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

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

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

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object

Question Paper Code : 97044

SARDAR RAJA COLLEGE OF ENGINEERING

Absolute C++ Walter Savitch

Problem Solving with C++

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

END TERM EXAMINATION

CHOICE BASED CREDIT SYSTEM (With effect from )


SAURASHTRA UNIVERSITY

Syllabus of C++ Software for Hands-on Learning: This course offers the following modules: Module 1: Getting Started with C++ Programming

PROGRAMMING IN C AND 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.

OBJECT ORIENTED DATA STRUCTURE & ALGORITHMS

Spring 2003 Instructor: Dr. Shahadat Hossain. Administrative Matters Course Information Introduction to Programming Techniques

Short Notes of CS201

Object Oriented Programming

CS201 - Introduction to Programming Glossary By

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

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

CGS 2405 Advanced Programming with C++ Course Justification

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

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

An Object Oriented Programming with C

CS PROGRAMMING & ATA STRUCTURES I. UNIT I Part - A

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

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

Object Oriented Paradigm

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

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

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

C++ for System Developers with Design Pattern

M.C.A. DEGREE EXAMINATION, MAY First Year Paper - I : INFORMATION TECHNOLOGY. Time : 03 Hours Maximum Marks : 75

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

TIME: 3 HOURS MARKS: a. Develop a java program to sort an array of N numbers in ascending order. (40)

Learning Objectives. C++ For Artists 2003 Rick Miller All Rights Reserved xli

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

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

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

Object Oriented Programming. Solved MCQs - Part 2

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

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

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

CSCE 210/2201 Data Structures and Algorithms. Prof. Amr Goneid

CSCE 210/2201 Data Structures and Algorithms. Prof. Amr Goneid. Fall 2018

Programming in C# with Microsoft Visual Studio 2010

CORE JAVA TRAINING COURSE CONTENT

Review and Recursion

STUDY NOTES UNIT 1 - INTRODUCTION TO OBJECT ORIENTED PROGRAMMING

CS201 Some Important Definitions

C++ Important Questions with Answers

CS201 Latest Solved MCQs

10266 Programming in C Sharp with Microsoft Visual Studio 2010

UNIT POLYMORPHISM

FINAL TERM EXAMINATION SPRING 2010 CS304- OBJECT ORIENTED PROGRAMMING

VALLIAMMAI ENGINEERING COLLEGE

More C++ : Vectors, Classes, Inheritance, Templates

SRI VENKATESWARA COLLEGE OF ENGINEERING. COURSE DELIVERY PLAN - THEORY Page 1 of 6

V.S.B ENGINEERING COLLEGE DEPARTMENT OF INFORMATION TECHNOLOGY I IT-II Semester. Sl.No Subject Name Page No. 1 Programming & Data Structures-I 2

Welcome to Teach Yourself Acknowledgments Fundamental C++ Programming p. 2 An Introduction to C++ p. 4 A Brief History of C++ p.

XII CS(EM) Minimum Question List N.KANNAN M.Sc., B.Ed COMPUTER SCIENCE IMPORTANT QUESTION (TWO MARKS) CHAPTER 1 TO 5 ( STAR OFFICE WRITER)

More C++ : Vectors, Classes, Inheritance, Templates. with content from cplusplus.com, codeguru.com

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

DEPARTMENT OF INFORMATION TECHNOLOGY

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

BCA (Part II) EXAMINATION, 2009 C++ PROGRAMMING Time allowed: Three Hours Maximum Marks: 50 Attempt any five questions

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

Object-Oriented Design (OOD) and C++

Topics. Modularity and Object-Oriented Programming. Dijkstra s Example (1969) Stepwise Refinement. Modular program development

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

Object-Oriented Programming

M.C.A. DEGREE EXAMINATION, DEC First Year. Time : 03 Hours Maximum Marks : 75

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

1) What is the role of information technology in modern organizations? 2) Discuss the memory and storage devices.

WYSE Academic Challenge Computer Science Test (Regional) 2015 Solution Set

Programming in Visual Basic with Microsoft Visual Studio 2010


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

KOM3191 Object Oriented Programming Dr Muharrem Mercimek OPERATOR OVERLOADING. KOM3191 Object-Oriented Programming

Modularity. Modular program development. Language support for modularity. Step-wise refinement Interface, specification, and implementation

Reg. No. : Question Paper Code : 27157

Instantiation of Template class

PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO Course: 10550A; Duration: 5 Days; Instructor-led

CS Internet programming Unit- I Part - A 1 Define Java. 2. What is a Class? 3. What is an Object? 4. What is an Instance?

SECOND SEMESTER JAVA PROGRAMMING

Introduction to Programming Using Java (98-388)

Transcription:

M.C.A DEGREE EXAMINATION,NOVEMBER/DECEMBER 2010 MC 9222-OBJECT ORIENTED PROGRAMMING (Regulation 2009) Max:100 Marks 1. How are data and function organized in an object oriented programming? 2. Compare private and public access specifiers in a class? 3. Write a program for swapping of two variables without using third variable. 4. What is the purpose of reference semantic? 5. What is a friend function? How friend functions are differ in inheritance? 6. List the operations cannot used in overloading. 7. What is an iterator? What are its characteristics? 8. What is STL? How is it different from the C++ Standard Library? 9. How is the type casting performed in C++? 10. What is an exception? When should a program throw an exception? 11.(a) What is Object iented Programming? How it differs from structured Programming? Discuss the characteristics of Object iented Languages. (2+6+8) (b) Explain the declaration of a class in c++. How will you define the member function of a class? Explain with an example. (16) 12.(a) What is the need for parameterized constructor? Explain the functions of default constructor, parameterized constructor and copy constructor declaration inside a class with suitable example. (4+12) (b) Write a c++ program for Stack ADT. (16) 13.(a)Explain the operator overloading of Binary Operators in c++ with suitable example. (16) (b)(i) What is meant by function overloading? Write the rules associated with function overloading. Give suitable example to support your answer. (8) (ii)what is this pointer? When is it used? Explain its use using an appropriate example. (2+2+4) 14.(a)Use templates to write a generic version of the bubble sort, complete with assertions and also 1 CCET

use a random number generator to generate test data. (16) (b) Explain the four different categories of STL algorithms with suitable example. (16) 15.(a)What are virtual functions? What are pure virtual functions? Discusswith the help of an example.(16) (b)what are the exceptions handled in c++? Explain with the help of an example. (6+10) M.C.A DEGREE EXAMINATION,NOVEMBER/DECEMBER 2010 CA 5152-OBJECT ORIENTED PROGRAMMING Max:100 Marks 1. Compare error and exception. Give an example. 2. Outline the use of ifdef and ifndef. 3. What is OOP? List out its characteristics. 4. Brief about dynamic memory allocation operator. 5. What are the C++ operators that cannot be overloaded? 6. When you overload member function in what ways must they differ? 7. Define pure virtual function. How will you declare it? 8. What is a generic function? How will you create a generic function? 9. What do you mean by interface? What are its significances? 10. List out the I/O object streams. 11.(a) (i) Define data abstraction. Write down its significance. Design a class circle. Identify its attributes and methods. [6] (ii) What are the features of virtual fuction? Describe its usage with syntax. [5] (iii) Generic programming is the basic requirement for the software development in industries. Justify. [5] (b)(i) Discuss with an example the usage of union and struct in C. [5] (ii) What are the difficulties encountered in monolithic type of application? Explain. [5] 2 CCET

(iii) How does OOP differ from procedure oriented programming? Discuss? [7] 12.(a) )(i) Compare class and object. Discuss the allocation of memory for class and object [8] (ii) What is the role of using the term static for members of the class and for the class itself. [8] (b) )(i) Consider two classes Employee, Manager with id and basic pay as data members and input and output member functions to get details and display tax. Write a friend function income tax to operate on the objects of both these classes to calculate tax. [12] (ii) Write a inline function to find square of a number. [4] 13.(a) )(i) Write a program to overload + operator to add two Matrix objects and store results in another object. [10] (ii) Describe the usage of copy constructor with an example. [6] (b) Design a class Complex No. Using Operator Overloading wrire the routines to implement the operations add, sub, mul and div. [16] 14.(a)Write a program that accepts n numbers from the user and store it in a file named file 1. Read the contents of file 1 and check whether the number is prime or not. If prime store it in file2 otherwise in file3. [16] (b) (i) Write a detail exception handling in c++ with suitable example. [8] (ii) Design a class List and enumerate its member functions with the implementation of any three of them. [8] 15.(a) Design a class named Filter that reads an input text stream and find vowel letters and store them on an output text stream [16] (b) [i] Compare concrete types and abstract types. [10] (ii) Write short notes on Node classes. [6] 3 CCET

M.C.A DEGREE EXAMINATION, JUNE 2 MC9222-OBJECT ORIENTED PROGRAMMIN (Regulation 2009) Maximum:100 Marks 1. What is encapsulation? 2. What are the features required for an object oriented language? 3. Define parameterized constructor. 4. What is the use of this keyword? 5. List out the operators that cannot be overloaded. 6. Define polymorphism. 7. Define function template with its syntax. 8. What are synchronous and asynchronous exceptions? 9. What are pure virtual functions? Write the syntax. 10. What is hybrid inheritance? Give an example. 11. A) Explain the concepts of call by value and call by reference with suitable sample code. B) Explain the following concepts with suitable code. i) Function pointer ii) Array of Pointers 12. A) How will you classify functions in C++? Explain B)Explain the different types of constructor with sample code. 13. (A)How will you overload unary and binary operators using friend functions? Explain with sample code. B) (i) List out the operators that cannot be overloaded using friend function. (ii) What is meant by casting operator? Write the general form of overloaded casting operator. (iii) Write at least four rules for operator overloading. 14. (A)Write a C++ program to sort integer array element using Templates. (B) Explain the components of Standard Template Library. 15. (A) Explain the types of inheritance with sample code. (B) Define exception handling with its advantages and explain the same with sample code. 4 CCET

Question Bank UNIT-1 1. What is Object iented Programming? How it differs from structured Programming? Discuss the characteristics of Object iented Languages. 2. Explain the declaration of a class in c++. How will you define the member function of a class? Explain with an example. 3. Explain the concepts of call by value and call by reference with suitable sample code. 4. Explain the following concepts with suitable code. i) Function pointer ii) Array of Pointers UNIT-2 5. How will you classify functions in C++? Explain. 6. Explain the different types of constructor with sample code. 7. Write a c++ program for Stack and Queue ADT. 8. i) Consider two classes Employee, Manager with id and basic pay as data members and input and output member functions to get details and display tax. Write a friend function income tax to operate on the objects of both these classes to calculate tax. (ii) Write a inline function to find square of a number UNIT-3 9. Explain the operator overloading of Binary & unary Operators in c++ with suitable example 10. (i) What is meant by function overloading? Write the rules associated with function overloading. Give suitable example to support your answer. (ii)what is this pointer? When is it used? Explain its use using an appropriate example. 11. (i) Write a program to overload + operator to add two Matrix objects and store results in another object. (ii) Describe the usage of copy constructor with an example. 12. How will you overload unary and binary operators using friend functions? Explain with sample code. UNIT-4 13. Write a C++ program to sort integer array element using Templates. 14. Explain the components of Standard Template Library. 15. Use templates to write a generic version of the bubble sort, complete with assertions and also use a random number generator to generate test data. 16. Explain the four different categories of STL algorithms with suitable example. 17. Explain the following concepts with example. i) Function Template ii) Class Template 18. What are virtual functions? What are pure virtual functions? Discuss with the help of an UNIT-5 example. 19. Explain the types of inheritance with sample code. 20. Define exception handling with its advantages and explain the same with sample code. 5 CCET